#Tony-paymentlink

1 messages · Page 1 of 1 (latest)

humble heath
#

hi there! i'm afraid not, it's not possible to generate a payment link from a PaymentIntent

stiff flax
#

okey, maybe the way is to put it on a checkout page ?

#

Like, our customer support wants something to send to our customers when they kind of fail with 3DS and so

humble heath
#

would you be able to share more context e.g. How does your payment flow currently work?

stiff flax
#

So we have a case where the client sends a request for something and later in the future - this request is accepted and the backend tries to charge the customers card. Since its off-site, a lot of 3DS cases arises.

We have a way in the app for customers to retry payments with changing the paymentMethod for the same paymentIntent.

Sometimes, we see that its just easier to simply sent them a link which they can use any card to complete, and the paymenIntent is fullfilled

#

sounds like an easy plan

humble heath
#

when you try to charge the user off session, did you pass in off_session=true when creating the PaymentIntent?

stiff flax
#

I do not, actually

#

hmm. That could save us a lot of trouble, I guess ?

#

or wait, I do

#

I do this.

      additional_args = {
            "setup_future_usage": "off_session",
            "payment_method_options": {"card": {"request_three_d_secure": "any"}},
        }
#

is that what we are talking about ? Sorry for the wrong formatting here

humble heath
#

is that what you intended?

stiff flax
#

Aha, I think this was setup back in the days to fight fraud. Probably time to take them all down

humble heath
#

if you're using an existing PaymentMethod id, you should omit this also : setup_future_usage

stiff flax
#

Alright. I will kill that whole thingy

humble heath
#

waitwaitwait, you shouldn't necc. "kill" the whole thing

stiff flax
#

Ah, I meant - kill the additional_params

humble heath
#

if you're collecting a payment method from your frontend using the PaymentIntent, then you would need that parameter

stiff flax
#

Nope, we are not doing that. And that is the funny part

#

we have a separate place where we have a list of all paymentMethods (like a wallet)

humble heath
stiff flax
#

acct_15IhAcJLmO8KP9l1

humble heath
#

Example :

stiff flax
#

aha. okey

humble heath
#

so remove request_three_d_secure": "any" in your code. But you can adjust the rules in Radar so that it requests 3DS for more PaymentIntents

stiff flax
#

True.

humble heath
#

if you include off_session=true, the Radar rules shouldn't request for 3DS

stiff flax
#

From a customer point of view, we dont want that friction either. I think when SCA was introduced we were thinking this was required. But apparently migration to paymentIntents was just enough

humble heath
#

hmmm, it's a business decision driven by metrics i guess. If you see that fraud is starting to go up again, you should definitely turn it back on to a "stricter" rule

#

remember to test before deploying any changes and feel to reach out again if you have any other questions 😄

stiff flax
#

of course.

#

Testing it on our staging env and probably allowing it to mature through the weekend