Skip to main content
Version: v3

Create new provider config

POST 

/payments/custom-provider/connect

API to create a new payment config for given location

Request

Version stringrequired

API Version

Available optionsv3
locationId stringrequired

Location id

application/json

Bodyrequired

    liveobjectrequired

    Live config containing api-key and publishable key for live payments

    testobjectrequired

    Test config containing api-key and publishable-key for test payments

application/json

Successful response

Schema
    namestringrequired

    The name of the custom provider

    descriptionstringrequired

    Description of payment gateway. Shown on the payments integrations page as subtext

    paymentsUrlstringrequired

    This url will be loaded in iFrame to start a payment session.

    queryUrlstringrequired

    The url used for querying payments related events. Ex. verify, refund, subscription etc.

    imageUrlstringrequired

    Public image url for logo of the payment gateway displayed on the payments integrations page.

    _idstringrequired

    The unique identifier for the custom provider.

    locationIdstringrequired

    Location id

    marketplaceAppIdstringrequired

    The application id of marketplace

    paymentProviderobject

    Payment provider details.

    deletedbooleanrequired

    Whether the config is deleted or not. true represents config is deleted

    createdAtstring<date-time>required

    The creation timestamp of the custom provider.

    updatedAtstring<date-time>required

    The last update timestamp of the custom provider.

    traceIdstring

    Trace id of the custom provider.