#AlexTakitani

1 messages · Page 1 of 1 (latest)

balmy ivyBOT
hasty junco
#

I think so. It sounds like you want to have it show up on the sidebar that breaks down the item descriptions?

gray jacinth
#

Hi there

#

Yes!

#

I have this:

#

We would like to send some more info to show above the price, some descriptions and dates

hasty junco
#

Gotcha. Can you send me the snippet of code that you are using to create these Checkout Sessions?

gray jacinth
#

sure

hasty junco
#

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

gray jacinth
#

@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

hasty junco
#

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.

#

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

gray jacinth
#

I see... ok, thank you anyways