#adam_landow
1 messages · Page 1 of 1 (latest)
hello! that's a current limitation of the Pricing Table unfortunately
you can't reuse an existing Customer id
but there should be other pieces of information that you can refer to
can you share the Subscription id so that I can take a look?
Ouch
Where would I find a subscription ID?
And failing that, what other information can I use?
you mentioned that you listen to the subscription created webhook event?
there should be a Subscription id in there
it'll start with sub_
so if you refer to the event : https://dashboard.stripe.com/test/events/evt_1MWvkTLzWoLInG3MMZXODWas
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
yes...
it has a customer id : "customer": "cus_NHUjIiwvyzb13E",
OK...
is that what you're looking for?
Not really. The way my site works is:
- User registers, they get a Stripe ID (I'm using Laravel Cashier which takes care of this)
- They can upgrade their subscription. I'm hoping to use pricing tables for this bit- it's so much easier than the way I've already got it
so you mean, at 1) they already paid for and have a Subscription?
- An event listener handles the webhook event and upgrades the user identified by the customer ID
No, but they have a Strips customer ID ready for when they do
I'm beginning to think I may need to rethink this
yeah, honestly, Stripe Pricing Tables just isn't able to use an existing Customer ID yet
it's been an feature that we've been getting a lot of requests about though
Is there a way to return the client-reference-id with the event?
And is there a plan to?
you can pass in a client-reference-id property in the Pricing Table
i don't have any information or timeline on when such a feature will be available
How do I get that back with the subscription event?
it'll be returned in the checkout.session.completed event
so I know which user subscribed to what?
not in the subscription event