#swe_api

1 messages ยท Page 1 of 1 (latest)

junior jackalBOT
#

๐Ÿ‘‹ 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/1306625847998025758

๐Ÿ“ 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.

  • swe_api, 11 minutes ago, 7 messages
rough brook
#

Let's say we are building a two-step checkout flow using Stripe APIs here. (not stripe checkout)

  1. We get the bank account details.
  2. We save it temporarily using sources API.
  3. Customer does checkout.
  4. In last step, we use this temporary token to attach it to a customer and then do payment.

But, now, we do not have any alternatives to second step. Is there any other alternative other than intents API? We are not getting mandates in payment methods.

deft shard
#

๐Ÿ‘‹ happy to help

rough brook
#

Hi.

#

Could you help here?

deft shard
#

We save it temporarily using sources API.
the sources API is pretty much deprecated and you shouldn't use that

rough brook
#

yes, we are working on the changes to move from sources api

deft shard
#

Is there any other alternative other than intents API? We are not getting mandates in payment methods.
would you mind sharing an example?

rough brook
#

Sure.

deft shard
#

are you using setup_future_usage: 'off_session' ?

rough brook
#

As an alternative, we are trying to use curl --location 'https://api.stripe.com/v1/payment_methods'
--header 'Content-Type: application/x-www-form-urlencoded'
--header 'Authorization: Basic 0QzMWhLcGI5Wk9QR3kwaEZWN3Z4TDAwRkxYcFVIYVQ6'
--data-urlencode 'type=sepa_debit'
--data-urlencode 'sepa_debit%5Biban%5D=AT321904300235473204'
--data-urlencode 'billing_details%5Bname%5D=John Doe'
--data-urlencode 'billing_details%5Bemail%5D=test@abc.com'

#

But, this doesn't return mandate. That's our issue.

#

We want mandate creation and in response without intent flow

deft shard
#

actually you don't need PaymentIntent if you just want to save the PaymentMethod

#

instead you can just use SetupIntents

rough brook
#

We do not want to use boht.

deft shard
#

unfortunately you don't have a lot of options here

rough brook
#

We are looking for something that will mimic the sources API behaviour

deft shard
#

SetupIntent will do that for you

rough brook
#

But, I can't create a unconfirmed setup intent for SEPA right?

deft shard
#

you can't create the Mandate using the PaymentMethod API

deft shard
#

you want to create a SEPA mandate without the customer being on session?

rough brook
#

I want to create setup intent first - when the customer adds bank account.
In last step before checkout, i want to confirm the setup intent.

deft shard
#

oh that's doable

rough brook
#

Yes, how?

#

I am talking about SEPA here ๐Ÿค”

deft shard
#

regardless of the payment method type

#

this is how you do it

rough brook
#

Okay, that makes sense. I will investigate this and get back

#

But, there is no way to get mandate information in payemnt method right? ๐Ÿค”

deft shard
#

the only way to create the mandate is with Stripe.js while the customer is on session

rough brook
#

Got it, can you share the docs for that?

deft shard
#

it's the doc I shared

rough brook
#

Makes sense, thank. you