#don_unexpected
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1283738400817549376
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
can you see my describe that i submit
when i test the checkout locally,500 errcode
and i wonder if i can see the errorlog on stripe.com
This is a 400 error from Stripe.
Why are you sending price: "{{PRICE_ID}}"?
You need to replace {{PRICE_ID}} with an actual Price ID.
where can i get the actual Price ID
did i missed some operation?
Are you following any docs?
You can create the Products and Prices on your Stripe Dashboard.
We have the needs to provide discount for our customers at anytime, do you mean that if the price on our website is changed, we have to update the price on Stripe dashboard? Which means we need to change the price twice?
You'd need multiple Price objects to reflect the various 'discounts' yes as they are immutable generally. Alternatively you can use coupon/promo codes to discount prices: https://docs.stripe.com/payments/checkout/discounts
when the discounts are set in our website, and the customers use stripe to pay, if we don't set the discount on the dashboard, they have to pay the original price on the dashboard, not the discounted price on our website? Is this correct?
Yes
thanks
can just pass the price and discount to your api when the customer purchase the products
Yeah you can use ad-hoc line items for that: https://docs.stripe.com/payments/checkout/migrating-prices#server-side-code-for-inline-items
what we want is using stripe to pay.No need to maintain our products prices ,discounts,etc on stripe
Checkout is tied to the concept of maintaining a product catalogue inside of Stripe. Otherwise you should look at using Payment Element: https://docs.stripe.com/payments/accept-a-payment?platform=web&ui=elements
You can just use an amount and currency there
this way ,we don't need to list our price on stripe first ?
Correct
thanks
can we still use Stripe tax function to calculate the tax of each payment and add the tax into total payment?
Could you give me the link to the instructions regarding credit card payment development?
hi! I'm taking over this thread.
Could you give me the link to the instructions regarding credit card payment development?
you mean a guide on how to accet a payment with Stripe? then it's this: https://stripe.com/docs/payments/accept-a-payment
Do you have a sample video of credit card payment application on the website?
you mean a video tutorial?
if so, you can search here: https://www.youtube.com/stripedevelopers