#captain-morgan_api
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/1410599815527665684
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
๐ happy to help
would you mind sharing a screenshot of what you mean by optional fields?
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))
}
oh this is LINK
you can disable this if you wish in your payment method options in the dashboard
WOW!! thanks man!!! working