Method: ActiveMerchant::Billing::PaypalRecurringApi#suspend_recurring
- Defined in:
- lib/active_merchant/billing/gateways/paypal/paypal_recurring_api.rb
permalink #suspend_recurring(profile_id, options = {}) ⇒ Object
Suspends a recurring payment profile.
Parameters
-
profile_id
– A string containing theprofile_id
of the
recurring payment already in place for a given credit card. (REQUIRED)
97 98 99 100 101 102 |
# File 'lib/active_merchant/billing/gateways/paypal/paypal_recurring_api.rb', line 97 def suspend_recurring(profile_id, = {}) ActiveMerchant.deprecated Gateway::RECURRING_DEPRECATION_MESSAGE raise_error_if_blank('profile_id', profile_id) commit 'ManageRecurringPaymentsProfileStatus', build_manage_profile_request(profile_id, 'Suspend', ) end |