activemerchant 1.15.0 → 1.16.0
Sign up to get free protection for your applications and to get access to all the features.
- data.tar.gz.sig +0 -0
- data/CHANGELOG +21 -0
- data/CONTRIBUTORS +13 -1
- data/lib/active_merchant.rb +2 -5
- data/lib/active_merchant/billing/avs_result.rb +2 -2
- data/lib/active_merchant/billing/credit_card.rb +6 -0
- data/lib/active_merchant/billing/gateways/authorize_net.rb +1 -1
- data/lib/active_merchant/billing/gateways/barclays_epdq.rb +1 -2
- data/lib/active_merchant/billing/gateways/bogus.rb +34 -24
- data/lib/active_merchant/billing/gateways/braintree/braintree_common.rb +1 -1
- data/lib/active_merchant/billing/gateways/cyber_source.rb +20 -0
- data/lib/active_merchant/billing/gateways/moneris.rb +1 -1
- data/lib/active_merchant/billing/gateways/orbital.rb +6 -2
- data/lib/active_merchant/billing/gateways/payment_express.rb +1 -1
- data/lib/active_merchant/billing/gateways/paystation.rb +201 -0
- data/lib/active_merchant/billing/gateways/qbms.rb +1 -3
- data/lib/active_merchant/billing/gateways/quickpay.rb +56 -51
- data/lib/active_merchant/billing/gateways/stripe.rb +212 -0
- data/lib/active_merchant/billing/gateways/worldpay.rb +1 -1
- data/lib/active_merchant/billing/integrations/action_view_helper.rb +2 -2
- data/lib/active_merchant/billing/integrations/e_payment_plans.rb +48 -0
- data/lib/active_merchant/billing/integrations/e_payment_plans/helper.rb +34 -0
- data/lib/active_merchant/billing/integrations/e_payment_plans/notification.rb +84 -0
- data/lib/active_merchant/billing/integrations/helper.rb +3 -3
- data/lib/active_merchant/billing/integrations/moneybookers/helper.rb +11 -0
- data/lib/active_merchant/billing/integrations/valitor/response_fields.rb +16 -7
- data/lib/active_merchant/billing/integrations/world_pay.rb +4 -15
- data/lib/active_merchant/version.rb +1 -1
- metadata +46 -21
- metadata.gz.sig +0 -0
- data/README.rdoc +0 -164
metadata.gz.sig
CHANGED
Binary file
|
data/README.rdoc
DELETED
@@ -1,164 +0,0 @@
|
|
1
|
-
= Active Merchant
|
2
|
-
|
3
|
-
This library is supposed to aid in creating e-commerce software in Ruby.
|
4
|
-
In the future we want to support all "good" payment gateways.
|
5
|
-
|
6
|
-
This library is the foundation of commerce for http://www.shopify.com.
|
7
|
-
|
8
|
-
Please visit the {ActiveMerchant homepage}[http://activemerchant.org] for more resources, tutorials and other information about this project.
|
9
|
-
|
10
|
-
== Supported Direct Payment Gateways
|
11
|
-
|
12
|
-
The {ActiveMerchant Wiki}[http://github.com/Shopify/active_merchant/wikis] contains a {table of features supported by each gateway}[http://github.com/Shopify/active_merchant/wikis/gatewayfeaturematrix].
|
13
|
-
|
14
|
-
* {Authorize.Net CIM}[http://www.authorize.net/] - US
|
15
|
-
* {Authorize.Net}[http://www.authorize.net/] - US
|
16
|
-
* {Barclays ePDQ}[http://www.barclaycard.co.uk/business/accepting-payments/epdq-mpi/] - UK
|
17
|
-
* {Beanstream.com}[http://www.beanstream.com/] - CA
|
18
|
-
* {BluePay}[http://www.bluepay.com/] - US
|
19
|
-
* {Braintree}[http://www.braintreepaymentsolutions.com] - US
|
20
|
-
* {CardStream}[http://www.cardstream.com/] - GB
|
21
|
-
* {CyberSource}[http://www.cybersource.com] - US
|
22
|
-
* {DataCash}[http://www.datacash.com/] - GB
|
23
|
-
* {Efsnet}[http://www.concordefsnet.com/] - US
|
24
|
-
* {Elavon MyVirtualMerchant}[http://www.elavon.com] - US, CA
|
25
|
-
* {ePay}[http://www.epay.dk/] - DK
|
26
|
-
* {eWAY}[http://www.eway.com.au/] - AU
|
27
|
-
* {E-xact}[http://www.e-xact.com] - CA, US
|
28
|
-
* {Federated Canada}[http://www.federatedcanada.com/] - CA
|
29
|
-
* {FirstPay}[http://www.first-pay.com] - US
|
30
|
-
* {Garanti Sanal POS}[https://ccpos.garanti.com.tr/ccRaporlar/garanti/ccReports] - US, TR
|
31
|
-
* {Inspire}[http://www.inspiregateway.com] - US
|
32
|
-
* {InstaPay}[http://www.instapayllc.com] - US
|
33
|
-
* {Iridium}[http://www.iridiumcorp.co.uk/] - UK, ES
|
34
|
-
* {JetPay}[http://www.jetpay.com] - US
|
35
|
-
* {LinkPoint}[http://www.linkpoint.com/] - US
|
36
|
-
* {Merchant e-Solutions}[http://merchante-solutions.com/] - US
|
37
|
-
* {MerchantWare}[http://merchantwarehouse.com/merchantware] - US
|
38
|
-
* {Modern Payments}[http://www.modpay.com] - US
|
39
|
-
* {Moneris}[http://www.moneris.com/] - CA
|
40
|
-
* {Netaxept}[http://www.betalingsterminal.no/Netthandel-forside] - NO, DK, SE, FI
|
41
|
-
* {NetRegistry}[http://www.netregistry.com.au] - AU
|
42
|
-
* {NELiX TransaX Gateway}[http://www.nelixtransax.com] - US
|
43
|
-
* {NETbilling}[http://www.netbilling.com] - US
|
44
|
-
* {NMI}[http://nmi.com/] - US
|
45
|
-
* {Ogone DirectLink}[http://www.ogone.com] - BE, DE, FR, NL, AT, CH
|
46
|
-
* {Orbital Paymentech}[http://chasepaymentech.com/] - CA, US
|
47
|
-
* {PayBox Direct}[http://www.paybox.com] - FR
|
48
|
-
* {PayJunction}[http://www.payjunction.com/] - US
|
49
|
-
* {PaySecure}[http://www.commsecure.com.au/paysecure.shtml] - AU
|
50
|
-
* {PayPal Express Checkout}[https://www.paypal.com/cgi-bin/webscr?cmd=xpt/merchant/ExpressCheckoutIntro-outside] - US, CA, SG, AU
|
51
|
-
* {PayPal Payflow Pro}[https://www.paypal.com/cgi-bin/webscr?cmd=_payflow-pro-overview-outside] - US, CA, SG, AU
|
52
|
-
* {PayPal Website Payments Pro (UK)}[https://www.paypal.com/uk/cgi-bin/webscr?cmd=_wp-pro-overview-outside] - GB
|
53
|
-
* {PaymentExpress}[http://www.paymentexpress.com/] - AU, MY, NZ, SG, ZA, GB, US
|
54
|
-
* {PayPal Website Payments Pro (CA)}[https://www.paypal.com/cgi-bin/webscr?cmd=_wp-pro-overview-outside] - CA
|
55
|
-
* {PayPal Express Checkout}[https://www.paypal.com/cgi-bin/webscr?cmd=xpt/merchant/ExpressCheckoutIntro-outside] - US
|
56
|
-
* {PayPal Website Payments Pro (US)}[https://www.paypal.com/cgi-bin/webscr?cmd=_wp-pro-overview-outside] - US
|
57
|
-
* {Plug'n Pay}[http://www.plugnpay.com/] - US
|
58
|
-
* {Protx}[http://www.protx.com] - GB
|
59
|
-
* {Psigate}[http://www.psigate.com/] - CA
|
60
|
-
* {PSL Payment Solutions}[http://www.paymentsolutionsltd.com/] - GB
|
61
|
-
* {Quantum}[http://www.quantumgateway.com] - US
|
62
|
-
* {QuickBooks Merchant Services}[http://payments.intuit.com/] - US
|
63
|
-
* {Quickpay}[http://quickpay.dk/] - DK, SE
|
64
|
-
* {Rabobank Nederland}[http://www.rabobank.nl/] - NL
|
65
|
-
* {Realex}[http://www.realexpayments.com/] - IE, GB
|
66
|
-
* {Sage Payment Solutions}[http://www.sagepayments.com] - US, CA
|
67
|
-
* {Sallie Mae}[http://www.salliemae.com] - US
|
68
|
-
* {SecureNet}[http://www.securenet.com] - US
|
69
|
-
* {SecurePay}[http://securepay.com.au] - AU
|
70
|
-
* {SecurePay}[http://www.securepay.com/] - US
|
71
|
-
* {SecurePayTech}[http://www.securepaytech.com/] - NZ
|
72
|
-
* {SkipJack}[http://www.skipjack.com/] - US, CA
|
73
|
-
* {TransFirst}[http://www.transfirst.com/] - US
|
74
|
-
* {TrustCommerce}[http://www.trustcommerce.com/] - US
|
75
|
-
* {USA ePay}[http://www.usaepay.com/] - US
|
76
|
-
* {Verifi}[http://www.verifi.com/] - US
|
77
|
-
* {ViaKLIX}[http://viaklix.com] - US
|
78
|
-
* {Wirecard}[http://www.wirecard.com] - DE
|
79
|
-
* {WorldPay}[http://www.worldpay.com] - AU, HK, GB, US
|
80
|
-
|
81
|
-
== Supported Offsite Payment Gateways
|
82
|
-
|
83
|
-
* {2 Checkout}[http://www.2checkout.com]
|
84
|
-
* {Banca Sella GestPay}[https://www.sella.it/banca/ecommerce/gestpay/gestpay.jsp]
|
85
|
-
* {Chronopay}[http://www.chronopay.com]
|
86
|
-
* {Direct-eBanking / sofortueberweisung.de by Payment-Networks AG}[https://www.payment-network.com/deb_com_en/merchantarea/home] - DE, AT, CH, BE, UK, NL
|
87
|
-
* {DirecPay}[http://www.timesofmoney.com/direcpay/jsp/home.jsp]
|
88
|
-
* {HiTRUST}[http://www.hitrust.com.hk/]
|
89
|
-
* {Moneybookers}[http://www.moneybookers.com]
|
90
|
-
* {Nochex}[http://www.nochex.com]
|
91
|
-
* {PayPal Website Payments Standard}[https://www.paypal.com/cgi-bin/webscr?cmd=_wp-standard-overview-outside]
|
92
|
-
* {SagePay Form}[http://www.sagepay.com/products_services/sage_pay_go/integration/form]
|
93
|
-
* {Valitor}[http://www.valitor.is/] - IS
|
94
|
-
* {WorldPay}[http://www.worldpay.com]
|
95
|
-
|
96
|
-
== Download
|
97
|
-
|
98
|
-
Currently this library is available with git from:
|
99
|
-
|
100
|
-
git://github.com/Shopify/active_merchant.git
|
101
|
-
|
102
|
-
== Installation
|
103
|
-
|
104
|
-
=== From Git
|
105
|
-
|
106
|
-
You can check out the latest source from git:
|
107
|
-
|
108
|
-
> git pull git://github.com/Shopify/active_merchant.git
|
109
|
-
|
110
|
-
=== As a Rails plugin
|
111
|
-
|
112
|
-
ActiveMerchant includes an init.rb file. This means that Rails will automatically load ActiveMerchant on startup. Run the following command from the root directory of your Rails project to install ActiveMerchant as a Rails plugin:
|
113
|
-
|
114
|
-
> ./script/plugin install git://github.com/Shopify/active_merchant.git
|
115
|
-
|
116
|
-
=== From Ruby Gems
|
117
|
-
|
118
|
-
Installation from RubyGems
|
119
|
-
|
120
|
-
> gem install activemerchant
|
121
|
-
|
122
|
-
== Sample Usage
|
123
|
-
require 'rubygems'
|
124
|
-
require 'active_merchant'
|
125
|
-
|
126
|
-
# Use the TrustCommerce test servers
|
127
|
-
ActiveMerchant::Billing::Base.mode = :test
|
128
|
-
|
129
|
-
# ActiveMerchant accepts all amounts as Integer values in cents
|
130
|
-
# $10.00
|
131
|
-
amount = 1000
|
132
|
-
|
133
|
-
# The card verification value is also known as CVV2, CVC2, or CID
|
134
|
-
credit_card = ActiveMerchant::Billing::CreditCard.new(
|
135
|
-
:first_name => 'Bob',
|
136
|
-
:last_name => 'Bobsen',
|
137
|
-
:number => '4242424242424242',
|
138
|
-
:month => '8',
|
139
|
-
:year => '2012',
|
140
|
-
:verification_value => '123'
|
141
|
-
)
|
142
|
-
|
143
|
-
# Validating the card automatically detects the card type
|
144
|
-
if credit_card.valid?
|
145
|
-
|
146
|
-
# Create a gateway object for the TrustCommerce service
|
147
|
-
gateway = ActiveMerchant::Billing::TrustCommerceGateway.new(
|
148
|
-
:login => 'TestMerchant',
|
149
|
-
:password => 'password'
|
150
|
-
)
|
151
|
-
|
152
|
-
# Authorize for the amount
|
153
|
-
response = gateway.purchase(amount, credit_card)
|
154
|
-
|
155
|
-
if response.success?
|
156
|
-
puts "Successfully charged $#{sprintf("%.2f", amount / 100)} to the credit card #{credit_card.display_number}"
|
157
|
-
else
|
158
|
-
raise StandardError, response.message
|
159
|
-
end
|
160
|
-
end
|
161
|
-
|
162
|
-
== Contributing
|
163
|
-
|
164
|
-
Please see the {ActiveMerchant Guide to Contributing}[http://github.com/Shopify/active_merchant/wikis/contributing] for information on adding a new gateway to ActiveMerchant.
|