collana pay JS Docs / OrderResult
Interface: OrderResult
Defined in: types.ts:1095
The result returned by the integrator's CallbackHandlers.onClick handler after creating an order on the backend.
Remarks
For native PayPal, the SDK reads checkoutData.id as the PayPal order ID passed to createOrder. For Adyen providers, checkoutData should contain at least resultCode and returnUrl, and optionally action, order, or donationToken from the Adyen payment response.
Indexable
[
key:string]:unknown
Additional arbitrary data the integrator wishes to pass through.
Properties
checkoutData?
optionalcheckoutData?:object
Defined in: types.ts:1108
Provider-specific checkout payload.
Index Signature
[key: string]: unknown
id
id:
string
Remarks
id is always required. For PayPal, this is the PayPal order ID. For Adyen, include resultCode, returnUrl, and any action / order / donationToken fields from the gateway response.
orderId?
optionalorderId?:string
Defined in: types.ts:1097
Integrator-defined order identifier.
transactionId?
optionaltransactionId?:string
Defined in: types.ts:1099
Transaction identifier returned by the payment gateway.
