#rfcgreg

1 messages · Page 1 of 1 (latest)

tall girderBOT
north shard
#

Hello

cobalt mantle
#

hello !

north shard
#

You are using the deferred intent flow?

cobalt mantle
#

also it may be helpful to jnow that after stripe.createPaymentMethod succeeds its follows on to:

                payment_method: paymentMethod.id
            }).then(function(confirmResult) {
#

yeah

north shard
#

Can you show me how yo uare rendering your Payment Element?

#

Ah you need confirmSetup not confirmCardSetup

cobalt mantle
#

ah

north shard
#

Try that first

#

And let me know if you run into the same issue

cobalt mantle
#

yeah will do, thanks

cobalt mantle
#

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.

north shard
cobalt mantle
#

oh ok, so I'd be fine to set the return url as the referring url (the form

#

and set if required *

north shard
#

Yep that should work fine assuming you aren't supporting any payment methods that do require a redirect

cobalt mantle
#

just general UK bank cards and link

north shard
#

Yep then you are good

cobalt mantle
#

possibly foreign bank cards too, but mainly uk

north shard
#

You mostly want to watch out for bank-based redirects and some buy-now pay-later stuff

#

Most buy-now pay-later stuff isn't for setup any way

cobalt mantle
#

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"

north shard
#

Gotcha

#

You should be fine overall with if_required

#

Just do thorough testing

cobalt mantle
#

yeah definitely be doing a lot of testing, I had released the "update" with the link stuff added in and was under the impression it was working (oops)

#

thanks for your help, I'll make these changes and see how I get on