12345678910111213141516
interface PrimerCheckoutData {    payment?: PrimerCheckoutDataPayment;    additionalInfo?: PrimerCheckoutAdditionalInfo}

interface PrimerCheckoutDataPayment {    id?: string;    orderId?: string;    paymentFailureReason?: PrimerPaymentErrorCode;}
enum PrimerPaymentErrorCode {    FAILED = 'payment-failed',    CANCELLED_BY_CUSTOMER = 'cancelled-by-customer',}
ts
copy
Properties
payment
IPrimerCheckoutDataPayment
Properties
id
string
Primer's unique identifier for the payment.
orderId
string
Your order identifier as provided in the client session.
paymentFailureReason
PrimerPaymentErrorCode

Can be either payment-failed which is an error from the PSP side, or cancelled-by-customer which means the failure initiated on the customer side. I.e. cancelling a 3DS flow.

Custom information, that depends on the payment method.
Variations
Properties
expiresAt
StringRequired
couponCode
StringRequired
retailerName
StringRequired
Properties
expiresAt
StringRequired
qrCodeUrl
String?
qrCodeBase64
StringRequired
Properties
expiresAt
StringRequired
entity
StringRequired
reference
StringRequired