#Omri-payment-element-subscription
1 messages ยท Page 1 of 1 (latest)
Hi again ๐ sorry, but I'm not quite sure what you're referring to, could you elaborate a bit on what you're trying to do?
I need this element Bacs direct debit to work with subscription, how I'm doing that?
Thank you for that. This guide talks about creating Subscriptions, and this section specifically discusses the step where you need to collect payment details via the Payment Element.
https://stripe.com/docs/billing/subscriptions/build-subscriptions?ui=elements#collect-payment
There is a note about what types of payment methods are supported by both the Payment Element and Subscriptions, and I'm not seeing Bacs listed there. If you can bear with me for a bit I'll work on testing to see if I can get Bacs to appear for this scenario.
My test sites are giving me problems (gateway issues) so my teammate is testing this, I will let you know once we have a definitive answer.
Hey, apologies for the delay. I am the teammate that is testing this, you should be able to use BACs + Subscriptions + Elements together. Can you tell me more about where you are running in to issues trying to get this to work?
Basically this guide is what you are looking for
You create the subscription, take the PaymentIntent on the Subscription's first invoice, and pass the PaymentIntent's client_secret to the frontend where you use it with the PaymentElement just like any other client secret
Hi @slender pebble do you have a follow-up question?
I did what Pompey said, but the Basc Direct Debit option are not shown on the payment element. subscription ID: sub_1LWx26CBUl2dXyH5INxkZ7mA client_secret: pi_3LWx26CBUl2dXyH51EteP5XK_secret_tg2LAyEtCWUBgqMPQIc0oobqf
Got it, let me take a look
Can you pass in bacs_debit to payment_method_types (https://stripe.com/docs/api/subscriptions/create?lang=php#create_subscription-payment_settings-payment_method_types) when creating a subscription?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Yes, and there are pre-requisites
- Google Pay -> You have logged into your google account and you have an active card in google pay
- Apple pay -> You have added an active card to Safari, and you have also registered your domain for Apple pay
๐