Accepting Payment Methods in your UI
Octane relies on Stripe to collect and store payment methods. You can use Stripe Elements to collect credit card or other payment method information from customers. This tutorial explains the full flow for setting up future payments in Stripe.
Octane simplifies this process for you by providing an API to Create Setup Intent which returns:
These fields should be used to initialize the Stripe client:
Here is a full example of rendering a Stripe payment element to accept a customer's payment method: