Test creating a checkout link

This endpoint is used to test the process of generating a checkout link for a given App Integration using the configured payment gateway settings.

It allows developers to validate that the integration with the payment gateway is working as expected, before enabling real payment flows in production.

Test creating a checkout link

post

This endpoint is used to test the creation of a checkout link for the given app integration. The checkout link will be created with the given payload request.

Path parameters
appIntegrationIdstringRequired

The id of the app integration.

Header parameters
Brand-URLstringRequired

The brand URL of the request. This is used to identify the brand.

Example: YOUR_BRAND_URL
Auth-KeystringRequired

Auth-Key is required to authenticate the request. If missing, the server will return 401 Unauthorized.

Example: YOUR_AUTH_KEY
Body
publicKeystring · min: 1Required

The public key of the payment gateway used for authentication. For PayPal: Client ID from your PayPal app credentials (used with OAuth 2.0). For Stripe: Publishable key from your Stripe dashboard (used client-side).

privateKeystring · min: 1Required

The private key of the payment gateway used for secure server-side operations. For PayPal: Secret from your PayPal app credentials. For Stripe: Secret key from your Stripe dashboard (used for server-side API calls). Note: This should never be exposed to client-side code.

displayNamestring · min: 1Required

The display name shown to customers during checkout. For PayPal: Appears as the merchant name during PayPal checkout flow. For Stripe: Displayed as the company name on Stripe Checkout pages. Maximum length is typically 127 characters for most payment providers.

Responses
chevron-right
200

The request was successful.

application/json

This provides interfaces for API responses with data.

successbooleanRead-onlyRequired

This is the flag to indicate whether the API call is successful or not.

statusCodeinteger · int32Read-onlyRequired

This is the HTTP status code. This is used to determine the status code to be returned to the client.

messagestring · min: 1Read-onlyRequired

This is the message to be displayed to the user.

datastring · nullableRead-onlyOptional

This is the data to be returned to the client.

post
/api/v1/app-integrations/{appIntegrationId}/payment-gateway/test

Last updated