Payment

General Flow

  • In general, we can obtain user payment information by user input on client-side

  • However, validate the card information and charging requires heavy-work, it will be handled by payment gateway of third party

  • Finally, third-party return the success/error status, it is times to take the follow-up action

Stripe Flow

  • At the beginning, the session id or client id will be generated from server by using stripe API based on the the items selected , to make sure this transaction is only be charged once

  • After received session id or client id, this will be passed by client-side to stripe with payment information that user enter in order to perform validation and charging

  • After finished, get back the payment status from stripe to do follow-up action

Checkout Flow Type

  • There are 2 types - prebuilt flow and custom flow

  • Prebuilt - The payment form is built by stripe

  • Custom - Our customized payment form

Last updated

Was this helpful?