#vivek mahajan
1 messages · Page 1 of 1 (latest)
HI there,
Yes please, what's your question ?
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>
AFAIk yes, you can give it a try and test it
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?
yes just a minute to check
ok
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
you don't 'need to' but you can if you wish.
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?
you can add the ID so then you are able to retrieve the CheckoutSessionID when handling the redirect page on your site , and/or you can also use webhooks. https://stripe.com/docs/payments/checkout/fulfill-orders
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.
not possible no
every time i do checkout it creates new customer, even same email id?
yes