Get public payment provider keys

gethttps://api.expiryedge.com/v1/getPaymentConfig
Public - 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.

Query parameters

  • envstring
    Alloweddevelopmentproduction

Returns

200
Public payment configuration.
  • successboolean
  • dataobject

Errors

429
Too many requests for this endpoint from your IP. Wait Retry-After seconds.
500
The keys could not be loaded.