#emnaruto07-Stripe Rails
1 messages · Page 1 of 1 (latest)
i want to send data from form to stripe directly. for example the price and product name.
i dont want to use price id
because i have so many price change option.
what product are you using? Checkout, Payment Links, etc?
no I meant how are you integrating with Stripe? (poor choice of word from my side)
on the checkout page
ok perfect
you can use line_items.price_data https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-line_items-price_data to pass custom price data
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Do i have to save product name and prices in the db or it will take it from the client side?
you can pass dynamic values
from the frontend?
are you using checkout from the frontend?
ok so you need to pass any dynamic information from your front to your backend so it will create the Checkout Session with the correct price_data