Start a payment session
Request the start of a payment session during a workflow execution. This action synchronously returns the necessary data to handle the session on the client-side.
Authorizations
You can use an OAuth2 JWT bearer token in the Authorization header of your API requests for supported endpoints: Authorization: Bearer <YOUR_JWT_HERE>.
These tokens are valid for 10 minutes and can be requested via the access token endpoint endpoint.
Headers
Idempotency key to be used. Sending again the same key would return the same result without re-executing the update.
Path Parameters
Path parameter to specify the workflow code. Machine-friendly code of Workflow.
^[a-z][-A-Za-z0-9]*$Identifier of the resource in Payrails.
Body
Code of the integration type for using the payment method in the provider.
api, hpp, inperson Code of the payment method selected to start a payment session.
applePay URLs from the merchant side where the consumer should be taken after a redirection flow. If no specific flow for cancel or error are needed, we will redirect to the value in the success URL.
The 'pending' URL is used in case the consumer needs to be redirected back to a page if an execution stays in pending for some time.
Any merchant-specific data that should be used and carried for context in the action execution.
- General
- Apple Pay
Response
Start Payment Session was requested.
Starts a payment session on a specific Provider.
startPaymentSession Unique identifier for this action execution. If its processing is done asynchronously, you will receive a notification with the same actionId.
Date and time when execution of the Action was started.
Links to the next possible actions that can be taken.
Provider-specific data needed to continue the payment session.
Unique identifier of a workspace in Payrails.