Class: ActiveMerchant::Billing::InContextPaypalExpressGateway

Inherits:
PaypalExpressGateway show all
Defined in:
lib/active_merchant/billing/gateways/in_context_paypal_express.rb

Constant Summary

Constants inherited from PaypalExpressGateway

PaypalExpressGateway::NON_STANDARD_LOCALE_CODES

Constants included from PaypalRecurringApi

PaypalRecurringApi::API_VERSION, PaypalRecurringApi::EBAY_NAMESPACE, PaypalRecurringApi::PAYPAL_NAMESPACE

Constants included from PaypalCommonAPI

PaypalCommonAPI::API_VERSION, PaypalCommonAPI::API_VERSION_3DS2, PaypalCommonAPI::AUSTRALIAN_STATES, PaypalCommonAPI::CREDENTIALS_NAMESPACES, PaypalCommonAPI::EBAY_NAMESPACE, PaypalCommonAPI::ENVELOPE_NAMESPACES, PaypalCommonAPI::FRAUD_REVIEW_CODE, PaypalCommonAPI::PAYPAL_NAMESPACE, PaypalCommonAPI::STANDARD_ERROR_CODE_MAPPING, PaypalCommonAPI::SUCCESS_CODES, PaypalCommonAPI::URLS

Constants inherited from Gateway

Gateway::CREDIT_DEPRECATION_MESSAGE, Gateway::RECURRING_DEPRECATION_MESSAGE, Gateway::STANDARD_ERROR_CODE

Instance Attribute Summary

Attributes inherited from Gateway

#options

Instance Method Summary collapse

Methods inherited from PaypalExpressGateway

#agreement_details, #authorize, #authorize_reference_transaction, #details_for, #purchase, #reference_transaction, #setup_authorization, #setup_purchase, #store, #unstore

Methods included from PaypalRecurringApi

#bill_outstanding_amount, #cancel_recurring, #reactivate_recurring, #recurring, #status_recurring, #suspend_recurring, #update_recurring

Methods included from PaypalExpressCommon

included, #redirect_url

Methods included from PaypalCommonAPI

#authorize_transaction, #balance, #capture, #credit, included, #initialize, #inquire, #manage_pending_transaction, #reauthorize, #reference_transaction, #refund, #scrub, #supports_scrubbing?, #transaction_details, #transaction_search, #transfer, #void

Methods inherited from Gateway

#add_field_to_post_if_present, #add_fields_to_post_if_present, #card_brand, card_brand, #generate_unique_id, inherited, #initialize, #scrub, #supported_countries, supported_countries, supported_countries=, supports?, #supports_network_tokenization?, #supports_scrubbing?, #test?

Methods included from CreditCardFormatting

#expdate, #format, #strftime_yyyymm

Methods included from PostsData

included, #raw_ssl_request, #ssl_get, #ssl_post, #ssl_request

Instance Method Details

#redirect_url_for(token, options = {}) ⇒ Object



7
8
9
10
11
12
# File 'lib/active_merchant/billing/gateways/in_context_paypal_express.rb', line 7

def redirect_url_for(token, options = {})
  options = { review: true }.update(options)
  url  = "#{redirect_url}?token=#{token}"
  url += '&useraction=commit' unless options[:review]
  url
end