- Merchant system first sends the
order-informationto the payment integration system. This order related information will be used for further processing. - Payment Integration System will first
validatethe order info and saves the state information into the databse(processing) later based on provider chosen (stripe here) the reques will be send to stripe forcreate-checkout-session. - The Stripe provider gives the json after
checkout session creation, this checkout session payload will have many fields out of which 2 are important fieldspayment-urland thecreate-checkout-session-id. If success fails then error code and error message will be returned. - same details will be transfered to the merchant system which will have two information out of all available - id and url where payment needs to be done.
- Merchant system will be redirected to a stripe hosted page and there payment will be done.
- on this page the payment related information will be captured by the stripe system for processing at their end.
- when the payment succeeds two things happens -
- Merchant will be redirected to success url and this url will notify the payment integration system about the success.
- A webhook will be responsible to have events that will be received by the payment system and further fulfilment will start.
Validation Service
Core-Processing Service
Stripe-Provider Service
service that will integrate with stripe apis and provide payment functionalities
| Method | endpoint | RequestBody | RequestParams |
|---|---|---|---|
| POST | /api/v1/payment | CreatePaymentRequest | nil |
| GET | /api/v1/payment | nil | ref |
| POST | /api/v1/payment/expire | nil | ref |

