Skip to main content
POST
checkout_sid_pay_post

Headers

If-Unmodified-Since
string

Optional header. The put request is discarded and a 412 is returned if the header does not match the updated_at property or the version of the session.

Path Parameters

aid
string<^[PT]{1}\d{8}$>
required

An id that uniquely identifies the account.

Required string length: 9
session_id
string<checkout-id>
required

The session ID

Body

application/json
payment_product_type
enum<string>
required

The payment product type corresponding to this transaction

Available options:
dintero_psp.creditcard
psp_transaction_id
string
required

Transaction id received from psp-service when creating card transaction

Response

response from payment

success
boolean
required

the payment was accepted

actions
object[]
required
redirect_url
string

redirect url to complete payment, will not be included if the payment failed with Rejected error as payment can be completed by choosing alternative payment option.

poll_url
string

poll_url to check the status of the payment. Will be included if the payment is dependent on 3rd party apps, such as Swish.

approval_url
string

approval_url to complete the payment in a different app from the one showing the checkout, eg. an app link for the Swish M-Commerce flow. Should be used in conjunction with the poll_url to check the status of the payment.

qr_code
string

A base 64 encoded image of the QR code can be displayed while the checkout frontend is polling for the payment status. Eg. used as a fallback for the Swish M-Commerce flow if we are unable to open the approval_url on the end users device we can display the QR code and the user can scan it using a different device that has the app used for payment installed.

By default the image has a size of 600 x 600 pixels.

Example:

"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABzklEQVR42mNkAAYy..."

error
string
Example:

"Rejected"

error_details
object[]