#madhav-sharma_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/1335876845828182036
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- madhav-sharma_api, 3 days ago, 12 messages
- madhav-sharma_api, 3 days ago, 53 messages
hi @leaden cypress
The payment page that you refer to, is it still the checkout page?
yes it is the checkout page
but I am doing the process in two steps:
- Adding cards to use in payments
- Doing payments
Ok, checkout page will only display the most recently payment method (if there's one), and there's no option for it to display previously saved payment methods
Ok but what about the payment method that we set to default from the stripe dashboard
I am defaulting a previously added method but it is not showing up on the payment page as well.
As I said, it will only show the last used payment method, which may not be the same as the default payment method
You might want to use Payment element to display saved payment methods.
sorry ? are you suggesting payment intents
Actually is there any way to implement in checkout session
No
So in case of the card added by setup where else can they be used
What solution would you suggest that can cover all the following things
- Handle Taxation
- One time Payment Collection for Products
- Dynamic Price Changes
- Do payments from a new Card Payments
- Use Saved Cards to do payments
Checkout sessions for 1-3
https://docs.stripe.com/payments/save-and-reuse#charge-saved-payment-method for 4 and 5
Currently we are using checkout sessions to collection payments and the checkout session in setup mode to add a new saved payments.
I tried adding a saved card via a setup intent and payment intent as well but they were not appearing on the checkout payment page while doing the payments
You don't use checkout sessions API to charge with saved payment method. Instead you should use PaymentIntents API
Did you get a chance to read through the doc that I shared earlier?
The prmiary objective of a Checkout Session is to collect (and save) a payment method from your customer. Since you already have a saved payment method, you should just use PaymentIntent API to create an off-session payment (aka without customer interaction)
Earlier we implemented the payment collection via PaymentIntent but it does not provide taxation
so we shifted to checkout session
also I had a discussion on Friday with support from stripe on discord and they suggested me to use the checkout session in setup mode instead to save the payments for future use
Ok, so it's about using Stripe Tax for payments using a saved payment method?
exactly
Got it. Sorry I missed the Tax part.
Yes PaymentIntent API doesn't support Tax. So you'll want to use Invoice API in this case.
I understand but we are using Invoice API for a payment methods for only the businesses not for individual customers.
So if there is any way we can implement this in checkout session that would be great
Unfortunately Checkout sessions API doen't have an option to specify a saved payment method
https://docs.stripe.com/tax/custom#calculate-tax Or you can use the tax calculation tax to calculate the tax, and use PaymentIntent API to collect the payment with a saved payment method