Method: ActiveMerchant::Billing::PaypalRecurringApi#reactivate_recurring

Defined in:
lib/active_merchant/billing/gateways/paypal/paypal_recurring_api.rb

#reactivate_recurring(profile_id, options = {}) ⇒ Object

Reactivates a suspended recurring payment profile.

Parameters

  • profile_id – A string containing the profile_id of the

recurring payment already in place for a given credit card. (REQUIRED)


110
111
112
113
114
115
# File 'lib/active_merchant/billing/gateways/paypal/paypal_recurring_api.rb', line 110

def reactivate_recurring(profile_id, options = {})
  ActiveMerchant.deprecated Gateway::RECURRING_DEPRECATION_MESSAGE

  raise_error_if_blank('profile_id', profile_id)
commit 'ManageRecurringPaymentsProfileStatus', build_manage_profile_request(profile_id, 'Reactivate', options)
end