#dlemburg - Payment Links
1 messages ยท Page 1 of 1 (latest)
Hi ๐
- The API does not allow changing the "name" of a payment link because that isn't an actual property of the payment link object: https://stripe.com/docs/api/payment_links/payment_links/object
bummer. that'd be a nice feature to enable easier searching in the Stripe Dashboard for non-engineering teams ๐
For 2), do you have an example?
not exactly. maybe i can provide a better explanation instead.
if i create a payment link with 1 product - which has 1 line item that charges a "recurring" fee of 2000/mo - how do i cancel that recurring fee if a user wants to do something like "Cancel Subscription"? meaning, I created a payment_link via the api, but not a subscription. does a subscription get created under the hood?
The subscription will get created as a result of the user completing the Checkout form that the payment link takes them to.
So you can use the /cancel endpoint for Subscriptions to cancel the resulting subscription.
https://stripe.com/docs/api/subscriptions/cancel
ah!
is the subscription id the subscription field in the 'checkout.session.completed' webhook event?
If you need more details you can retrieve the Checkout Session and expand the Subscription to get the full object
excellent! thanks so much, Snufkin