Payment frontend

Initializing a payment

post

Initializes a payment by accepting a request sent from the frontend. No scope is required.

Authorizations
OAuth2clientCredentialsRequired
Token URL:
Path parameters
tenantstring · min: 3 · max: 16Required

Your Emporix tenant's name. Note: The tenant name should always be written in lowercase.

Pattern: ^[a-z][a-z0-9]+$
Body
paymentModeIdstringOptional

Identifier of a payment mode configured in the payment-gateway service for a given tenant.

creditCardTokenstringOptional

Indicates a payment method token, usually generated on a frontend site, when an user provides a credit card information.

Responses
chevron-right
200

Payment initialized

application/json
successfulbooleanOptional

Indicates if the authorization process finished with success.

paymentTransactionIdstringOptional

Unique payment transaction identifier.

authorizationTokenstringOptional

Authorization token

externalPaymentRedirectURLstringOptional

Indicates a URL address where a user should be redirected in order to finish the authorization process.

externalPaymentHttpMethodstringOptional

Indicates a HTTP Method which should be used in order to finish the authorization process.

post
/payment-gateway/{tenant}/payment/frontend/initialize

Authorizing a payment

post

Authorize a payment by accepting a request sent from the frontend. No scope is required.

Authorizations
OAuth2clientCredentialsRequired
Token URL:
Path parameters
tenantstring · min: 3 · max: 16Required

Your Emporix tenant's name. Note: The tenant name should always be written in lowercase.

Pattern: ^[a-z][a-z0-9]+$
Body
paymentModeIdstringOptional

Identifier of a payment mode configured in the payment-gateway service for a given tenant.

creditCardTokenstringOptional

Indicates a payment method token, usually generated on a frontend site, when an user provides a credit card information.

threeDSTokenstringOptional

Contains a token generated during the 3DS authentication process.

browserInfostringOptional

Holds information related to the user's web browser.

clientIPstringOptional

Stores the IP address of the client or user making the request.

Responses
chevron-right
200

Payment authorized

application/json
successfulbooleanOptional

Indicates if the authorization process finished with success.

paymentTransactionIdstringOptional

Unique payment transaction identifier.

authorizationTokenstringOptional

Authorization token

externalPaymentRedirectURLstringOptional

Indicates a URL address where a user should be redirected in order to finish the authorization process.

externalPaymentHttpMethodstringOptional

Indicates a HTTP Method which should be used in order to finish the authorization process.

requiresExternalPaymentbooleanOptional

Indicates if a redirect to an external site is required in order to finish the authorization flow.

post
/payment-gateway/{tenant}/payment/frontend/authorize

Last updated

Was this helpful?