- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
authorizePaymentSession - Payment Module Reference
This documentation provides a reference to the authorizePaymentSession
method. This belongs to the Payment Module.
Note: You should only use this methods when implementing complex customizations. For common cases, check out available workflows instead.
This method authorizes a payment session using its associated payment provider. This creates a payment that can later be captured.
Learn more about the payment flow in this guide
Example#
Parameters#
id
stringThe payment session's ID.
context
Record<string, unknown>Context data to pass to the associated payment provider.
Returns#
Promise
Promise<PaymentDTO>The created payment.
Promise
Promise<PaymentDTO>Was this page helpful?