#SneakerInvest
1 messages · Page 1 of 1 (latest)
Not currently, no! You'd need to manually disable the PL after the first checkout.session.completed event
Is there any way around it ?
or can you lead me to the right direction with the problem at hand
Listen for checkout.session.completed events (I imagine you are anyway). These fire when somebody pays using your Payment Links. When you receive one that has the payment_link field set the the plink_xxx ID, update that PL to disable it: https://stripe.com/docs/api/payment_links/payment_links/update#update_payment_link-active
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
will there be any updates to the system to get this in place sometime
for links to deactivate automatically after one checkout
Yep, it's something we're thinking about but not on immediate horizon