Hi everyone hope you guys are doing great. I am working on implementing custom checkout flow but using medusa services of payment-session, payment and payment provider.
Soo far what I got is :
-
when user visit checkout page and fill billing info and clicks on continue on delivery button. payment session api is called and based on number of payment provider it creates payment sessions. and with that api it also creates stripe payment intent for stripe payment providor and sends to customer as response.
-
and user receives payment session and payment intent data and fills card information for payment on click of checkout button it will first calls stripe confirm api with card info and payment intent id and client secret from front end.
-
when it receive 200 response from stripe it will call cart completion api and inside cart completion api order object is created and returned.
Now my question is when does payment object is created I mean from which api or event with its data I know it will be created after user clicks on checkout button but could't figure it out from source code can you guys help me here for stripe payment provider.
@visual willow