#adam_landow

1 messages · Page 1 of 1 (latest)

river bisonBOT
slender hawk
#

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?

glass basin
#

Ouch

#

Where would I find a subscription ID?

#

And failing that, what other information can I use?

slender hawk
#

you mentioned that you listen to the subscription created webhook event?

#

there should be a Subscription id in there

#

it'll start with sub_

glass basin
#

OK

#

sub_1MWvkQLzWoLInG3MPk7WFAK9

#

Note that this is a test

slender hawk
glass basin
#

yes...

slender hawk
#

it has a customer id : "customer": "cus_NHUjIiwvyzb13E",

glass basin
#

OK...

slender hawk
#

is that what you're looking for?

glass basin
#

Not really. The way my site works is:

#
  1. User registers, they get a Stripe ID (I'm using Laravel Cashier which takes care of this)
#
  1. 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
slender hawk
#

so you mean, at 1) they already paid for and have a Subscription?

glass basin
#
  1. An event listener handles the webhook event and upgrades the user identified by the customer ID
glass basin
#

I'm beginning to think I may need to rethink this

slender hawk
#

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

glass basin
#

Is there a way to return the client-reference-id with the event?
And is there a plan to?

slender hawk
#

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

glass basin
slender hawk
#

it'll be returned in the checkout.session.completed event

glass basin
#

so I know which user subscribed to what?

slender hawk
#

not in the subscription event