Skip to content

collana pay JS Docs v0.1.0


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?

optional checkoutData?: 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?

optional orderId?: string

Defined in: types.ts:1097

Integrator-defined order identifier.


transactionId?

optional transactionId?: string

Defined in: types.ts:1099

Transaction identifier returned by the payment gateway.

CollanaPay SDK Documentation