Get public payment provider keys

gethttps://api.expiryedge.com/v1/getPaymentConfig
Öffentlich - kein API-Schlüssel60/minJede Methode
Anfrage
curl 'https://api.expiryedge.com/v1/getPaymentConfig?env=production'
Antwort
{
  "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-Parameter

  • envstring
    Erlaubtdevelopmentproduction

Rückgabe

200
Public payment configuration.
  • successboolean
  • dataobject

Fehler

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