createPaymentSession - Payment Module Reference

This documentation provides a reference to the createPaymentSession method. This belongs to the Payment Module.

NoteYou should only use this methods when implementing complex customizations. For common cases, check out available workflows instead .

This method creates a payment session in a payment collection.

Example#

Code
1const paymentSession =2  await paymentModuleService.createPaymentSession(3    "pay_col_1",4    {5      provider_id: "stripe",6      currency_code: "usd",7      amount: 3000,8      data: {},9    }10  )

Parameters#

Loading...

Returns#

Loading...
Was this page helpful?