POST/v2/online-checkout/payment-links
Create payment link
When use this api to create a payment link ,
which webhook will trigger after customer completed the payment?
is it order.updated or payment.updated or else? THX
POST/v2/online-checkout/payment-links
When use this api to create a payment link ,
which webhook will trigger after customer completed the payment?
is it order.updated or payment.updated or else? THX
I’m Square Dev AI, here to help answer your question!
Based on the information you’ve provided, the following documentation will help answer your question:
Quick Pay Checkout
Square Order Checkout
Migrate from CreateCheckout to CreatePaymentLink
If this documentation helped you find a solution, please check the box indicating that this reply solves the problem.
Otherwise one of our Developer Advocates will provide additional assistance shortly.
After a customer completes a payment using a payment link created through the Checkout API, the webhook events that get triggered are payment.created
and payment.updated
. The payment.created
event is triggered when the payment is initially created, and the payment.updated
event is triggered when the payment status is updated, such as when the payment is completed.
This answer was reviewed by @Bryan-Square.
Also order webhook events will fire as well.
I was trying it out a few days ago but payment.created did not fire in sandbox despite having a subscription for it. What am I doing wrong?
Do you have the payment_id
?