Class: ActiveMerchant::Billing::PayflowGateway
Constant Summary
ActiveMerchant::Billing::PayflowCommonAPI::CARD_MAPPING, ActiveMerchant::Billing::PayflowCommonAPI::LIVE_URL, ActiveMerchant::Billing::PayflowCommonAPI::TEST_URL, ActiveMerchant::Billing::PayflowCommonAPI::XMLNS
Instance Attribute Summary
Attributes inherited from Gateway
#options
Class Method Summary
collapse
Instance Method Summary
collapse
#capture, included, #initialize, #test?, #void
Methods inherited from Gateway
gateway, #initialize, supports?, #test?
#requires!
Methods included from PostsData
#included?, #ssl_post
Class Method Details
.supported_cardtypes ⇒ Object
30
31
32
|
# File 'lib/active_merchant/billing/gateways/payflow.rb', line 30
def self.supported_cardtypes
[:visa, :master, :american_express, :jcb, :discover, :diners_club]
end
|
Instance Method Details
#authorize(money, credit_card, options = {}) ⇒ Object
8
9
10
11
12
13
14
15
|
# File 'lib/active_merchant/billing/gateways/payflow.rb', line 8
def authorize(money, credit_card, options = {})
if result = test_result_from_cc_number(credit_card.number)
return result
end
request = build_sale_or_authorization_request('Authorization', money, credit_card, options)
commit(request)
end
|
#express ⇒ Object
26
27
28
|
# File 'lib/active_merchant/billing/gateways/payflow.rb', line 26
def express
@express ||= PayflowExpressGateway.new(@options)
end
|
#purchase(money, credit_card, options = {}) ⇒ Object
17
18
19
20
21
22
23
24
|
# File 'lib/active_merchant/billing/gateways/payflow.rb', line 17
def purchase(money, credit_card, options = {})
if result = test_result_from_cc_number(credit_card.number)
return result
end
request = build_sale_or_authorization_request('Sale', money, credit_card, options)
commit(request)
end
|