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",
}
Hide Properties
Hide Properties
IPrimerCheckoutDataPayment
Show Properties
Show Properties
string
Primer’s unique identifier for the payment.
string
Your order identifier as provided in the client session.
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.