recurly / recurly-client-ruby

A Ruby API wrapper for Recurly
https://developers.recurly.com
MIT License
180 stars 128 forks source link

Changing Billing info? #871

Open QasimQureshi opened 11 months ago

QasimQureshi commented 11 months ago

How do I update billing info (switching to a different card) for an existing subscription?

I can see a class for this in lib/recurly/resources/subscription_change_billing_info.rb but it seems to define no methods. Thanks!

judith commented 10 months ago

If your site has the Wallet feature (multiple billing infos per account enabled), you can use the billing_info attribute on the subscription_change endpoint. Otherwise if your site only has one billing info per account, you can use the billing_info endpoint to change it.

See the developer docs for more information: https://recurly.com/developers/api/v2021-02-25/index.html