#zxcvbnm123
1 messages · Page 1 of 1 (latest)
Stripe::Subscription.create({
customer: self.stripe_customer_id,
items: [
{
plan: subscription_plan
}
],
payment_behavior: 'default_incomplete',
payment_settings: {save_default_payment_method: 'on_subscription'},
expand: ['latest_invoice.payment_intent']
})
With this configuration I get the clientsecret but if I add the field coupon or trialends I will not get the client_secret to collect the payment method
Hi there! Sorry for the delay
hi @remote adder
Just referencing this for now: https://stripe.com/docs/billing/subscriptions/trials
To be clear, when you include trial_end, you don't receive a value for subscription.latest_invoice.payment_intent.client_secret?
Got it
Hi, I would like to make sure that I'm understanding your ask fully. You're trying to collect Payment Methods details when offering free trial with Payment Elements, is that correct?
If so, I think this guidance, https://stripe.com/docs/payments/payment-element/migration?integration-path=future is what you're looking for.