This is the Stripe charging process:
- The user fills in the payment form and clicks on the Submit button.
- The frontend (your Ionic app) will call API to Stripe using the Stripe object and send along all the payment information.
- Stripe will return a token ID, which is basically a way to confirm that everything is correct and you can charge the card now.
- The frontend will use the token ID to send to its backend (without the credit card information) to authorize the charge.
- The backend will call another Stripe API to say I'm going to charge now. Stripe will return the success event to the backend at this point.
- The backend will then return the success event to the frontend.
- The frontend should render a new page, such as the ...