#tyson-subscription-sepa

1 messages Ā· Page 1 of 1 (latest)

neon vergeBOT
tired bramble
#

Hello šŸ‘‹
When you say direct debit, are you referring to ACH?

strange dirge
#

Yes i believe so direct debits or bank ebdits

#

debits

tired bramble
strange dirge
#

Sweet ill have a look!

tired bramble
#

NP! šŸ™‚ Lmk if you have any follow up questions

strange dirge
#

I do, can this all be done in checkout? what do i need to add to my call currwnlty i am doiung this

#

after creating the price via api

tired bramble
#

Are you getting any errors?

strange dirge
#

Nope all i am doing is setting it as a subscription and i don't think that dorect debits i think it s cards

tired bramble
#

Have you enabled ACH under payment methods?

#

You'd need to enable it on the connected account

strange dirge
#

Can i do this via api?

tired bramble
#

What type of connected account are you working with?

#

Assuming Standard but want to make sure

strange dirge
#

Basically what i want to achieve is to let my connect accounts use direct debits for there memebers susbcritpions using the api and i am based the uk

#

I use standard accounts

tired bramble
#

Where are these connected accounts located?
ACH Direct debit is only available for US accounts

strange dirge
#

In the Uk

tired bramble
#

ACH direct debit is US only.

UK connected accounts can support SEPA debits

strange dirge
#

How does this work with stripe checkout?

tired bramble
#

The PaymentMethod configuration on the connected account is what checkout uses to render the supported payment methods. So once you enable these PaymentMethods on the connected account, Checkout should render them

#

UK connected accounts also support Bacs Direct Debit

strange dirge
#

for that account

tired bramble
#

card_payments only enable cards (which is enabled by default)

strange dirge
#

Or acutally from the docs i need to so this: payment_method_options.sepa_debithashIf the Checkout Session’s payment_method_types includesĀ sepa_debit, on the checkout call do does the stripe connect accont have to have that availability!

tired bramble
#

You'd typically need to enable the PaymentMethod on the connected account first, otherwise setting sepa_debit on the session's payment_method_types would error out

However, it looks like sepa_debit and bacs_debit both are available by default on UK Standard accounts.

#

Yeah try setting the payment_method_types to see if it behaves differently

neon vergeBOT
pearl tusk
#

tyson-subscription-sepa

strange dirge
#

In terms of the actual para for this what should i put is a string value id thought it would be boolean

#

on_sessionUseĀ on_sessionĀ if you intend to only reuse the payment method when your customer is present in your checkout flow.off_sessionUseĀ off_sessionĀ if your customer may or may not be present in your checkout flow.noneUseĀ noneĀ if you do not intend to reuse this payment method and want to override the top-levelĀ setup_future_usageĀ value for this payment method.

#

There also these child attributes, i want to be set up on the initial payment and then set to SEPA

pearl tusk
#

Hey @strange dirge! I'm sorry I don't follow your train of thought here. What is the problem?

strange dirge
#

I am trying to set up SEPA payments for subcrtipons on my connect accounts are the spesific paras do i need and what are the keys

#

is it payment_method_options.sepa_debit.setup_future_usage key = off_session

pearl tusk
#

There's no reason to be setting any of this, so I'm really confused unfortunately by what you're asking

strange dirge
#

How can i help you?

#

My client want direct debits as the payment method so i am working out how to change their stripe api calls so their customers will being usingnSEPA

pearl tusk
#

Can you explain exactly what you are doing? Like you said you were using Checkout, so there should be no reason to "set that key".

#

If you can share
1/ a concrete example of a Checkout Session id.
2/ Your exact code for creating it
Then I'm happy to help

strange dirge
#

Does this help at all?

pearl tusk
#

yes there's no reason to set this at all that's what I said earlier

strange dirge
#

Can you expand no reason

pearl tusk
#

so it doesn't really help, you shouldn't be setting this at all. You're in subscription mode, it's for recurring payments, it's expected that you plan to charge that paymeht method again later.

strange dirge
#

In fact there is a reason as subscriptions are not direct debits correct?

#

And so i need to set the direct debits up at checkout for it to be a set for subscription mode

pearl tusk
#

Can I ask you to share your exact code + an exact Checkout Session id where SEPA Debit is not appearing? That will be helpful to debug this

#

please don't leak your API key like that. Also sorry I'm asking for real code but looks like it's just a simple curl. Is this your first time trying our API and you have never done this before?

strange dirge
#

No i am very familiar with the api, i am only using cURL API for this call, i am testing this out in postman to make sure it works so its just thrown together.

