Class: ActiveMerchant::Billing::PayflowExpressGateway
- Includes:
- PayflowCommonAPI, PaypalExpressCommon
- Defined in:
- lib/active_merchant/billing/gateways/payflow_express.rb
Direct Known Subclasses
Constant Summary
Constants included from PayflowCommonAPI
ActiveMerchant::Billing::PayflowCommonAPI::CARD_MAPPING, ActiveMerchant::Billing::PayflowCommonAPI::CVV_CODE, ActiveMerchant::Billing::PayflowCommonAPI::LIVE_URL, ActiveMerchant::Billing::PayflowCommonAPI::TEST_URL, ActiveMerchant::Billing::PayflowCommonAPI::TRANSACTIONS, ActiveMerchant::Billing::PayflowCommonAPI::XMLNS
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, options = {}) ⇒ Object
- #credit(money, identification, options = {}) ⇒ Object
- #details_for(token) ⇒ Object
- #purchase(money, options = {}) ⇒ Object
- #refund(money, identification, options = {}) ⇒ Object
- #setup_authorization(money, options = {}) ⇒ Object
- #setup_purchase(money, options = {}) ⇒ Object
Methods included from PaypalExpressCommon
included, #redirect_url, #redirect_url_for
Methods included from PayflowCommonAPI
#capture, included, #initialize, #test?, #void
Methods inherited from Gateway
#card_brand, card_brand, inherited, #initialize, supports?, #test?
Methods included from Utils
#deprecated, generate_unique_id
Methods included from CreditCardFormatting
Methods included from RequiresParameters
Methods included from PostsData
included, #raw_ssl_request, #ssl_get, #ssl_post, #ssl_request
Instance Method Details
#authorize(money, options = {}) ⇒ Object
71 72 73 74 75 |
# File 'lib/active_merchant/billing/gateways/payflow_express.rb', line 71 def (money, = {}) requires!(, :token, :payer_id) request = ('Authorization', money, ) commit(request, ) end |
#credit(money, identification, options = {}) ⇒ Object
88 89 90 91 |
# File 'lib/active_merchant/billing/gateways/payflow_express.rb', line 88 def credit(money, identification, = {}) deprecated CREDIT_DEPRECATION_MESSAGE refund(money, identification, ) end |
#details_for(token) ⇒ Object
107 108 109 110 |
# File 'lib/active_merchant/billing/gateways/payflow_express.rb', line 107 def details_for(token) request = build_get_express_details_request(token) commit(request, ) end |
#purchase(money, options = {}) ⇒ Object
77 78 79 80 81 |
# File 'lib/active_merchant/billing/gateways/payflow_express.rb', line 77 def purchase(money, = {}) requires!(, :token, :payer_id) request = ('Sale', money, ) commit(request, ) end |
#refund(money, identification, options = {}) ⇒ Object
83 84 85 86 |
# File 'lib/active_merchant/billing/gateways/payflow_express.rb', line 83 def refund(money, identification, = {}) request = build_reference_request(:credit, money, identification, ) commit(request, ) end |
#setup_authorization(money, options = {}) ⇒ Object
93 94 95 96 97 98 |
# File 'lib/active_merchant/billing/gateways/payflow_express.rb', line 93 def (money, = {}) requires!(, :return_url, :cancel_return_url) request = ('Authorization', money, ) commit(request, ) end |
#setup_purchase(money, options = {}) ⇒ Object
100 101 102 103 104 105 |
# File 'lib/active_merchant/billing/gateways/payflow_express.rb', line 100 def setup_purchase(money, = {}) requires!(, :return_url, :cancel_return_url) request = ('Sale', money, ) commit(request, ) end |