#zxcvbnm123

1 messages · Page 1 of 1 (latest)

dim nightBOT
wanton gull
#

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

remote adder
#

Hi there! Sorry for the delay

wanton gull
#

hi @remote adder

remote adder
#

To be clear, when you include trial_end, you don't receive a value for subscription.latest_invoice.payment_intent.client_secret?

wanton gull
#

Yes

#

Correct

remote adder
#

Got it

flat locust
#

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?