#AlexTakitani
1 messages · Page 1 of 1 (latest)
I think so. It sounds like you want to have it show up on the sidebar that breaks down the item descriptions?
Hi there
Yes!
I have this:
We would like to send some more info to show above the price, some descriptions and dates
Gotcha. Can you send me the snippet of code that you are using to create these Checkout Sessions?
sure
I don't know if we allow that kind of customization yet. We do allow 1 line descriptions under line items, but I am not sure what else can be added here
@session = Stripe::Checkout::Session.create(
{
customer: current_user.stripe_customer.id,
line_items: [
{price: @order.product.stripe_price_id, quantity: 1},
],
metadata: metadata,
mode: 'subscription',
allow_promotion_codes: false,
client_reference_id: current_user.id,
payment_method_types: payment_methods,
success_url: order_url(@order, new_order: true),
cancel_url: edit_order_address_url(@order, @order.address)
}
)
Yes, I saw that using product_data I can do a lot of customization
but, not when using a price
Yeah unfortunately I am just not seeing a way to do this customization a the moment. Something along this line is on the roadmap but I don't know of an ETA at the moment.
One thing you can do is create the Subscription itself and present the user with the Invoice's page to make payment. We do allow setting custom memos for Invoices https://stripe.com/docs/invoicing/customize#invoice-fields
The UI would be very different but that is a possibility.
Or if you are okay with hosting your own payment page that would be an option too though that is obviously a lot more work
I see... ok, thank you anyways