#tyson - payment link subscription webhooks
1 messages · Page 1 of 1 (latest)
👋 happy to help
you can choose to create the customer only if_required https://stripe.com/docs/api/payment_links/payment_links/object#payment_link_object-customer_creation
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
but unfortunately it's not really possible to pass down a Customer from a Payment Link to a Checkout Session
No you'd have to create a new Payment Link
For each customer?
oh sorry my bad, I confused you with another Payment Links thread
🤦
if you know the customer ahead of time, then Payment Links isn't the right solution for you
you should instead use Checkout Sessions and create one each time for each customer
could transfer_data, with the customer id sort it out
basically, checkout sessions create a bud on the software i am using
so i can use them
Hey! Taking over for my colleague. Let me catch up.
yes!
Could you please provide more details on what you want to achieve ?
transfer_data is used for creating destination charges for one of your Connected Accounts
If you want to make a Checkout Session exclusive to one customer, you need to use Stripe Checkout Sessions and set the customerId:
https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-customer
Do you mean bug here? if so is that something that we (Stripe) could help you solve it ?
I am an unrelated question from earlier i solved it! But with the payment links, how to i ret the return url?
as the after completion para = return )how do i set that return URL?
You can set a return url in the after_completion.redirect.url
https://stripe.com/docs/api/payment_links/payment_links/create#create_payment_link-after_completion-redirect-url
and set after_completion.type=redirect
https://stripe.com/docs/api/payment_links/payment_links/create#create_payment_link-after_completion-type
Sweet!
Is there a way of adding all the activity of my connect accounts into my app?
Basically i am i have to use payment links, and i am trying to tell my app when a subscription is complete could i get this info?
about quanity of subscripons left?
ect
Not sure I'm understanding all of your questions
You can track the PaymentLinks using webhooks:
https://stripe.com/docs/payments/payment-links/api#tracking-payments
I need to have a GET API request so i can amend the amount of subcriptions after purchase within my app
Bit of a broad question!
is that possible?
You can list all your Subscription and calculate the total amount:
https://stripe.com/docs/api/subscriptions/list
But there isn't a direct API
Workflow i need = payment via payment link -> back to app -> stripe data to app = changes available value
You need to track the payment using webhooks then
What key should i use to get the quanity of products left?
I don't know this tool, what do you want to achieve ?
What do you mean by "i use to get the quanity of products left?" ?
stripe data to app = changes available value
If you're using Payment Links, this would be best facilitated by listening tocheckout.session.completedwebhooks to perform any fulfillment you need to do in your system following a successful new subscription:
https://stripe.com/docs/payments/checkout/fulfill-orders#create-event-handler
This might involve tracking any "stock" or capacity however you do that in your system
tyson - payment link subscription webhooks
In an after completion payment link, can i get stripe to send my app an api request to change quantity of product. using my own webhooks and secret keyss
You can subscribe to our webhooks (as in that doc) and do whatever you need to do from there in your endpoint handler when you get a notification