#vivek mahajan

1 messages · Page 1 of 1 (latest)

barren frigateBOT
primal lake
#

HI there,
Yes please, what's your question ?

meager tusk
#

i want to know if i use pricing table script and user click on button and goes to checkout page.

#

after payment does it redirect to website back by default?

#

or need to add any code

#

i want to save stripe customer ID in my website database after payment successful

#

using this script
<script async src="https://js.stripe.com/v3/pricing-table.js"></script>
<stripe-pricing-table pricing-table-id="prctbl_1MTGp1BLrwPDoKbo6kfdvvsT"
publishable-key="pk_test_51LkBHNBLrwPDoKbohJ4LQmK35Qm6Stc72bnqf4QIfIseZ9gq1n2c8QwzQNeUvjVHBaqTzNRQozH3ywATbznv4JkN00qyWMbhMr">
</stripe-pricing-table>

primal lake
meager tusk
#

i tested on my local server (localhost) with test key but not redirecting

#

need to provide redirect path anywhere or on which url it redirect?

#

you there?

primal lake
#

yes just a minute to check

meager tusk
#

ok

primal lake
#

when creating the pricing table actually, you need to choose between these two options

#

if you want your customer to be redirected to your website, then you need to fill your website url there

toxic bane
meager tusk
#

let me check

#

need to add this {CHECKOUT_SESSION_ID} at the end of redirect url?

toxic bane
#

you don't 'need to' but you can if you wish.

meager tusk
#

if i want to get stripe data then i need to add this?

#

or if i don't add still can access stripe data after confirmation?

toxic bane
meager tusk
#

ok thank you for information.

#

I'll test now

#

one question

#

if we use pricing table, can we send stripe customer id to checkout page?

#

i mean checkout does not create new customer of successful payment.

toxic bane
#

not possible no

meager tusk
#

every time i do checkout it creates new customer, even same email id?

toxic bane
#

yes

meager tusk
#

ok

#

i'll test 1st option