Class: ActiveMerchant::Billing::PaypalGateway
- Includes:
- PaypalCommonAPI, PaypalRecurringApi
- Defined in:
- lib/active_merchant/billing/gateways/paypal.rb
Direct Known Subclasses
Constant Summary
Constants included from PaypalRecurringApi
ActiveMerchant::Billing::PaypalRecurringApi::API_VERSION, ActiveMerchant::Billing::PaypalRecurringApi::EBAY_NAMESPACE, ActiveMerchant::Billing::PaypalRecurringApi::PAYPAL_NAMESPACE
Constants included from PaypalCommonAPI
ActiveMerchant::Billing::PaypalCommonAPI::API_VERSION, ActiveMerchant::Billing::PaypalCommonAPI::AUSTRALIAN_STATES, ActiveMerchant::Billing::PaypalCommonAPI::CREDENTIALS_NAMESPACES, ActiveMerchant::Billing::PaypalCommonAPI::EBAY_NAMESPACE, ActiveMerchant::Billing::PaypalCommonAPI::ENVELOPE_NAMESPACES, ActiveMerchant::Billing::PaypalCommonAPI::FRAUD_REVIEW_CODE, ActiveMerchant::Billing::PaypalCommonAPI::PAYPAL_NAMESPACE, ActiveMerchant::Billing::PaypalCommonAPI::SUCCESS_CODES, ActiveMerchant::Billing::PaypalCommonAPI::URLS
Constants inherited from Gateway
Gateway::CREDIT_DEPRECATION_MESSAGE, Gateway::CURRENCIES_WITHOUT_FRACTIONS, Gateway::DEBIT_CARDS
Instance Attribute Summary
Attributes inherited from Gateway
Instance Method Summary collapse
- #authorize(money, credit_card_or_referenced_id, options = {}) ⇒ Object
- #express ⇒ Object
- #purchase(money, credit_card_or_referenced_id, options = {}) ⇒ Object
Methods included from PaypalRecurringApi
#bill_outstanding_amount, #cancel_recurring, #reactivate_recurring, #recurring, #status_recurring, #suspend_recurring, #update_recurring
Methods included from PaypalCommonAPI
#authorize_transaction, #balance, #capture, #credit, included, #initialize, #manage_pending_transaction, #reauthorize, #reference_transaction, #refund, #transaction_details, #transaction_search, #transfer, #void
Methods inherited from Gateway
#card_brand, card_brand, inherited, #initialize, supports?, #test?
Methods included from CreditCardFormatting
Instance Method Details
#authorize(money, credit_card_or_referenced_id, options = {}) ⇒ Object
16 17 18 19 |
# File 'lib/active_merchant/billing/gateways/paypal.rb', line 16 def (money, credit_card_or_referenced_id, = {}) requires!(, :ip) commit define_transaction_type(credit_card_or_referenced_id), ('Authorization', money, credit_card_or_referenced_id, ) end |
#express ⇒ Object
26 27 28 |
# File 'lib/active_merchant/billing/gateways/paypal.rb', line 26 def express @express ||= PaypalExpressGateway.new(@options) end |
#purchase(money, credit_card_or_referenced_id, options = {}) ⇒ Object
21 22 23 24 |
# File 'lib/active_merchant/billing/gateways/paypal.rb', line 21 def purchase(money, credit_card_or_referenced_id, = {}) requires!(, :ip) commit define_transaction_type(credit_card_or_referenced_id), ('Sale', money, credit_card_or_referenced_id, ) end |