#Nacho Diaz-pl

1 messages · Page 1 of 1 (latest)

vapid thistle
#

Hey!

#

You mean a back arrow?

little moat
#

yes

vapid thistle
#

Payment Links does not implement them, unlike Checkout

#

Nature of the product, most instances people are opening a Payment Link and there's nowhere to go back to

#

Unlike Checkout where users are likely redirected from a page on your app/site, and you can pass the cancel_url parameter (which is where the back button goes to)

little moat
#

ok! and i don't have how capture the event payment_intent.canceled?

whole walrus
#

Hi! I'm taking over this thread.

#

Can you clarify your lastest question? I'm not sure I understand what you mean.

little moat
#

ok sorry for my english grammar 😆

whole walrus
#

no worries! so what exactly are you trying to do?

little moat
#

I have a webhook with 2 event payment_intent.canceled payment_intent.succeeded.
How can watch payment_intent.canceled ?

whole walrus
#

Note that if you are using PaymentLinks, we recommend listening to the checkout.session.completed event.

little moat
#

Thanks!

#

i'am using integromat to create workflow. Now i watch correctly of the payment_intent.succeeded but not the payment_intent.canceled

whole walrus
#

I have no idea what integromat is. But if you have some code that handles payment_intent.succeeded, why can't you do something similar for payment_intent.canceled?

#

What's the issue exactly?

little moat
whole walrus
#

Oh! So your goal is to add a cancel button on the PaymentLink page? This has nothing to do with webhooks.

#

If users don't want to pay on your PaymentLink, they just have to close the page, there's no cancel button.

#

Or do want a button to allow users to cancel their subscriptions after they paid?

little moat
#

My goal is get data if the user not pay the product in that Payment Link

#

but I see the solution goes another way

#

thanks for all @whole walrus !!