#mtanzi - subscription migration

1 messages · Page 1 of 1 (latest)

fleet token
lunar sage
#

the exact error returned is the following:

Stripe::InvalidRequestError: This customer has no attached payment source or default payment method.
from /Users/mtanzi/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/stripe-5.28.0/lib/stripe/stripe_client.rb:592:in `handle_error_response'
fleet token
#

But yes it looks like you don't have a payment method specified as the invoice default for that customer

#

If you create the subscription with payment_behavior=default_incomplete you can do so without a payment method, if you intend to confirm the payment when collecting payment details later

lunar sage
#

I am using the ruby wrapper, I am not receiveing the request id

#

to have an active subscription I always need a payment method assigned to the customer?

fleet token
lunar sage
#

let say I, as an admin want to activate a subscription for a customer via API

#

req_8gXouYtPQ6Nktc

fleet token
lunar sage
#

also using charge_automatically it failed, here is the req: req_rIdrJI6w1Y9LqE

fleet token
#

Yes you need a payment method to charge automatically

#

You can either defer the first payment with default_incomplete, or you can send invoices for payment

lunar sage
#

I see, ok...

Thanks for the help!