#

What params am i missing its saying "You can not pass payment_method_options[setup_future_usage] in subscription mode.", however i want a monthly direct debit via SEPA to take place

#

How is this possible?

#

Please let me know how i can help you

pearl tusk
#

Sorry Discord is really busy so taking a while and I still really struggle with all this back and forth

#

Please ignore the "extra parameter* and just share real code (without a real API key) so that I can help you

strange dirge
#

No problem

#

Ok let me simply this, The only thing i want to do is create a checkout session that sets up a monthly payment or subscription using direct debits in gbp, what are the is the checkout sessions paras and keys i need to do this.

pearl tusk
#

Yeah sorry, Discord is really busy and we're running a bit in circles

#

There's no specific parameters needed, it should just work with a GBP Price. That's why I keep asking for a real example and the basic code you had where it didn't work earlier before you tried adding unrelated params

strange dirge
#

https://api.stripe.com//v1/checkout/sessions" -H "Content-Type: application/x-www-form-urlencoded" -H "Authorization: Bearer xyz -H "Stripe-account: acct_1LsV3iEmAsCUvewd" -d "cancel_url=https%3A%2F%2Fexample.com%2Fcancel" -d "success_url=https%3A%2F%2Fexample.com%2Fcancel" -d "customer=cus_NDYNEcLqkl3FWE" -d "line_items%5B0%5D%5Bprice_data%5D%5Bcurrency%5D=gbp" -d "line_items%5B0%5D%5Bprice_data%5D%5Bproduct_data%5D%5Bname%5D=t-shirt" -d "line_items%5B0%5D%5Bprice_data%5D%5Brecurring%5D%5Binterval%5D=month" -d "line_items%5B0%5D%5Bquantity%5D=1" -d "mode=subscription" -d "payment_method_types%5B0%5D=sepa_debit"

pearl tusk
#

Okay so that error is really clear right?

strange dirge
#

Its saying i cant use gbp i have to use eur

pearl tusk
#

correct

strange dirge
#

"There's no specific parameters needed, it should just work with a GBP Price."

pearl tusk
#

yes sorry I thought you wanted all bank debits, not just SEPA Debit

#

SEPA Debit -> EUR
BACS Debit -> GBP

strange dirge
#

Is there a benefit with all banks debits

#

what would that be?

pearl tusk
#

I don't understand what this question means

strange dirge
#

No worries

#

I am getting this error

pearl tusk
#

yes same error as earlier. There's no reason for you to be passing this parameter

strange dirge
#

How can i make a repeating payment?

pearl tusk
#

You are already in subscription mode. Your Price is already recurring. It will be a repeat payment automatically

strange dirge
#

It wont let me use bacs in subcritpion mode

#

cs_test_a1rilFFqtOHeFWqbWURQibVUDuufZ9atYOZcu7W2M9esEYWLQSawmKfKr0"

pearl tusk
#

šŸ˜…

#

please stop passing that parameter entirely

#

That parameter is only useful for payment mode. So when you switch to subscription mode you have to remove it entirely

#

That specific parameter is how you tell us "please save that payment method for future payments" during a one-time payment flow (payment mode).

strange dirge
#

which parameter?

pearl tusk
#

the one that explicitly is called out in the error

#
    bacs_debit: {
      setup_future_usage: "off_session",
    },
  },```
#

you pass ^. You should not

strange dirge
#

But thats a para thats making it a direct debit isunt it?

pearl tusk
#

not at all it isn't

#

please try to remove it and see

strange dirge
#

OOOOO Nice i see thanks its worked like a charm!

#

Do i have to set-up the connected stripe accounts permissions for the bacs so does it just work out the box?

pearl tusk
#

yeah in theory you don't need to pass payment_method_types at all. You can use automatic payment methods and based on the settings of each connected account, we will show the right payment method types

strange dirge
#

Nice but simplicity, is is the best way?

pearl tusk
#

I don't know what that sentence means

strange dirge
#

Sorry, for the sake of simplicity is this most simple solution ?

pearl tusk
#

what is "this"? What I described? Or your code?

strange dirge
#

Payment_method_types": [ "bacs_debit"

#

IN the checkout call

pearl tusk
#

That is not what we recommend on our end. We recommend not passing payment_method_types at all so that we (Stripe) can determine the right set of payment method types to offer based on all the criteria (settings on the platform and connected account, currency, minimum/maximum amount, recurring payments support, etc.)

strange dirge
#

Ok, thanks for your help and your paitenace with me!

pearl tusk
#

Of course! Sorry it took a while to get there

neon vergeBOT