#Mr.Medi

1 messages · Page 1 of 1 (latest)

elfin cargoBOT
warm olive
tacit totem
#

Hi there, this step is just to create a subscription, is your question about what save_default_payment_methodp aram do?

warm olive
#

My question is about this error This customer has no attached payment source or default payment method. Please consider adding a default payment method. Im trying to understand how to solve it in the payment flow

tacit totem
#

I see

#

Did you set payment_behavior: 'default_incomplete', ?

warm olive
#

Yes

#

I have python subscription = stripe.Subscription.create( customer=customer_id, items=[{ 'price': price_id, }], payment_behavior='default_incomplete', payment_settings={'save_default_payment_method': 'on_subscription'}, expand=['latest_invoice.payment_intent'], )

tacit totem
#

Can you share with me the request ID?

warm olive
#

req_tYSvwPNR6YkTKT

tacit totem
#

You didn't specify payment_behavior='default_incomplete', in this request

elfin cargoBOT
warm olive
#

it should be sent in this js line? ```javascript
stripe.confirmPayment(...

fervent dove
#

Hey! Taking over for my colleague. Let me catch up.

fervent dove
warm olive
#

but im sending it in python

fervent dove
#

According to the requestId req_tYSvwPNR6YkTKT you are not sending it...

warm olive
#

it should be like that?

#

subscription = stripe.Subscription.create( customer=customer_id, items=[{ 'price': price_id, }], payment_behavior='default_incomplete', payment_settings={'save_default_payment_method': 'on_subscription'}, expand=['latest_invoice.payment_intent'], )

#

I think that I managed to do it

#

now is correct, right? req_7MU1cvY8iBwH2G

fervent dove
warm olive
#

Perfect, thank you! 🙂