#tyson-subscription-sepa
1 messages Ā· Page 1 of 1 (latest)
Hello š
When you say direct debit, are you referring to ACH?
Gotcha, yes we do support ACH direct debits with Subscriptions.
It would be similar to how other payment methods work with subscription integrations.
https://stripe.com/docs/billing/subscriptions/build-subscriptions?ui=elements#change-price
Sweet ill have a look!
NP! š Lmk if you have any follow up questions
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
Are you getting any errors?
Nope all i am doing is setting it as a subscription and i don't think that dorect debits i think it s cards
Have you enabled ACH under payment methods?
You'd need to enable it on the connected account
Can i do this via api?
What type of connected account are you working with?
Assuming Standard but want to make sure
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
Where are these connected accounts located?
ACH Direct debit is only available for US accounts
In the Uk
ACH direct debit is US only.
UK connected accounts can support SEPA debits
You'd request the capability on the connected account for SEPA
https://stripe.com/docs/connect/account-capabilities#payment-methods
How does this work with stripe checkout?
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
Ok sweet so i need to do this call: curl https://api.stripe.com/v1/accounts/{{CONNECTED_ACCOUNT_ID}}/capabilities/card_payments
-u "sk_test_26PHem9AhJZvU623DfE1x4sd:"
for that account
card_payments only enable cards (which is enabled by default)
but yeah, you'd basically update the account capability that you want to request
https://stripe.com/docs/api/capabilities/update?lang=curl
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!
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
tyson-subscription-sepa
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
Hey @strange dirge! I'm sorry I don't follow your train of thought here. What is the problem?
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
There's no reason to be setting any of this, so I'm really confused unfortunately by what you're asking
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
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
"error": { "message": "You can not pass payment_method_options[setup_future_usage] in subscription mode.", "request_log_url": "https://dashboard.stripe.com/acct_1LsV3iEmAsCUvewd/test/logs/req_3PxYRxWIj6uBMY?t=1685463189", "type": "invalid_request_error" }}
Does this help at all?
yes there's no reason to set this at all that's what I said earlier
Can you expand no reason
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.
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
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?
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
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
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.
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
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"
error": { "message": "Invalid currency options gbp. The payment method sepa_debit only supports the following currencies: eur.", "request_log_url": "https://dashboard.stripe.com/acct_1LsV3iEmAsCUvewd/test/logs/req_9z4W9sSs5v1qqX?t=1685464456", "type": "invalid_request_error" }
Okay so that error is really clear right?
Its saying i cant use gbp i have to use eur
correct
"There's no specific parameters needed, it should just work with a GBP Price."
yes sorry I thought you wanted all bank debits, not just SEPA Debit
SEPA Debit -> EUR
BACS Debit -> GBP
I don't understand what this question means
No worries
I am getting this error
"You can not pass payment_method_options[setup_future_usage] in subscription mode.", "request_log_url": "https://dashboard.stripe.com/acct_1LsV3iEmAsCUvewd/test/logs/req_vAcfo9fkDw4VVV?t=1685465366", "type": "invalid_request_error"
yes same error as earlier. There's no reason for you to be passing this parameter
see what I said here
How can i make a repeating payment?
You are already in subscription mode. Your Price is already recurring. It will be a repeat payment automatically
It wont let me use bacs in subcritpion mode
cs_test_a1rilFFqtOHeFWqbWURQibVUDuufZ9atYOZcu7W2M9esEYWLQSawmKfKr0"
When i try in sub mode its "message": "You can not pass payment_method_options[setup_future_usage] in subscription mode.", "request_log_url": "https://dashboard.stripe.com/acct_1LsV3iEmAsCUvewd/test/logs/req_30oIUB6wrs4AV9?t=1685465701", "type": "invalid_request_error" }}
š
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).
which parameter?
the one that explicitly is called out in the error
bacs_debit: {
setup_future_usage: "off_session",
},
},```
you pass ^. You should not
But thats a para thats making it a direct debit isunt it?
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?
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
Nice but simplicity, is is the best way?
I don't know what that sentence means
Sorry, for the sake of simplicity is this most simple solution ?
what is "this"? What I described? Or your code?
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.)
Ok, thanks for your help and your paitenace with me!
Of course! Sorry it took a while to get there