Method: ActiveMerchant::Billing::PaypalRecurringApi#update_recurring
- Defined in:
- lib/active_merchant/billing/gateways/paypal/paypal_recurring_api.rb
#update_recurring(options = {}) ⇒ Object
Update a recurring payment’s details.
This transaction updates an existing Recurring Billing Profile and the subscription must have already been created previously by calling recurring(). The ability to change certain details about a recurring payment is dependent on transaction history and the type of plan you’re subscribed with paypal. Web Payment Pro seems to have the ability to update the most field.
Parameters
-
options– A hash of parameters.
Options
-
:profile_id– A string containing the:profile_id
of the recurring payment already in place for a given credit card. (REQUIRED)
53 54 55 56 57 58 59 |
# File 'lib/active_merchant/billing/gateways/paypal/paypal_recurring_api.rb', line 53 def update_recurring(={}) ActiveMerchant.deprecated Gateway::RECURRING_DEPRECATION_MESSAGE requires!(, :profile_id) opts = .dup commit 'UpdateRecurringPaymentsProfile', build_change_profile_request(opts.delete(:profile_id), opts) end |