Class: MerbMerchant::Billing::PaypalGateway
- Includes:
- PaypalCommonAPI
- Defined in:
- lib/merb_merchant/billing/gateways/paypal.rb
Direct Known Subclasses
Constant Summary
Constants included from PaypalCommonAPI
MerbMerchant::Billing::PaypalCommonAPI::API_VERSION, MerbMerchant::Billing::PaypalCommonAPI::AUSTRALIAN_STATES, MerbMerchant::Billing::PaypalCommonAPI::CREDENTIALS_NAMESPACES, MerbMerchant::Billing::PaypalCommonAPI::EBAY_NAMESPACE, MerbMerchant::Billing::PaypalCommonAPI::ENVELOPE_NAMESPACES, MerbMerchant::Billing::PaypalCommonAPI::FRAUD_REVIEW_CODE, MerbMerchant::Billing::PaypalCommonAPI::PAYPAL_NAMESPACE, MerbMerchant::Billing::PaypalCommonAPI::SUCCESS_CODES, MerbMerchant::Billing::PaypalCommonAPI::URLS
Constants inherited from Gateway
Constants included from PostsData
PostsData::MAX_RETRIES, PostsData::OPEN_TIMEOUT, PostsData::READ_TIMEOUT
Instance Attribute Summary
Attributes inherited from Gateway
Instance Method Summary collapse
- #authorize(money, credit_card, options = {}) ⇒ Object
- #express ⇒ Object
- #purchase(money, credit_card, options = {}) ⇒ Object
Methods included from PaypalCommonAPI
#capture, #credit, included, #initialize, #reauthorize, #test?, #transfer, #void
Methods inherited from Gateway
#card_brand, card_brand, inherited, #initialize, supports?, #test?
Methods included from Utils
Methods included from CreditCardFormatting
Methods included from RequiresParameters
Methods included from PostsData
Instance Method Details
#authorize(money, credit_card, options = {}) ⇒ Object
14 15 16 17 |
# File 'lib/merb_merchant/billing/gateways/paypal.rb', line 14 def (money, credit_card, = {}) requires!(, :ip) commit 'DoDirectPayment', ('Authorization', money, credit_card, ) end |
#express ⇒ Object
24 25 26 |
# File 'lib/merb_merchant/billing/gateways/paypal.rb', line 24 def express @express ||= PaypalExpressGateway.new(@options) end |
#purchase(money, credit_card, options = {}) ⇒ Object
19 20 21 22 |
# File 'lib/merb_merchant/billing/gateways/paypal.rb', line 19 def purchase(money, credit_card, = {}) requires!(, :ip) commit 'DoDirectPayment', ('Sale', money, credit_card, ) end |