HandlePaymentProperties
Properties for handling the payment flow across Stripe and commercetools platforms.
export interface HandlePaymentProperties {
buildReturnUrl?: (order: PaymentAndOrder['order']) => string;
cartId: string;
elements: StripeElements;
}Properties
| Name | Required | Type | Description |
|---|---|---|---|
buildReturnUrl | Optional | (order: PaymentAndOrder['order']) => string | Callback for building a custom return url for the payment flow. |
cartId | Required | string | ID of the cart to handle the payment flow for. |
elements | Required | StripeElements | An instance of Stripe Elements object. The param is optional because the handlePayment() method uses a copy of the object saved to the SDK context by the mountPaymentElement() method. |
Referenced Types
PaymentAndOrderStripeElements