Get public payment provider keys
get
https://api.expiryedge.com/v1/getPaymentConfigPublic - no API key60/minAny method
Request
curl 'https://api.expiryedge.com/v1/getPaymentConfig?env=production'Response
{
"success": true,
"data": {
"stripe": {
"publishableKey": "pk_live_51Nw2xExampleKey",
"environment": "production"
},
"razorpay": {
"key": "rzp_live_ExampleKeyId",
"environment": "production"
}
}
}Returns the Stripe publishable key and Razorpay key id. Development keys are returned when env=development or the request Origin contains localhost.
envstringAlloweddevelopmentproduction
200
Public payment configuration.
successbooleandataobject
429 | Too many requests for this endpoint from your IP. Wait Retry-After seconds. |
500 | The keys could not be loaded. |
