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
IPrimerCheckoutDataPaymentProperties
id
stringorderId
stringpaymentFailureReason
PrimerPaymentErrorCodeCan 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.
additionalInfo
object