#rfcgreg
1 messages · Page 1 of 1 (latest)
Hello
hello !
You are using the deferred intent flow?
also it may be helpful to jnow that after stripe.createPaymentMethod succeeds its follows on to:
payment_method: paymentMethod.id
}).then(function(confirmResult) {
yeah
Can you show me how yo uare rendering your Payment Element?
Ah you need confirmSetup not confirmCardSetup
ah
yeah will do, thanks
I've made a little progress, however I'm facing an error regarding the return_url... I haven't had to use that before as stripe would generate the payment method and I would create and attach the cstomer after that via php
Uncaught (in promise) IntegrationError: stripe.confirmSetup(): the confirmParams.return_url argument is required when using automatic payment methods.
Certain payment method types require a redirect. Thus you need a return URL. However, you can set redirect: 'if_required' (https://stripe.com/docs/js/setup_intents/confirm_setup#confirm_setup_intent-options-redirect) to only redirect when necessary
oh ok, so I'd be fine to set the return url as the referring url (the form
and set if required *
Yep that should work fine assuming you aren't supporting any payment methods that do require a redirect
just general UK bank cards and link
Yep then you are good
possibly foreign bank cards too, but mainly uk
You mostly want to watch out for bank-based redirects and some buy-now pay-later stuff
(Bank redirects: https://stripe.com/docs/payments/bank-redirects)
Most buy-now pay-later stuff isn't for setup any way
Ok I'll read over and check. For the most part, this is for customers who have signed up to a service that doesn't necessaarily have set fees or recurring periods
the main goal is to save their billing details on stripe so the company can charge as and when they incur charges. It's a bit of a unique use case
and almost always "off session"