#gonakajima_api
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1220712008098254849
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Can you help me understand the issue you're encountering in more detail?
When users register, we send their phone number to Stripe as a customer identification method and receive a customer ID in return.
Users must register their payment method (only card payments accepted) with Stripe in advance.
Users request home visits through the web.
At the time of the home visit, a fixed transportation fee of 2,000 yen is charged.
After completing the home visit, the administrative side determines the amount of medical fees the patient needs to cover at a later date and bills the customer.
The fees from steps 3 and 4 are combined and charged to the credit card.
And which part of that flow are you struggling with?
which api should i use for example payment-intents or is there another best practice.
Users must register their payment method (only card payments accepted) with Stripe in advance.
You'd use a Setup Intent for this part to collect and save their card details: https://docs.stripe.com/payments/save-and-reuse
At the time of the home visit, a fixed transportation fee of 2,000 yen is charged.
After completing the home visit, the administrative side determines the amount of medical fees the patient needs to cover at a later date and bills the customer.
You can then create an off-session payment for combined amount via a Payment Intent, using the saved details from the first step: https://docs.stripe.com/payments/save-during-payment?platform=web#charge-saved-payment-method
Thank you very much!!! "ariga-to!!" I'll check this document for details!
No problem, glad I could help!