React Native SDK
- Installation
- Primer
- PrimerHeadlessCheckout
- Common objects
PrimerCheckoutData
Copy
Ask AI
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
Show Properties
Show Properties
Primer’s unique identifier for the payment.
Your order identifier as provided in the client session.
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.
Show Variations
Show Variations
XenditCheckoutVoucherAdditionalInfo
PromptPayCheckoutAdditionalInfo
Assistant
Responses are generated using AI and may contain mistakes.