#madhav-sharma_api

1 messages ¡ Page 1 of 1 (latest)

kind ospreyBOT
#

👋 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.

meager furnace
#

hi @leaden cypress

leaden cypress
#

The payment page that you refer to, is it still the checkout page?

meager furnace
#

yes it is the checkout page

#

but I am doing the process in two steps:

  1. Adding cards to use in payments
  2. Doing payments
leaden cypress
#

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

meager furnace
#

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.

leaden cypress
#

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.

meager furnace
#

sorry ? are you suggesting payment intents

meager furnace
#

Actually is there any way to implement in checkout session

leaden cypress
#

No

meager furnace
#

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

  1. Handle Taxation
  2. One time Payment Collection for Products
  3. Dynamic Price Changes
  4. Do payments from a new Card Payments
  5. Use Saved Cards to do payments
leaden cypress
meager furnace
#

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

leaden cypress
#

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)

meager furnace
#

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

leaden cypress
#

Ok, so it's about using Stripe Tax for payments using a saved payment method?

meager furnace
#

exactly

leaden cypress
#

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.

meager furnace
#

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

leaden cypress
#

Unfortunately Checkout sessions API doen't have an option to specify a saved payment method