#alanx4654

1 messages ยท Page 1 of 1 (latest)

red bayBOT
wintry zinc
#

Have you created any?

river elk
#

yep, I can't find it on the page

#

I have already set this

wintry zinc
#

Ok, so you're setting that via the Dashboard?

river elk
#

yep

#

no bpc_ stuff on the page

#

where to get it

wintry zinc
#

Then I think you can just omit the configuration parameter when you create a session

#

And it uses the default, which is that one set in Dashboard

river elk
#

So I can only get it by calling API?

wintry zinc
#

Yes

river elk
#

Fine, thx

river elk
#

Hello, another question

#

How can I get customer Id when user use paymentlink to pay?

#

I use payment_link with client_reference_id, but I didn't create any customer.

wintry zinc
#

Can you share the plink_xxx ID?

wintry zinc
#

Checking

#

What do you mean by 'didn't create any customer'? When are you expecting that to happen?

river elk
#

I just show the payment_link , and my client's click it , I will add client_reference_id as url params, so I can get client_reference_id at webhook when customer paid

#

but I'm not sure if there exists customer id in the webhook response together

wintry zinc
#

Sure, sounds reasonable. The same checkout.session.completed event that fires when your customer completes payment should include a customer field

river elk
wintry zinc
#

Please share an example if that's not the case!

river elk
#

It's that case, thank you, I got customer ID now

karmic warren
#

๐Ÿ‘‹ taking over for my colleague. Let me know if there's any follow-up Qs I can answer!

river elk
#

yep, another question, how can I get the product info from webhook data?

#

Now I know who bought my product, but I don't know what product the customer bought

#

I can't find any field related with product

#

And If the subscription got updated, for example the user changed the plan, or change quantity what should I do to detect these things

wintry zinc