#captain-morgan_api

1 messages ยท Page 1 of 1 (latest)

fierce edgeBOT
#

๐Ÿ‘‹ 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/1410599815527665684

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

summer merlin
#

๐Ÿ‘‹ happy to help

#

would you mind sharing a screenshot of what you mean by optional fields?

regal phoenix
#

My checkout session body look like
{
ui_mode: 'custom',
mode: 'subscription',
client_reference_id: 'client_reference_id',
payment_method_types: ['card'],
line_items: [
{
quantity: 1,
price_data: {
unit_amount: @subscription.tariff_price_cents, # Amount in cents
currency: @subscription.tariff_price_currency.downcase,
recurring: {
interval: @subscription.tariff_plan.period
}
}
}
],
metadata: {},
return_url: back_url(payments_stripe_checkout_session_path(subscribe_id: @subscription.subscribe_id))
}

summer merlin
#

oh this is LINK

#

you can disable this if you wish in your payment method options in the dashboard

regal phoenix
#

WOW!! thanks man!!! working