#Joycey

1 messages · Page 1 of 1 (latest)

gritty anchorBOT
copper ice
#

I meant, will it create NEW customer.

slow mist
#

hi! yes, it will create a new one if you're using PaymentLinks, they're simple no-code no-state links to accept a payment/start a subscription

#

if you don't want that you'd need to more directly use CheckoutSessions yourself with your own custom code/website so you can authenticate a returning user and identify an existing Stripe Customer cus_xxx to use with the CheckoutSession

copper ice
#

Got it! Thank you.

gritty anchorBOT
copper ice
#

Oh, but what happens when the subscription gets renewed or deleted? Does it intimate with the same cus_zbc it was created with or new customer id will be generated?

slow mist
#

renewal doesn't change the customer

#

it's just the existing Subscription generating a new Invoice each month(for example) automatically

#

not sure how your question relates to deleting the subscription, deleting the subscription does just delete it yes(the Customer cus_xxx is otherwise unaffected)

#

does that help?

copper ice
#

Yes, it does. Ty again!

toxic sundial
#

Hi! I'm taking over my colleague. Please, let me know if you have any other questions.

copper ice
#

One more question.. Say I initially subscribed to a plan and I was assigned customer id cus_123. Few months later, I've upgraded to plan B and I am now assigned customer id cus_245. What will be the last webhook event sent regarding cus_123 as it will no longer get further updates?

#

Oh, are they totally irrelevant to each other?

toxic sundial
#

Did you update the Customer ID value yourself?

copper ice
#

No, auto generated from following payment link to payment checkout

toxic sundial
#

But it's not an upgrade then, you just created a new Stripe Customer and a new Subscription.

copper ice
#

Yes. So in that case the old cus_123 will have no events sent, right? Just confirming what I'm assuming is right.

toxic sundial
#

What kind of events are you listening to?

copper ice
#

customer.created/updated, customer.subscription.created/updated, invoice.paid and such..

toxic sundial
#

If it's a different Customer and Subscription, then no, you won't get any related events.

#

Please, let me know if you have any other questions.

copper ice
#

That's all thanks.