activemerchant 1.38.0 → 1.78.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (397) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG +1344 -3
  3. data/CONTRIBUTORS +154 -0
  4. data/README.md +157 -144
  5. data/lib/active_merchant/billing/apple_pay_payment_token.rb +22 -0
  6. data/lib/active_merchant/billing/base.rb +21 -17
  7. data/lib/active_merchant/billing/check.rb +32 -22
  8. data/lib/active_merchant/billing/compatibility.rb +120 -0
  9. data/lib/active_merchant/billing/credit_card.rb +215 -67
  10. data/lib/active_merchant/billing/credit_card_formatting.rb +4 -1
  11. data/lib/active_merchant/billing/credit_card_methods.rb +149 -52
  12. data/lib/active_merchant/billing/cvv_result.rb +15 -15
  13. data/lib/active_merchant/billing/gateway.rb +170 -24
  14. data/lib/active_merchant/billing/gateways/adyen.rb +284 -0
  15. data/lib/active_merchant/billing/gateways/allied_wallet.rb +206 -0
  16. data/lib/active_merchant/billing/gateways/authorize_net.rb +899 -606
  17. data/lib/active_merchant/billing/gateways/authorize_net_arb.rb +417 -0
  18. data/lib/active_merchant/billing/gateways/authorize_net_cim.rb +43 -18
  19. data/lib/active_merchant/billing/gateways/axcessms.rb +181 -0
  20. data/lib/active_merchant/billing/gateways/balanced.rb +134 -346
  21. data/lib/active_merchant/billing/gateways/bank_frick.rb +225 -0
  22. data/lib/active_merchant/billing/gateways/banwire.rb +13 -2
  23. data/lib/active_merchant/billing/gateways/barclaycard_smartpay.rb +325 -0
  24. data/lib/active_merchant/billing/gateways/be2bill.rb +131 -0
  25. data/lib/active_merchant/billing/gateways/beanstream/beanstream_core.rb +96 -15
  26. data/lib/active_merchant/billing/gateways/beanstream.rb +52 -9
  27. data/lib/active_merchant/billing/gateways/beanstream_interac.rb +12 -8
  28. data/lib/active_merchant/billing/gateways/blue_pay.rb +520 -501
  29. data/lib/active_merchant/billing/gateways/blue_snap.rb +343 -0
  30. data/lib/active_merchant/billing/gateways/bogus.rb +94 -50
  31. data/lib/active_merchant/billing/gateways/borgun.rb +222 -0
  32. data/lib/active_merchant/billing/gateways/bpoint.rb +277 -0
  33. data/lib/active_merchant/billing/gateways/braintree/braintree_common.rb +14 -2
  34. data/lib/active_merchant/billing/gateways/braintree.rb +2 -2
  35. data/lib/active_merchant/billing/gateways/braintree_blue.rb +372 -137
  36. data/lib/active_merchant/billing/gateways/braintree_orange.rb +4 -4
  37. data/lib/active_merchant/billing/gateways/bridge_pay.rb +245 -0
  38. data/lib/active_merchant/billing/gateways/cams.rb +230 -0
  39. data/lib/active_merchant/billing/gateways/card_connect.rb +286 -0
  40. data/lib/active_merchant/billing/gateways/card_stream.rb +269 -118
  41. data/lib/active_merchant/billing/gateways/cardknox.rb +328 -0
  42. data/lib/active_merchant/billing/gateways/cardprocess.rb +254 -0
  43. data/lib/active_merchant/billing/gateways/cashnet.rb +219 -0
  44. data/lib/active_merchant/billing/gateways/cc5.rb +45 -0
  45. data/lib/active_merchant/billing/gateways/cecabank.rb +239 -0
  46. data/lib/active_merchant/billing/gateways/cenpos.rb +327 -0
  47. data/lib/active_merchant/billing/gateways/checkout.rb +214 -0
  48. data/lib/active_merchant/billing/gateways/checkout_v2.rb +226 -0
  49. data/lib/active_merchant/billing/gateways/citrus_pay.rb +23 -0
  50. data/lib/active_merchant/billing/gateways/clearhaus.rb +222 -0
  51. data/lib/active_merchant/billing/gateways/commercegate.rb +143 -0
  52. data/lib/active_merchant/billing/gateways/conekta.rb +224 -0
  53. data/lib/active_merchant/billing/gateways/creditcall.rb +272 -0
  54. data/lib/active_merchant/billing/gateways/credorax.rb +345 -0
  55. data/lib/active_merchant/billing/gateways/culqi.rb +279 -0
  56. data/lib/active_merchant/billing/gateways/cyber_source.rb +228 -98
  57. data/lib/active_merchant/billing/gateways/data_cash.rb +41 -314
  58. data/lib/active_merchant/billing/gateways/dibs.rb +205 -0
  59. data/lib/active_merchant/billing/gateways/digitzs.rb +292 -0
  60. data/lib/active_merchant/billing/gateways/ebanx.rb +296 -0
  61. data/lib/active_merchant/billing/gateways/efsnet.rb +3 -14
  62. data/lib/active_merchant/billing/gateways/elavon.rb +143 -142
  63. data/lib/active_merchant/billing/gateways/element.rb +356 -0
  64. data/lib/active_merchant/billing/gateways/epay.rb +23 -12
  65. data/lib/active_merchant/billing/gateways/eway.rb +12 -12
  66. data/lib/active_merchant/billing/gateways/eway_managed.rb +1 -1
  67. data/lib/active_merchant/billing/gateways/eway_rapid.rb +417 -204
  68. data/lib/active_merchant/billing/gateways/exact.rb +10 -1
  69. data/lib/active_merchant/billing/gateways/ezic.rb +196 -0
  70. data/lib/active_merchant/billing/gateways/fat_zebra.rb +65 -37
  71. data/lib/active_merchant/billing/gateways/federated_canada.rb +1 -8
  72. data/lib/active_merchant/billing/gateways/finansbank.rb +3 -2
  73. data/lib/active_merchant/billing/gateways/first_giving.rb +143 -0
  74. data/lib/active_merchant/billing/gateways/first_pay.rb +109 -124
  75. data/lib/active_merchant/billing/gateways/firstdata_e4.rb +155 -29
  76. data/lib/active_merchant/billing/gateways/flo2cash.rb +215 -0
  77. data/lib/active_merchant/billing/gateways/flo2cash_simple.rb +20 -0
  78. data/lib/active_merchant/billing/gateways/forte.rb +256 -0
  79. data/lib/active_merchant/billing/gateways/garanti.rb +11 -5
  80. data/lib/active_merchant/billing/gateways/global_collect.rb +334 -0
  81. data/lib/active_merchant/billing/gateways/global_transport.rb +194 -0
  82. data/lib/active_merchant/billing/gateways/hps.rb +305 -0
  83. data/lib/active_merchant/billing/gateways/iats_payments.rb +271 -16
  84. data/lib/active_merchant/billing/gateways/ideal/ideal_base.rb +2 -5
  85. data/lib/active_merchant/billing/gateways/ideal/ideal_rabobank.pem +0 -0
  86. data/lib/active_merchant/billing/gateways/ideal_rabobank.rb +1 -1
  87. data/lib/active_merchant/billing/gateways/in_context_paypal_express.rb +15 -0
  88. data/lib/active_merchant/billing/gateways/inspire.rb +8 -10
  89. data/lib/active_merchant/billing/gateways/instapay.rb +0 -0
  90. data/lib/active_merchant/billing/gateways/ipp.rb +175 -0
  91. data/lib/active_merchant/billing/gateways/iridium.rb +210 -4
  92. data/lib/active_merchant/billing/gateways/iveri.rb +251 -0
  93. data/lib/active_merchant/billing/gateways/jetpay.rb +176 -49
  94. data/lib/active_merchant/billing/gateways/jetpay_v2.rb +437 -0
  95. data/lib/active_merchant/billing/gateways/komoju.rb +115 -0
  96. data/lib/active_merchant/billing/gateways/kushki.rb +227 -0
  97. data/lib/active_merchant/billing/gateways/latitude19.rb +416 -0
  98. data/lib/active_merchant/billing/gateways/linkpoint.rb +17 -13
  99. data/lib/active_merchant/billing/gateways/litle.rb +329 -439
  100. data/lib/active_merchant/billing/gateways/mastercard.rb +268 -0
  101. data/lib/active_merchant/billing/gateways/maxipago.rb +220 -0
  102. data/lib/active_merchant/billing/gateways/mercado_pago.rb +262 -0
  103. data/lib/active_merchant/billing/gateways/merchant_e_solutions.rb +15 -7
  104. data/lib/active_merchant/billing/gateways/merchant_one.rb +0 -1
  105. data/lib/active_merchant/billing/gateways/merchant_partners.rb +245 -0
  106. data/lib/active_merchant/billing/gateways/merchant_ware.rb +12 -15
  107. data/lib/active_merchant/billing/gateways/merchant_ware_version_four.rb +24 -13
  108. data/lib/active_merchant/billing/gateways/merchant_warrior.rb +21 -14
  109. data/lib/active_merchant/billing/gateways/mercury.rb +74 -29
  110. data/lib/active_merchant/billing/gateways/metrics_global.rb +2 -21
  111. data/lib/active_merchant/billing/gateways/micropayment.rb +185 -0
  112. data/lib/active_merchant/billing/gateways/migs.rb +74 -13
  113. data/lib/active_merchant/billing/gateways/modern_payments.rb +1 -1
  114. data/lib/active_merchant/billing/gateways/modern_payments_cim.rb +1 -3
  115. data/lib/active_merchant/billing/gateways/monei.rb +307 -0
  116. data/lib/active_merchant/billing/gateways/moneris.rb +119 -36
  117. data/lib/active_merchant/billing/gateways/moneris_us.rb +146 -45
  118. data/lib/active_merchant/billing/gateways/money_movers.rb +152 -0
  119. data/lib/active_merchant/billing/gateways/nab_transact.rb +78 -53
  120. data/lib/active_merchant/billing/gateways/ncr_secure_pay.rb +165 -0
  121. data/lib/active_merchant/billing/gateways/net_registry.rb +8 -3
  122. data/lib/active_merchant/billing/gateways/netbanx.rb +289 -0
  123. data/lib/active_merchant/billing/gateways/netbilling.rb +61 -26
  124. data/lib/active_merchant/billing/gateways/netpay.rb +1 -1
  125. data/lib/active_merchant/billing/gateways/network_merchants.rb +242 -0
  126. data/lib/active_merchant/billing/gateways/nmi.rb +265 -10
  127. data/lib/active_merchant/billing/gateways/ogone.rb +85 -27
  128. data/lib/active_merchant/billing/gateways/omise.rb +324 -0
  129. data/lib/active_merchant/billing/gateways/openpay.rb +227 -0
  130. data/lib/active_merchant/billing/gateways/opp.rb +372 -0
  131. data/lib/active_merchant/billing/gateways/optimal_payment.rb +59 -28
  132. data/lib/active_merchant/billing/gateways/orbital/orbital_soft_descriptors.rb +22 -21
  133. data/lib/active_merchant/billing/gateways/orbital.rb +346 -56
  134. data/lib/active_merchant/billing/gateways/pac_net_raven.rb +207 -0
  135. data/lib/active_merchant/billing/gateways/pagarme.rb +248 -0
  136. data/lib/active_merchant/billing/gateways/pago_facil.rb +122 -0
  137. data/lib/active_merchant/billing/gateways/pay_conex.rb +246 -0
  138. data/lib/active_merchant/billing/gateways/pay_gate_xml.rb +30 -14
  139. data/lib/active_merchant/billing/gateways/pay_hub.rb +213 -0
  140. data/lib/active_merchant/billing/gateways/pay_junction.rb +19 -25
  141. data/lib/active_merchant/billing/gateways/pay_junction_v2.rb +190 -0
  142. data/lib/active_merchant/billing/gateways/pay_secure.rb +0 -7
  143. data/lib/active_merchant/billing/gateways/paybox_direct.rb +16 -12
  144. data/lib/active_merchant/billing/gateways/payeezy.rb +386 -0
  145. data/lib/active_merchant/billing/gateways/payex.rb +412 -0
  146. data/lib/active_merchant/billing/gateways/payflow/payflow_common_api.rb +38 -17
  147. data/lib/active_merchant/billing/gateways/payflow.rb +100 -19
  148. data/lib/active_merchant/billing/gateways/payflow_express.rb +22 -22
  149. data/lib/active_merchant/billing/gateways/payflow_express_uk.rb +2 -2
  150. data/lib/active_merchant/billing/gateways/payflow_uk.rb +6 -6
  151. data/lib/active_merchant/billing/gateways/payment_express.rb +15 -3
  152. data/lib/active_merchant/billing/gateways/paymentez.rb +283 -0
  153. data/lib/active_merchant/billing/gateways/paymill.rb +237 -48
  154. data/lib/active_merchant/billing/gateways/paypal/paypal_common_api.rb +41 -8
  155. data/lib/active_merchant/billing/gateways/paypal/paypal_express_response.rb +4 -0
  156. data/lib/active_merchant/billing/gateways/paypal/paypal_recurring_api.rb +18 -4
  157. data/lib/active_merchant/billing/gateways/paypal.rb +49 -20
  158. data/lib/active_merchant/billing/gateways/paypal_ca.rb +1 -1
  159. data/lib/active_merchant/billing/gateways/paypal_digital_goods.rb +6 -5
  160. data/lib/active_merchant/billing/gateways/paypal_express.rb +32 -4
  161. data/lib/active_merchant/billing/gateways/paypal_express_common.rb +3 -3
  162. data/lib/active_merchant/billing/gateways/payscout.rb +162 -0
  163. data/lib/active_merchant/billing/gateways/paystation.rb +22 -24
  164. data/lib/active_merchant/billing/gateways/payu_in.rb +248 -0
  165. data/lib/active_merchant/billing/gateways/payu_latam.rb +440 -0
  166. data/lib/active_merchant/billing/gateways/pin.rb +68 -13
  167. data/lib/active_merchant/billing/gateways/plugnpay.rb +1 -12
  168. data/lib/active_merchant/billing/gateways/pro_pay.rb +326 -0
  169. data/lib/active_merchant/billing/gateways/psigate.rb +3 -14
  170. data/lib/active_merchant/billing/gateways/psl_card.rb +3 -3
  171. data/lib/active_merchant/billing/gateways/qbms.rb +1 -1
  172. data/lib/active_merchant/billing/gateways/quantum.rb +2 -2
  173. data/lib/active_merchant/billing/gateways/quickbooks.rb +290 -0
  174. data/lib/active_merchant/billing/gateways/quickpay/quickpay_common.rb +188 -0
  175. data/lib/active_merchant/billing/gateways/quickpay/quickpay_v10.rb +299 -0
  176. data/lib/active_merchant/billing/gateways/quickpay/quickpay_v4to7.rb +227 -0
  177. data/lib/active_merchant/billing/gateways/quickpay.rb +10 -319
  178. data/lib/active_merchant/billing/gateways/qvalent.rb +236 -0
  179. data/lib/active_merchant/billing/gateways/realex.rb +27 -25
  180. data/lib/active_merchant/billing/gateways/redsys.rb +212 -80
  181. data/lib/active_merchant/billing/gateways/s5.rb +247 -0
  182. data/lib/active_merchant/billing/gateways/safe_charge.rb +258 -0
  183. data/lib/active_merchant/billing/gateways/sage.rb +412 -119
  184. data/lib/active_merchant/billing/gateways/sage_pay.rb +176 -59
  185. data/lib/active_merchant/billing/gateways/secure_net.rb +35 -29
  186. data/lib/active_merchant/billing/gateways/secure_pay.rb +182 -9
  187. data/lib/active_merchant/billing/gateways/secure_pay_au.rb +21 -7
  188. data/lib/active_merchant/billing/gateways/secure_pay_tech.rb +0 -7
  189. data/lib/active_merchant/billing/gateways/securion_pay.rb +267 -0
  190. data/lib/active_merchant/billing/gateways/skip_jack.rb +1 -3
  191. data/lib/active_merchant/billing/gateways/smart_ps.rb +13 -2
  192. data/lib/active_merchant/billing/gateways/so_easy_pay.rb +194 -0
  193. data/lib/active_merchant/billing/gateways/spreedly_core.rb +36 -11
  194. data/lib/active_merchant/billing/gateways/stripe.rb +461 -82
  195. data/lib/active_merchant/billing/gateways/swipe_checkout.rb +156 -0
  196. data/lib/active_merchant/billing/gateways/telr.rb +275 -0
  197. data/lib/active_merchant/billing/gateways/tns.rb +22 -0
  198. data/lib/active_merchant/billing/gateways/trans_first.rb +142 -28
  199. data/lib/active_merchant/billing/gateways/trans_first_transaction_express.rb +608 -0
  200. data/lib/active_merchant/billing/gateways/transact_pro.rb +224 -0
  201. data/lib/active_merchant/billing/gateways/transnational.rb +2 -231
  202. data/lib/active_merchant/billing/gateways/trexle.rb +217 -0
  203. data/lib/active_merchant/billing/gateways/trust_commerce.rb +17 -11
  204. data/lib/active_merchant/billing/gateways/usa_epay_advanced.rb +193 -75
  205. data/lib/active_merchant/billing/gateways/usa_epay_transaction.rb +150 -63
  206. data/lib/active_merchant/billing/gateways/vanco.rb +294 -0
  207. data/lib/active_merchant/billing/gateways/verifi.rb +1 -8
  208. data/lib/active_merchant/billing/gateways/viaklix.rb +1 -15
  209. data/lib/active_merchant/billing/gateways/visanet_peru.rb +209 -0
  210. data/lib/active_merchant/billing/gateways/webpay.rb +45 -28
  211. data/lib/active_merchant/billing/gateways/wepay.rb +238 -0
  212. data/lib/active_merchant/billing/gateways/wirecard.rb +167 -49
  213. data/lib/active_merchant/billing/gateways/world_net.rb +344 -0
  214. data/lib/active_merchant/billing/gateways/worldpay.rb +131 -36
  215. data/lib/active_merchant/billing/gateways/worldpay_online_payments.rb +218 -0
  216. data/lib/active_merchant/billing/gateways/worldpay_us.rb +221 -0
  217. data/lib/active_merchant/billing/gateways.rb +8 -11
  218. data/lib/active_merchant/billing/model.rb +30 -0
  219. data/lib/active_merchant/billing/network_tokenization_credit_card.rb +39 -0
  220. data/lib/active_merchant/billing/payment_token.rb +21 -0
  221. data/lib/active_merchant/billing/rails.rb +3 -0
  222. data/lib/active_merchant/billing/response.rb +24 -17
  223. data/lib/active_merchant/billing.rb +7 -1
  224. data/lib/active_merchant/connection.rb +177 -0
  225. data/lib/active_merchant/country.rb +334 -0
  226. data/lib/active_merchant/empty.rb +20 -0
  227. data/lib/active_merchant/errors.rb +35 -0
  228. data/lib/active_merchant/network_connection_retries.rb +79 -0
  229. data/lib/active_merchant/post_data.rb +24 -0
  230. data/lib/active_merchant/posts_data.rb +84 -0
  231. data/lib/active_merchant/version.rb +1 -1
  232. data/lib/active_merchant.rb +24 -21
  233. data/lib/certs/cacert.pem +3951 -0
  234. data/lib/support/gateway_support.rb +16 -10
  235. data/lib/support/outbound_hosts.rb +13 -10
  236. metadata +161 -306
  237. data/gem-public_cert.pem +0 -20
  238. data/lib/active_merchant/billing/expiry_date.rb +0 -34
  239. data/lib/active_merchant/billing/gateways/barclays_epdq.rb +0 -314
  240. data/lib/active_merchant/billing/gateways/card_stream_modern.rb +0 -155
  241. data/lib/active_merchant/billing/gateways/certo_direct.rb +0 -277
  242. data/lib/active_merchant/billing/gateways/orbital/avs_result.rb +0 -93
  243. data/lib/active_merchant/billing/gateways/sage/sage_bankcard.rb +0 -93
  244. data/lib/active_merchant/billing/gateways/sage/sage_core.rb +0 -114
  245. data/lib/active_merchant/billing/gateways/sage/sage_virtual_check.rb +0 -102
  246. data/lib/active_merchant/billing/gateways/samurai.rb +0 -118
  247. data/lib/active_merchant/billing/gateways/vindicia.rb +0 -361
  248. data/lib/active_merchant/billing/integrations/a1agregator/helper.rb +0 -31
  249. data/lib/active_merchant/billing/integrations/a1agregator/notification.rb +0 -186
  250. data/lib/active_merchant/billing/integrations/a1agregator/status.rb +0 -38
  251. data/lib/active_merchant/billing/integrations/a1agregator.rb +0 -26
  252. data/lib/active_merchant/billing/integrations/action_view_helper.rb +0 -73
  253. data/lib/active_merchant/billing/integrations/authorize_net_sim/helper.rb +0 -229
  254. data/lib/active_merchant/billing/integrations/authorize_net_sim/notification.rb +0 -340
  255. data/lib/active_merchant/billing/integrations/authorize_net_sim.rb +0 -38
  256. data/lib/active_merchant/billing/integrations/bogus/helper.rb +0 -17
  257. data/lib/active_merchant/billing/integrations/bogus/notification.rb +0 -11
  258. data/lib/active_merchant/billing/integrations/bogus/return.rb +0 -10
  259. data/lib/active_merchant/billing/integrations/bogus.rb +0 -23
  260. data/lib/active_merchant/billing/integrations/chronopay/helper.rb +0 -120
  261. data/lib/active_merchant/billing/integrations/chronopay/notification.rb +0 -158
  262. data/lib/active_merchant/billing/integrations/chronopay/return.rb +0 -10
  263. data/lib/active_merchant/billing/integrations/chronopay.rb +0 -23
  264. data/lib/active_merchant/billing/integrations/direc_pay/helper.rb +0 -200
  265. data/lib/active_merchant/billing/integrations/direc_pay/notification.rb +0 -76
  266. data/lib/active_merchant/billing/integrations/direc_pay/return.rb +0 -32
  267. data/lib/active_merchant/billing/integrations/direc_pay/status.rb +0 -37
  268. data/lib/active_merchant/billing/integrations/direc_pay.rb +0 -41
  269. data/lib/active_merchant/billing/integrations/directebanking/helper.rb +0 -90
  270. data/lib/active_merchant/billing/integrations/directebanking/notification.rb +0 -120
  271. data/lib/active_merchant/billing/integrations/directebanking/return.rb +0 -11
  272. data/lib/active_merchant/billing/integrations/directebanking.rb +0 -47
  273. data/lib/active_merchant/billing/integrations/dotpay/helper.rb +0 -77
  274. data/lib/active_merchant/billing/integrations/dotpay/notification.rb +0 -86
  275. data/lib/active_merchant/billing/integrations/dotpay/return.rb +0 -11
  276. data/lib/active_merchant/billing/integrations/dotpay.rb +0 -22
  277. data/lib/active_merchant/billing/integrations/dwolla/common.rb +0 -23
  278. data/lib/active_merchant/billing/integrations/dwolla/helper.rb +0 -43
  279. data/lib/active_merchant/billing/integrations/dwolla/notification.rb +0 -64
  280. data/lib/active_merchant/billing/integrations/dwolla/return.rb +0 -49
  281. data/lib/active_merchant/billing/integrations/dwolla.rb +0 -23
  282. data/lib/active_merchant/billing/integrations/e_payment_plans/helper.rb +0 -34
  283. data/lib/active_merchant/billing/integrations/e_payment_plans/notification.rb +0 -84
  284. data/lib/active_merchant/billing/integrations/e_payment_plans.rb +0 -48
  285. data/lib/active_merchant/billing/integrations/easy_pay/common.rb +0 -40
  286. data/lib/active_merchant/billing/integrations/easy_pay/helper.rb +0 -36
  287. data/lib/active_merchant/billing/integrations/easy_pay/notification.rb +0 -59
  288. data/lib/active_merchant/billing/integrations/easy_pay.rb +0 -30
  289. data/lib/active_merchant/billing/integrations/epay/helper.rb +0 -55
  290. data/lib/active_merchant/billing/integrations/epay/notification.rb +0 -110
  291. data/lib/active_merchant/billing/integrations/epay.rb +0 -21
  292. data/lib/active_merchant/billing/integrations/first_data/helper.rb +0 -61
  293. data/lib/active_merchant/billing/integrations/first_data/notification.rb +0 -56
  294. data/lib/active_merchant/billing/integrations/first_data.rb +0 -38
  295. data/lib/active_merchant/billing/integrations/gestpay/common.rb +0 -42
  296. data/lib/active_merchant/billing/integrations/gestpay/helper.rb +0 -70
  297. data/lib/active_merchant/billing/integrations/gestpay/notification.rb +0 -85
  298. data/lib/active_merchant/billing/integrations/gestpay/return.rb +0 -10
  299. data/lib/active_merchant/billing/integrations/gestpay.rb +0 -25
  300. data/lib/active_merchant/billing/integrations/helper.rb +0 -117
  301. data/lib/active_merchant/billing/integrations/hi_trust/helper.rb +0 -58
  302. data/lib/active_merchant/billing/integrations/hi_trust/notification.rb +0 -59
  303. data/lib/active_merchant/billing/integrations/hi_trust/return.rb +0 -68
  304. data/lib/active_merchant/billing/integrations/hi_trust.rb +0 -27
  305. data/lib/active_merchant/billing/integrations/ipay88/helper.rb +0 -114
  306. data/lib/active_merchant/billing/integrations/ipay88/return.rb +0 -95
  307. data/lib/active_merchant/billing/integrations/ipay88.rb +0 -19
  308. data/lib/active_merchant/billing/integrations/liqpay/helper.rb +0 -43
  309. data/lib/active_merchant/billing/integrations/liqpay/notification.rb +0 -89
  310. data/lib/active_merchant/billing/integrations/liqpay/return.rb +0 -83
  311. data/lib/active_merchant/billing/integrations/liqpay.rb +0 -30
  312. data/lib/active_merchant/billing/integrations/maksuturva/helper.rb +0 -119
  313. data/lib/active_merchant/billing/integrations/maksuturva/notification.rb +0 -48
  314. data/lib/active_merchant/billing/integrations/maksuturva.rb +0 -86
  315. data/lib/active_merchant/billing/integrations/moneybookers/helper.rb +0 -75
  316. data/lib/active_merchant/billing/integrations/moneybookers/notification.rb +0 -129
  317. data/lib/active_merchant/billing/integrations/moneybookers.rb +0 -26
  318. data/lib/active_merchant/billing/integrations/nochex/helper.rb +0 -68
  319. data/lib/active_merchant/billing/integrations/nochex/notification.rb +0 -94
  320. data/lib/active_merchant/billing/integrations/nochex/return.rb +0 -10
  321. data/lib/active_merchant/billing/integrations/nochex.rb +0 -88
  322. data/lib/active_merchant/billing/integrations/notification.rb +0 -71
  323. data/lib/active_merchant/billing/integrations/paxum/common.rb +0 -24
  324. data/lib/active_merchant/billing/integrations/paxum/helper.rb +0 -42
  325. data/lib/active_merchant/billing/integrations/paxum/notification.rb +0 -33
  326. data/lib/active_merchant/billing/integrations/paxum.rb +0 -44
  327. data/lib/active_merchant/billing/integrations/pay_fast/common.rb +0 -42
  328. data/lib/active_merchant/billing/integrations/pay_fast/helper.rb +0 -50
  329. data/lib/active_merchant/billing/integrations/pay_fast/notification.rb +0 -134
  330. data/lib/active_merchant/billing/integrations/pay_fast/return.rb +0 -10
  331. data/lib/active_merchant/billing/integrations/pay_fast.rb +0 -70
  332. data/lib/active_merchant/billing/integrations/payflow_link/helper.rb +0 -116
  333. data/lib/active_merchant/billing/integrations/payflow_link/notification.rb +0 -78
  334. data/lib/active_merchant/billing/integrations/payflow_link.rb +0 -21
  335. data/lib/active_merchant/billing/integrations/paypal/helper.rb +0 -119
  336. data/lib/active_merchant/billing/integrations/paypal/notification.rb +0 -227
  337. data/lib/active_merchant/billing/integrations/paypal/return.rb +0 -10
  338. data/lib/active_merchant/billing/integrations/paypal.rb +0 -39
  339. data/lib/active_merchant/billing/integrations/paypal_payments_advanced/helper.rb +0 -15
  340. data/lib/active_merchant/billing/integrations/paypal_payments_advanced.rb +0 -20
  341. data/lib/active_merchant/billing/integrations/paysbuy/helper.rb +0 -15
  342. data/lib/active_merchant/billing/integrations/paysbuy/notification.rb +0 -28
  343. data/lib/active_merchant/billing/integrations/paysbuy.rb +0 -36
  344. data/lib/active_merchant/billing/integrations/payu_in/helper.rb +0 -74
  345. data/lib/active_merchant/billing/integrations/payu_in/notification.rb +0 -165
  346. data/lib/active_merchant/billing/integrations/payu_in/return.rb +0 -36
  347. data/lib/active_merchant/billing/integrations/payu_in.rb +0 -43
  348. data/lib/active_merchant/billing/integrations/platron/helper.rb +0 -32
  349. data/lib/active_merchant/billing/integrations/platron/notification.rb +0 -113
  350. data/lib/active_merchant/billing/integrations/platron.rb +0 -28
  351. data/lib/active_merchant/billing/integrations/pxpay/helper.rb +0 -112
  352. data/lib/active_merchant/billing/integrations/pxpay/notification.rb +0 -157
  353. data/lib/active_merchant/billing/integrations/pxpay/return.rb +0 -25
  354. data/lib/active_merchant/billing/integrations/pxpay.rb +0 -31
  355. data/lib/active_merchant/billing/integrations/quickpay/helper.rb +0 -74
  356. data/lib/active_merchant/billing/integrations/quickpay/notification.rb +0 -137
  357. data/lib/active_merchant/billing/integrations/quickpay.rb +0 -21
  358. data/lib/active_merchant/billing/integrations/rbkmoney/helper.rb +0 -23
  359. data/lib/active_merchant/billing/integrations/rbkmoney/notification.rb +0 -91
  360. data/lib/active_merchant/billing/integrations/rbkmoney.rb +0 -17
  361. data/lib/active_merchant/billing/integrations/return.rb +0 -42
  362. data/lib/active_merchant/billing/integrations/robokassa/common.rb +0 -19
  363. data/lib/active_merchant/billing/integrations/robokassa/helper.rb +0 -50
  364. data/lib/active_merchant/billing/integrations/robokassa/notification.rb +0 -55
  365. data/lib/active_merchant/billing/integrations/robokassa/return.rb +0 -17
  366. data/lib/active_merchant/billing/integrations/robokassa.rb +0 -49
  367. data/lib/active_merchant/billing/integrations/sage_pay_form/encryption.rb +0 -33
  368. data/lib/active_merchant/billing/integrations/sage_pay_form/helper.rb +0 -136
  369. data/lib/active_merchant/billing/integrations/sage_pay_form/notification.rb +0 -210
  370. data/lib/active_merchant/billing/integrations/sage_pay_form/return.rb +0 -31
  371. data/lib/active_merchant/billing/integrations/sage_pay_form.rb +0 -37
  372. data/lib/active_merchant/billing/integrations/two_checkout/helper.rb +0 -91
  373. data/lib/active_merchant/billing/integrations/two_checkout/notification.rb +0 -139
  374. data/lib/active_merchant/billing/integrations/two_checkout/return.rb +0 -17
  375. data/lib/active_merchant/billing/integrations/two_checkout.rb +0 -44
  376. data/lib/active_merchant/billing/integrations/valitor/helper.rb +0 -86
  377. data/lib/active_merchant/billing/integrations/valitor/notification.rb +0 -13
  378. data/lib/active_merchant/billing/integrations/valitor/response_fields.rb +0 -97
  379. data/lib/active_merchant/billing/integrations/valitor/return.rb +0 -13
  380. data/lib/active_merchant/billing/integrations/valitor.rb +0 -33
  381. data/lib/active_merchant/billing/integrations/verkkomaksut/helper.rb +0 -88
  382. data/lib/active_merchant/billing/integrations/verkkomaksut/notification.rb +0 -59
  383. data/lib/active_merchant/billing/integrations/verkkomaksut.rb +0 -20
  384. data/lib/active_merchant/billing/integrations/web_pay/common.rb +0 -50
  385. data/lib/active_merchant/billing/integrations/web_pay/helper.rb +0 -68
  386. data/lib/active_merchant/billing/integrations/web_pay/notification.rb +0 -51
  387. data/lib/active_merchant/billing/integrations/web_pay.rb +0 -45
  388. data/lib/active_merchant/billing/integrations/webmoney/common.rb +0 -17
  389. data/lib/active_merchant/billing/integrations/webmoney/helper.rb +0 -40
  390. data/lib/active_merchant/billing/integrations/webmoney/notification.rb +0 -47
  391. data/lib/active_merchant/billing/integrations/webmoney.rb +0 -43
  392. data/lib/active_merchant/billing/integrations/world_pay/helper.rb +0 -101
  393. data/lib/active_merchant/billing/integrations/world_pay/notification.rb +0 -160
  394. data/lib/active_merchant/billing/integrations/world_pay.rb +0 -34
  395. data/lib/active_merchant/billing/integrations.rb +0 -17
  396. data.tar.gz.sig +0 -0
  397. metadata.gz.sig +0 -0
data/CONTRIBUTORS CHANGED
@@ -122,6 +122,7 @@ MerchantWARE (July 7, 2009)
122
122
  FirstPay (July 24, 2009)
123
123
 
124
124
  * Phil R
125
+ * Ryan Daigle (rwdaigle)
125
126
 
126
127
  Ogone (July 20, 2009)
127
128
 
@@ -412,3 +413,156 @@ MerchantWare V4 (July 2013)
412
413
  Platron integration (July 2013)
413
414
 
414
415
  * Alexey Kiryushin (alexwl)
416
+
417
+ MoneyMovers (September 2013)
418
+
419
+ * Jeffery Utter (jeffutter)
420
+
421
+ Be2Bill (September 2013)
422
+
423
+ * Michaël Hoste (MichaelHoste)
424
+
425
+ Conekta (October 2013)
426
+
427
+ * Leo Fischer (leofischer)
428
+
429
+ App55 (November 2013)
430
+
431
+ * (ianbutler55)
432
+
433
+ Swipe Checkout (November 2013)
434
+
435
+ * (matt-optimizerhq)
436
+
437
+ Raven PacNet (November 2013)
438
+
439
+ * Luis Lopez (llopez)
440
+
441
+ Payex (November 2013)
442
+
443
+ * Tom Davies (atomgiant)
444
+
445
+ Payscout (December 2013)
446
+
447
+ * Luis Lopez (llopez)
448
+
449
+ SoEasyPay (December 2013)
450
+
451
+ * Ivan Radovanovic (ir-soeasycorp)
452
+
453
+ Cecabank (February 2014)
454
+
455
+ * Alberto Molpeceres (molpe)
456
+
457
+ Openpay (February 2014)
458
+
459
+ * (darkaz)
460
+
461
+ maxiPago (February 2014)
462
+
463
+ * (alexandremcosta)
464
+
465
+ WePay (March 2014)
466
+
467
+ * Faizal Zakaria (faizalzakaria)
468
+
469
+ FirstGiving (March 2014)
470
+
471
+ * Faizal Zakaria (faizalzakaria)
472
+
473
+ BridgePay (April 2014)
474
+
475
+ * Mark Bennett (markabe)
476
+
477
+ PagoFacil (May 2014)
478
+
479
+ * Benito Serna (bhserna)
480
+
481
+ Cashnet (May 2014)
482
+
483
+ * Tom Hoen (hoenth)
484
+
485
+ Heartland Payment Systems (May 2014)
486
+
487
+ * Mark Hagan (SecureSubmit)
488
+
489
+ Borgun (June 2014)
490
+
491
+ * Mark Bennett (markabe)
492
+
493
+ Commercegate (June 2014)
494
+
495
+ * Vitaliy (vitaliyvasin)
496
+
497
+ Worldpay US (August 2014)
498
+
499
+ * Mark Bennett (markabe)
500
+
501
+ Checkout.com (September 2014)
502
+
503
+ * (ravish-ramrakha-cko)
504
+
505
+ Bank Frick (September 2014)
506
+
507
+ * Piers Chambers (varyonic)
508
+
509
+ Global Transport (September 2014)
510
+
511
+ * Duff O'Melia (duff)
512
+
513
+ IPP (December 2014)
514
+
515
+ * (InfraRuby)
516
+
517
+ QuickBooks Payments (January 2015)
518
+
519
+ * Arbab Ahmed (bizla)
520
+ * Ivan Sanchez (ivanfer)
521
+
522
+ Axcess MS (February 2015)
523
+
524
+ * Tim Tait (timtait)
525
+
526
+ PayHub (February 2015)
527
+
528
+ * Grep Ruby (grepruby)
529
+
530
+ Qvalent (March 2015)
531
+
532
+ * Mark Bennett (markabe)
533
+
534
+ Worldpay Online Payments (April 2015)
535
+
536
+ * (ao)
537
+
538
+ PayU India (May 2015)
539
+
540
+ * Nathaniel Talbott (ntalbott)
541
+
542
+ SecurionPay (October 2015)
543
+
544
+ * Michał Szajbe (szajbus)
545
+
546
+ Komoju (October 2015)
547
+
548
+ * Kazunori Kajihiro (k2nr)
549
+
550
+ CAMS: Central Account Management System (October 2015)
551
+
552
+ * Trevor Grayson (trevorgrayson)
553
+
554
+ Transact Pro (October 2015)
555
+
556
+ * Piers C (varyonic)
557
+
558
+ Payeezy (October 2015)
559
+
560
+ * Washington L Braga Jr (huoxito)
561
+
562
+ Clearhaus (October 2015)
563
+
564
+ * Dinesh Yadav (dinesh)
565
+
566
+ Cardknox (November 2015)
567
+
568
+ * (dlehren)
data/README.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # Active Merchant
2
- [![Build Status](https://secure.travis-ci.org/Shopify/active_merchant.png)](http://travis-ci.org/Shopify/active_merchant)
3
- [![Code Climate](https://codeclimate.com/badge.png)](https://codeclimate.com/github/Shopify/active_merchant)
2
+ [![Build Status](https://travis-ci.org/activemerchant/active_merchant.png?branch=master)](https://travis-ci.org/activemerchant/active_merchant)
3
+ [![Code Climate](https://codeclimate.com/github/activemerchant/active_merchant.png)](https://codeclimate.com/github/activemerchant/active_merchant)
4
4
 
5
- Active Merchant is an extraction from the e-commerce system [Shopify](http://www.shopify.com).
5
+ Active Merchant is an extraction from the ecommerce system [Shopify](http://www.shopify.com).
6
6
  Shopify's requirements for a simple and unified API to access dozens of different payment
7
7
  gateways with very different internal APIs was the chief principle in designing the library.
8
8
 
@@ -17,13 +17,15 @@ from an ever-growing set of contributors.
17
17
  See [GettingStarted.md](GettingStarted.md) if you want to learn more about using Active Merchant in your
18
18
  applications.
19
19
 
20
+ If you'd like to contribute to Active Merchant, please start with our [contribution guide](CONTRIBUTING.md).
21
+
20
22
  ## Installation
21
23
 
22
24
  ### From Git
23
25
 
24
26
  You can check out the latest source from git:
25
27
 
26
- git clone git://github.com/Shopify/active_merchant.git
28
+ git clone git://github.com/activemerchant/active_merchant.git
27
29
 
28
30
  ### From RubyGems
29
31
 
@@ -40,182 +42,193 @@ Or, if you're using Bundler, just add the following to your Gemfile:
40
42
  This simple example demonstrates how a purchase can be made using a person's
41
43
  credit card details.
42
44
 
43
- require 'rubygems'
44
- require 'active_merchant'
45
-
46
- # Use the TrustCommerce test servers
47
- ActiveMerchant::Billing::Base.mode = :test
48
-
49
- gateway = ActiveMerchant::Billing::TrustCommerceGateway.new(
50
- :login => 'TestMerchant',
51
- :password => 'password')
52
-
53
- # ActiveMerchant accepts all amounts as Integer values in cents
54
- amount = 1000 # $10.00
55
-
56
- # The card verification value is also known as CVV2, CVC2, or CID
57
- credit_card = ActiveMerchant::Billing::CreditCard.new(
58
- :first_name => 'Bob',
59
- :last_name => 'Bobsen',
60
- :number => '4242424242424242',
61
- :month => '8',
62
- :year => Time.now.year+1,
63
- :verification_value => '000')
64
-
65
- # Validating the card automatically detects the card type
66
- if credit_card.valid?
67
- # Capture $10 from the credit card
68
- response = gateway.purchase(amount, credit_card)
69
-
70
- if response.success?
71
- puts "Successfully charged $#{sprintf("%.2f", amount / 100)} to the credit card #{credit_card.display_number}"
72
- else
73
- raise StandardError, response.message
74
- end
75
- end
45
+ ```ruby
46
+ require 'active_merchant'
47
+
48
+ # Use the TrustCommerce test servers
49
+ ActiveMerchant::Billing::Base.mode = :test
50
+
51
+ gateway = ActiveMerchant::Billing::TrustCommerceGateway.new(
52
+ :login => 'TestMerchant',
53
+ :password => 'password')
54
+
55
+ # ActiveMerchant accepts all amounts as Integer values in cents
56
+ amount = 1000 # $10.00
57
+
58
+ # The card verification value is also known as CVV2, CVC2, or CID
59
+ credit_card = ActiveMerchant::Billing::CreditCard.new(
60
+ :first_name => 'Bob',
61
+ :last_name => 'Bobsen',
62
+ :number => '4242424242424242',
63
+ :month => '8',
64
+ :year => Time.now.year+1,
65
+ :verification_value => '000')
66
+
67
+ # Validating the card automatically detects the card type
68
+ if credit_card.validate.empty?
69
+ # Capture $10 from the credit card
70
+ response = gateway.purchase(amount, credit_card)
71
+
72
+ if response.success?
73
+ puts "Successfully charged $#{sprintf("%.2f", amount / 100)} to the credit card #{credit_card.display_number}"
74
+ else
75
+ raise StandardError, response.message
76
+ end
77
+ end
78
+ ```
76
79
 
77
80
  For more in-depth documentation and tutorials, see [GettingStarted.md](GettingStarted.md) and the
78
- [API documentation](http://rubydoc.info/github/Shopify/active_merchant/master/file/README.md).
81
+ [API documentation](http://www.rubydoc.info/github/activemerchant/active_merchant/).
79
82
 
80
- ## Supported Direct Payment Gateways
83
+ ## Supported Payment Gateways
81
84
 
82
- 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).
85
+ The [ActiveMerchant Wiki](http://github.com/activemerchant/active_merchant/wikis) contains a [table of features supported by each gateway](http://github.com/activemerchant/active_merchant/wikis/gatewayfeaturematrix).
83
86
 
84
- * [Authorize.Net](http://www.authorize.net/) - US
85
87
  * [Authorize.Net CIM](http://www.authorize.net/) - US
88
+ * [Authorize.Net](http://www.authorize.net/) - AD, AT, AU, BE, BG, CA, CH, CY, CZ, DE, DK, ES, FI, FR, GB, GB, GI, GR, HU, IE, IT, LI, LU, MC, MT, NL, NO, PL, PT, RO, SE, SI, SK, SM, TR, US, VA
89
+ * [Axcess MS](http://www.axcessms.com/) - AD, AT, BE, BG, BR, CA, CH, CY, CZ, DE, DK, EE, ES, FI, FO, FR, GB, GI, GR, HR, HU, IE, IL, IM, IS, IT, LI, LT, LU, LV, MC, MT, MX, NL, NO, PL, PT, RO, RU, SE, SI, SK, TR, US, VA
86
90
  * [Balanced](https://www.balancedpayments.com/) - US
87
- * [Banwire](https://www.banwire.com/) - MX
88
- * [Barclays ePDQ MPI](http://www.barclaycard.co.uk/business/accepting-payments/epdq-mpi/) - UK
89
- * [Barclays ePDQ Extra Plus](http://www.barclaycard.co.uk/business/accepting-payments/epdq-ecomm/) - UK
90
- * [Beanstream.com](http://www.beanstream.com/) - CA
91
+ * [Bank Frick](http://www.bankfrickacquiring.com/) - LI, US
92
+ * [Banwire](http://www.banwire.com/) - MX
93
+ * [Barclays ePDQ Extra Plus](http://www.barclaycard.co.uk/business/accepting-payments/epdq-ecomm/) - GB
94
+ * [Be2Bill](http://www.be2bill.com/) - FR
95
+ * [Beanstream.com](http://www.beanstream.com/) - CA, US
91
96
  * [BluePay](http://www.bluepay.com/) - US
92
- * [Braintree](http://www.braintreepaymentsolutions.com) - US
93
- * [CardStream](http://www.cardstream.com/) - UK
94
- * [CertoDirect](http://www.certodirect.com/) - BE, BG, CZ, DK, DE, EE, IE, EL, ES, FR, IT, CY, LV, LT, LU, HU, MT, NL, AT, PL, PT, RO, SI, SK, FI, SE, UK
95
- * [CyberSource](http://www.cybersource.com) - US
96
- * [DataCash](http://www.datacash.com/) - UK
97
+ * [Borgun](https://www.borgun.is/) - IS
98
+ * [Braintree](https://www.braintreepayments.com) - US, CA, AU, AD, AT, BE, BG, CY, CZ, DK, EE, FI, FR, GI, DE, GR, HU, IS, IM, IE, IT, LV, LI, LT, LU, MT, MC, NL, NO, PL, PT, RO, SM, SK, SI, ES, SE, CH, TR, GB
99
+ * [BridgePay](http://www.bridgepaynetwork.com/) - CA, US
100
+ * [Cardknox](https://www.cardknox.com/) - US, CA, GB
101
+ * [CardSave](http://www.cardsave.net/) - GB
102
+ * [CardStream](http://www.cardstream.com/) - GB
103
+ * [Cashnet](http://www.higherone.com/) - US
104
+ * [Cecabank](http://www.ceca.es/es/) - ES
105
+ * [Cenpos](https://www.cenpos.com/) - AD, AI, AG, AR, AU, AT, BS, BB, BE, BZ, BM, BR, BN, BG, CA, HR, CY, CZ, DK, DM, EE, FI, FR, DE, GR, GD, GY, HK, HU, IS, IN, IL, IT, JP, LV, LI, LT, LU, MY, MT, MX, MC, MS, NL, PA, PL, PT, KN, LC, MF, VC, SM, SG, SK, SI, ZA, ES, SR, SE, CH, TR, GB, US, UY
106
+ * [CAMS: Central Account Management System](https://www.centralams.com/) - US
107
+ * [Checkout.com](https://www.checkout.com/) - AT, BE, BG, CY, CZ, DE, DK, EE, ES, FI, FR, GR, HR, HU, IE, IS, IT, LI, LT, LU, LV, MT, MU, NL, NO, PL, PT, RO, SE, SI, SK, US
108
+ * [Clearhaus](https://www.clearhaus.com) - AD, AT, BE, BG, CH, CY, CZ, DE, DK, EE, ES, FI, FO, FR, GB, GL, GR, HR, HU, IE, IS, IT, LI, LT, LU, LV, MT, NL, NO, PL, PT, RO, SE, SI, SK
109
+ * [Commercegate](http://www.commercegate.com/) - AD, AT, AX, BE, BG, CH, CY, CZ, DE, DK, ES, FI, FR, GB, GG, GI, GR, HR, HU, IE, IM, IS, IT, JE, LI, LT, LU, LV, MC, MT, NL, NO, PL, PT, RO, SE, SI, SK, VA
110
+ * [Conekta](https://conekta.io) - MX
111
+ * [CyberSource](http://www.cybersource.com) - US, BR, CA, CN, DK, FI, FR, DE, JP, MX, NO, SE, GB, SG
112
+ * [DIBS](http://www.dibspayment.com/) - US, FI, NO, SE, GB
113
+ * [DataCash](http://www.datacash.com/) - GB
97
114
  * [Efsnet](http://www.concordefsnet.com/) - US
98
- * [Elavon MyVirtualMerchant](http://www.elavon.com) - US, CA
99
- * [ePay](http://www.epay.dk/) - DK, SE, NO
115
+ * [Elavon MyVirtualMerchant](http://www.elavon.com/) - US, CA
116
+ * [ePay](http://epay.dk/) - DK, SE, NO
100
117
  * [EVO Canada](http://www.evocanada.com/) - CA
101
- * [eWAY](http://www.eway.com.au/) - AU
102
- * [eWay Rapid 3.0](http://www.eway.com.au/) - AU
118
+ * [eWAY](http://www.eway.com.au/) - AU, NZ, GB
119
+ * [eWAY Rapid](http://www.eway.com.au/) - AU, NZ, GB, SG
103
120
  * [E-xact](http://www.e-xact.com) - CA, US
104
- * [Fat Zebra](https://www.fatzebra.com.au) - AU
121
+ * [Ezic](http://www.ezic.com/) - AU, CA, CN, FR, DE, GI, IL, MT, MU, MX, NL, NZ, PA, PH, RU, SG, KR, ES, KN, GB
122
+ * [Fat Zebra](https://www.fatzebra.com.au/) - AU
105
123
  * [Federated Canada](http://www.federatedcanada.com/) - CA
106
124
  * [Finansbank WebPOS](https://www.fbwebpos.com/) - US, TR
125
+ * [Flo2Cash](http://www.flo2cash.co.nz/) - NZ
126
+ * [1stPayGateway.Net](http://1stpaygateway.net/) - US
107
127
  * [FirstData Global Gateway e4](http://www.firstdata.com) - CA, US
108
- * [FirstPay](http://www.first-pay.com) - US
109
- * [Garanti Sanal POS](https://ccpos.garanti.com.tr/ccRaporlar/garanti/ccReports) - US, TR
128
+ * [FirstGiving](http://www.firstgiving.com/) - US
129
+ * [Garanti Sanal POS](https://sanalposweb.garanti.com.tr) - US, TR
130
+ * [Global Transport](https://www.globalpaymentsinc.com) - CA, PR, US
110
131
  * [HDFC](http://www.hdfcbank.com/sme/sme-details/merchant-services/guzh6m0i) - IN
111
- * [Inspire](http://www.inspiregateway.com) - US
132
+ * [Heartland Payment Systems](http://developer.heartlandpaymentsystems.com/SecureSubmit/) - US
133
+ * [iATS Payments](http://home.iatspayments.com/) - AU, BR, CA, CH, DE, DK, ES, FI, FR, GR, HK, IE, IT, NL, NO, PT, SE, SG, TR, UK, US
134
+ * [Inspire Commerce](http://www.inspiregateway.com) - US
112
135
  * [InstaPay](http://www.instapayllc.com) - US
113
- * [Iridium](http://www.iridiumcorp.co.uk/) - UK, ES
136
+ * [IPP](http://www.ippayments.com.au/) - AU
137
+ * [Iridium](http://www.iridiumcorp.co.uk/) - GB, ES
114
138
  * [iTransact](http://www.itransact.com/) - US
115
- * [JetPay](http://www.jetpay.com) - US
139
+ * [JetPay](http://www.jetpay.com/) - US
140
+ * [Komoju](http://www.komoju.com/) - JP
116
141
  * [LinkPoint](http://www.linkpoint.com/) - US
117
- * [Litle](http://www.litle.com/) - US
118
- * [Merchant e-Solutions](http://merchante-solutions.com/) - US
119
- * [MerchantWare](http://merchantwarehouse.com/merchantware) - US
120
- * [Merchant Warrior] (http://merchantwarrior.com) - AU
121
- * [Mercury](http://www.mercurypay.com) - US
142
+ * [Litle & Co.](http://www.litle.com/) - US
143
+ * [maxiPago!](http://www.maxipago.com/) - BR
144
+ * [Merchant e-Solutions](http://www.merchante-solutions.com/) - US
145
+ * [Merchant One Gateway](http://merchantone.com/) - US
146
+ * [MerchantWARE](http://merchantwarehouse.com/merchantware) - US
147
+ * [MerchantWarrior](http://www.merchantwarrior.com/) - AU
148
+ * [Mercury](http://www.mercurypay.com) - US, CA
149
+ * [Metrics Global](http://www.metricsglobal.com) - US
122
150
  * [MasterCard Internet Gateway Service (MiGS)](http://mastercard.com/mastercardsps) - AU, AE, BD, BN, EG, HK, ID, IN, JO, KW, LB, LK, MU, MV, MY, NZ, OM, PH, QA, SA, SG, TT, VN
123
151
  * [Modern Payments](http://www.modpay.com) - US
152
+ * [MONEI](http://www.monei.net/) - AD, AT, BE, BG, CA, CH, CY, CZ, DE, DK, EE, ES, FI, FO, FR, GB, GI, GR, HU, IE, IL, IS, IT, LI, LT, LU, LV, MT, NL, NO, PL, PT, RO, SE, SI, SK, TR, US, VA
124
153
  * [Moneris](http://www.moneris.com/) - CA
125
- * [Moneris US](http://www.monerisusa.com/) - US
126
- * [NABTransact](http://www.nab.com.au/nabtransact/) - AU
127
- * [NELiX TransaX Gateway](http://www.nelixtransax.com) - US
128
- * [Netaxept](http://www.betalingsterminal.no/Netthandel-forside) - NO, DK, SE, FI
129
- * [NETbilling](http://www.netbilling.com) - US
130
- * [NetPay](http://www.netpay.com.mx) - MX
154
+ * [Moneris (US)](http://www.monerisusa.com/) - US
155
+ * [MoneyMovers](http://mmoa.us/) - US
156
+ * [NAB Transact](http://transact.nab.com.au) - AU
157
+ * [NELiX TransaX](https://www.nelixtransax.com/) - US
131
158
  * [NetRegistry](http://www.netregistry.com.au) - AU
159
+ * [BBS Netaxept](http://www.betalingsterminal.no/Netthandel-forside/) - NO, DK, SE, FI
160
+ * [NETbilling](http://www.netbilling.com) - US
161
+ * [NETPAY Gateway](http://www.netpay.com.mx) - MX
132
162
  * [NMI](http://nmi.com/) - US
133
- * [Ogone DirectLink](http://www.ogone.com) - BE, DE, FR, NL, AT, CH
134
- * [Optimal Payments](http://www.optimalpayments.com/) - CA, US, UK
135
- * [Orbital Paymentech](http://chasepaymentech.com/) - CA, US, UK, GB
136
- * [PayBox Direct](http://www.paybox.com) - FR
137
- * [PayFast](https://www.payfast.co.za/) - ZA
163
+ * [Ogone](http://www.ogone.com/) - BE, DE, FR, NL, AT, CH
164
+ * [Omise](https://www.omise.co/) - TH, JP
165
+ * [Openpay](Openpay) - MX
166
+ * [Optimal Payments](http://www.optimalpayments.com/) - CA, US, GB
167
+ * [Orbital Paymentech](http://chasepaymentech.com/) - US, CA
168
+ * [Pagar.me](https://pagar.me/) - BR
169
+ * [PagoFacil](http://www.pagofacil.net/) - MX
170
+ * [PayConex](http://www.bluefincommerce.com/) - US, CA
138
171
  * [PayGate PayXML](http://paygate.co.za/) - US, ZA
172
+ * [PayHub](http://www.payhub.com/) - US
139
173
  * [PayJunction](http://www.payjunction.com/) - US
140
- * [PaymentExpress](http://www.paymentexpress.com/) - AU, MY, NZ, SG, ZA, UK, US
141
- * [PAYMILL](https://www.paymill.com) - AD, AT, BE, CH, CY, CZ, DE, DK, EE, ES, FI, FO, FR, GB, GR, HU, IE, IL, IS, IT, LI, LT, LU, LV, MT, NL, NO, PL, PT, SE, SI, SK, TR, VA
142
- * [PayPal Express Checkout](https://www.paypal.com/cgi-bin/webscr?cmd=xpt/merchant/ExpressCheckoutIntro-outside) - US, CA, SG, AU
143
- * [PayPal Payflow Pro](https://www.paypal.com/cgi-bin/webscr?cmd=_payflow-pro-overview-outside) - US, CA, SG, AU
144
- * [PayPal Website Payments Pro (UK)](https://www.paypal.com/uk/cgi-bin/webscr?cmd=_wp-pro-overview-outside) - UK
145
- * [PayPal Website Payments Pro (CA)](https://www.paypal.com/cgi-bin/webscr?cmd=_wp-pro-overview-outside) - CA
146
- * [PayPal Express Checkout](https://www.paypal.com/cgi-bin/webscr?cmd=xpt/merchant/ExpressCheckoutIntro-outside) - US
147
- * [PayPal Website Payments Pro (US)](https://www.paypal.com/cgi-bin/webscr?cmd=_wp-pro-overview-outside) - US
148
174
  * [PaySecure](http://www.commsecure.com.au/paysecure.shtml) - AU
149
- * [PayWay](https://www.payway.com.au) - AU
150
- * [Pin](http://www.pin.net.au/) - AU
175
+ * [Paybox Direct](http://www.paybox.com/) - FR
176
+ * [Payeezy](https://developer.payeezy.com/) - CA, US
177
+ * [Payex](http://payex.com/) - DK, FI, NO, SE
178
+ * [PaymentExpress](http://www.paymentexpress.com/) - AU, CA, DE, ES, FR, GB, HK, IE, MY, NL, NZ, SG, US, ZA
179
+ * [PAYMILL](https://paymill.com) - AD, AT, BE, BG, CH, CY, CZ, DE, DK, EE, ES, FI, FO, FR, GB, GI, GR, HU, IE, IL, IS, IT, LI, LT, LU, LV, MT, NL, NO, PL, PT, RO, SE, SI, SK, TR, VA
180
+ * [PayPal Express Checkout](https://www.paypal.com/webapps/mpp/express-checkout) - US, CA, SG, AU
181
+ * [PayPal Express Checkout (UK)](https://www.paypal.com/uk/webapps/mpp/express-checkout) - GB
182
+ * [PayPal Payflow Pro](https://www.paypal.com/webapps/mpp/payflow-payment-gateway) - US, CA, SG, AU
183
+ * [PayPal Payments Pro (US)](https://www.paypal.com/us/webapps/mpp/paypal-payments-pro) - US
184
+ * [PayPal Payments Pro (UK)](https://www.paypal.com/uk/webapps/mpp/pro) - GB
185
+ * [PayPal Website Payments Pro (CA)](https://www.paypal.com/cgi-bin/webscr?cmd=_wp-pro-overview-outside) - CA
186
+ * [PayPal Express Checkout for Digital Goods](https://www.x.com/community/ppx/xspaces/digital_goods) - AU, CA, CN, FI, GB, ID, IN, IT, MY, NO, NZ, PH, PL, SE, SG, TH, VN
187
+ * [Payscout](http://www.payscout.com/) - US
188
+ * [Paystation](http://paystation.co.nz) - NZ
189
+ * [Pay Way](http://www.payway.com.au) - AU
190
+ * [PayU India](https://www.payu.in/) - IN
191
+ * [Pin Payments](http://www.pin.net.au/) - AU
151
192
  * [Plug'n Pay](http://www.plugnpay.com/) - US
152
193
  * [Psigate](http://www.psigate.com/) - CA
153
- * [PSL Payment Solutions](http://www.paymentsolutionsltd.com/) - UK
154
- * [Quantum](http://www.quantumgateway.com) - US
194
+ * [PSL Payment Solutions](http://www.paymentsolutionsltd.com/) - GB
155
195
  * [QuickBooks Merchant Services](http://payments.intuit.com/) - US
156
- * [Quickpay](http://quickpay.dk/) - DK, SE
157
- * [Rabobank Nederland](http://www.rabobank.nl/) - NL
158
- * [Realex](http://www.realexpayments.com/) - IE, UK
159
- * [Redsys](http://www.redsys.es) - ES
160
- * [SagePay](http://www.sagepay.com) - UK
196
+ * [QuickBooks Payments](http://payments.intuit.com/) - US
197
+ * [Quantum Gateway](http://www.quantumgateway.com) - US
198
+ * [QuickPay](http://quickpay.net/) - DE, DK, ES, FI, FR, FO, GB, IS, NO, SE
199
+ * [Qvalent](https://www.qvalent.com/) - AU
200
+ * [Raven](http://www.deepcovelabs.com/raven) - AI, AN, AT, AU, BE, BG, BS, BZ, CA, CH, CR, CY, CZ, DE, DK, DM, DO, EE, EL, ES, FI, FR, GB, GG, GI, HK, HR, HU, IE, IL, IM, IN, IT, JE, KN, LI, LT, LU, LV, MH, MT, MY, NL, NO, NZ, PA, PE, PH, PL, PT, RO, RS, SC, SE, SG, SI, SK, UK, US, VG, ZA
201
+ * [Realex](http://www.realexpayments.com/) - IE, GB, FR, BE, NL, LU, IT
202
+ * [Redsys](http://www.redsys.es/) - ES
203
+ * [S5](http://www.s5.dk/) - DK
204
+ * [SagePay](http://www.sagepay.com) - GB, IE
161
205
  * [Sage Payment Solutions](http://www.sagepayments.com) - US, CA
162
- * [Sallie Mae](http://www.salliemae.com) - US
163
- * [SecureNet](http://www.securenet.com) - US
164
- * [SecurePay](http://securepay.com.au) - AU
165
- * [SecurePay](http://www.securepay.com/) - US
206
+ * [Sallie Mae](http://www.salliemae.com/) - US
207
+ * [SecureNet](http://www.securenet.com/) - US
208
+ * [SecurePay](http://www.securepay.com/) - US, CA, GB, AU
166
209
  * [SecurePayTech](http://www.securepaytech.com/) - NZ
210
+ * [SecurionPay](https://securionpay.com/) - AD, AE, AF, AG, AI, AL, AM, AO, AR, AS, AT, AU, AW, AX, AZ, BA, BB, BD, BE, BF, BG, BH, BI, BJ, BL, BM, BN, BO, BR, BS, BT, BV, BW, BY, BZ, CA, CC, CD, CF, CG, CH, CI, CK, CL, CM, CN, CO, CR, CU, CV, CW, CX, CY, CZ, DE, DJ, DK, DM, DO, DZ, EC, EE, EG, EH, ER, ES, ET, FI, FJ, FK, FM, FO, FR, GA, GB, GD, GE, GF, GG, GH, GI, GL, GM, GN, GP, GQ, GR, GS, GT, GU, GW, GY, HK, HM, HN, HR, HT, HU, ID, IE, IL, IM, IN, IO, IQ, IR, IS, IT, JE, JM, JO, JP, KE, KG, KH, KI, KM, KN, KP, KR, KW, KY, KZ, LA, LB, LC, LI, LK, LR, LS, LT, LU, LV, LY, MA, MC, MD, ME, MF, MG, MH, MK, ML, MM, MN, MO, MP, MQ, MR, MS, MT, MU, MV, MW, MX, MY, MZ, NA, NC, NE, NF, NG, NI, NL, NO, NP, NR, NU, NZ, OM, PA, PE, PF, PG, PH, PK, PL, PM, PN, PR, PS, PT, PW, PY, QA, RE, RO, RS, RU, RW, SA, SB, SC, SD, SE, SG, SH, SI, SJ, SK, SL, SM, SN, SO, SR, ST, SV, SY, SZ, TC, TD, TF, TG, TH, TJ, TK, TL, TM, TN, TO, TR, TT, TV, TW, TZ, UA, UG, UM, US, UY, UZ, VA, VC, VE, VG, VI, VN, VU, WF, WS, YE, YT, ZA, ZM, ZW
167
211
  * [SkipJack](http://www.skipjack.com/) - US, CA
168
- * [Spreedly Core](https://spreedlycore.com/) - AD, AE, AT, AU, BD, BE, BG, BN, CA, CH, CY, CZ, DE, DK, EE, EG, ES, FI, FR, GB, GI, GR, HK, HU, ID, IE, IL, IM, IN, IS, IT, JO, KW, LB, LI, LK, LT, LU, LV, MC, MT, MU, MV, MX, MY, NL, NO, NZ, OM, PH, PL, PT, QA, RO, SA, SE, SG, SI, SK, SM, TR, TT, UM, US, VA, VN, ZA
169
- * [Stripe](https://stripe.com/) - US, CA, GB
212
+ * [SoEasyPay](http://www.soeasypay.com/) - US, CA, AT, BE, BG, HR, CY, CZ, DK, EE, FI, FR, DE, GR, HU, IE, IT, LV, LT, LU, MT, NL, PL, PT, RO, SK, SI, ES, SE, GB, IS, NO, CH
213
+ * [Spreedly](https://spreedly.com) - AD, AE, AT, AU, BD, BE, BG, BN, CA, CH, CY, CZ, DE, DK, EE, EG, ES, FI, FR, GB, GI, GR, HK, HU, ID, IE, IL, IM, IN, IS, IT, JO, KW, LB, LI, LK, LT, LU, LV, MC, MT, MU, MV, MX, MY, NL, NO, NZ, OM, PH, PL, PT, QA, RO, SA, SE, SG, SI, SK, SM, TR, TT, UM, US, VA, VN, ZA
214
+ * [Stripe](https://stripe.com/) - AT, AU, BE, CA, CH, DE, DK, ES, FI, FR, GB, IE, IT, LU, NL, NO, SE, SG, US
215
+ * [Swipe](https://www.swipehq.com/checkout) - CA, NZ
216
+ * [TNS](http://www.tnsi.com/) - AR, AU, BR, FR, DE, HK, MX, NZ, SG, GB, US
217
+ * [Transact Pro](https://www.transactpro.lv/business/online-payments-acceptance) - US
170
218
  * [TransFirst](http://www.transfirst.com/) - US
171
219
  * [Transnational](http://www.tnbci.com/) - US
172
220
  * [TrustCommerce](http://www.trustcommerce.com/) - US
173
221
  * [USA ePay](http://www.usaepay.com/) - US
222
+ * [Vanco Payment Solutions](http://vancopayments.com/) - US
174
223
  * [Verifi](http://www.verifi.com/) - US
175
224
  * [ViaKLIX](http://viaklix.com) - US
176
- * [Vindica](http://www.vindicia.com/) - US, CA, UK, AU, MX, BR, DE, KR, CN, HK
177
225
  * [WebPay](https://webpay.jp/) - JP
178
- * [Wirecard](http://www.wirecard.com) - DE
179
- * [WorldPay](http://www.worldpay.com) - AU, HK, UK, US
180
-
181
- ## Supported Offsite Payment Gateways
182
-
183
- * [2 Checkout](http://www.2checkout.com)
184
- * [A1Agregator](http://a1agregator.ru/) - RU
185
- * [Authorize.Net SIM](http://developer.authorize.net/api/sim/) - US
186
- * [Banca Sella GestPay](https://www.sella.it/banca/ecommerce/gestpay/gestpay.jsp)
187
- * [Chronopay](http://www.chronopay.com)
188
- * [DirecPay](http://www.timesofmoney.com/direcpay/jsp/home.jsp)
189
- * [Direct-eBanking / sofortueberweisung.de by Payment-Networks AG](https://www.payment-network.com/deb_com_en/merchantarea/home) - DE, AT, CH, BE, UK, NL
190
- * [Dotpay](http://dotpay.pl)
191
- * [Dwolla](https://www.dwolla.com/default.aspx)
192
- * [ePay](http://www.epay.dk/epay-payment-solutions/)
193
- * [First Data](https://firstdata.zendesk.com/entries/407522-first-data-global-gateway-e4sm-payment-pages-integration-manual)
194
- * [HiTRUST](http://www.hitrust.com.hk/)
195
- * [Moneybookers](http://www.moneybookers.com)
196
- * [Nochex](http://www.nochex.com)
197
- * [Paxum](https://www.paxum.com/)
198
- * [PayPal Website Payments Standard](https://www.paypal.com/cgi-bin/webscr?cmd#_wp-standard-overview-outside)
199
- * [Paysbuy](https://www.paysbuy.com/) - TH
200
- * [Platron](https://www.platron.ru/) - RU
201
- * [RBK Money](https://rbkmoney.ru/) - RU
202
- * [Robokassa](http://robokassa.ru/) - RU
203
- * [SagePay Form](http://www.sagepay.com/products_services/sage_pay_go/integration/form)
204
- * [Suomen Maksuturva](https://www.maksuturva.fi/services/vendor_services/integration_guidelines.html)
205
- * [Valitor](http://www.valitor.is/) - IS
206
- * [Verkkomaksut](http://www.verkkomaksut.fi) - FI
207
- * [WebMoney](http://www.webmoney.ru) - RU
208
- * [WebPay](http://webpay.by/)
209
- * [WorldPay](http://www.worldpay.com)
210
-
211
- ## Contributing
212
-
213
- The source code is hosted at [GitHub](http://github.com/Shopify/active_merchant), and can be fetched using:
214
-
215
- git clone git://github.com/Shopify/active_merchant.git
216
-
217
- Please see the [ActiveMerchant Guide to Contributing](http://github.com/Shopify/active_merchant/wikis/contributing) for
218
- information on adding a new gateway to ActiveMerchant.
219
-
220
- Please don't touch the CHANGELOG in your pull requests, we'll add the appropriate CHANGELOG entries
221
- at release time.
226
+ * [WePay](https://www.wepay.com/) - US
227
+ * [Wirecard](http://www.wirecard.com) - AD, CY, GI, IM, MT, RO, CH, AT, DK, GR, IT, MC, SM, TR, BE, EE, HU, LV, NL, SK, GB, BG, FI, IS, LI, NO, SI, VA, FR, IL, LT, PL, ES, CZ, DE, IE, LU, PT, SE
228
+ * [Worldpay Global](http://www.worldpay.com/) - HK, GB, AU, AD, BE, CH, CY, CZ, DE, DK, ES, FI, FR, GI, GR, HU, IE, IL, IT, LI, LU, MC, MT, NL, NO, NZ, PL, PT, SE, SG, SI, SM, TR, UM, VA
229
+ * [Worldpay Online](https://online.worldpay.com/) - HK, US, GB, AU, AD, BE, CH, CY, CZ, DE, DK, ES, FI, FR, GI, GR, HU, IE, IL, IT, LI, LU, MC, MT, NL, NO, NZ, PL, PT, SE, SG, SI, SM, TR, UM, VA
230
+ * [Worldpay US](http://www.worldpay.com/us) - US
231
+
232
+ ## API stability policy
233
+
234
+ Functionality or APIs that are deprecated will be marked as such. Deprecated functionality is removed on major version changes - for example, deprecations from 2.x are removed in 3.x.
@@ -0,0 +1,22 @@
1
+ module ActiveMerchant #:nodoc:
2
+ module Billing #:nodoc:
3
+ class ApplePayPaymentToken < PaymentToken
4
+ # This is a representation of the token object specified here:
5
+ # https://developer.apple.com/library/ios/documentation/PassKit/Reference/PKPaymentToken_Ref/
6
+ # https://developer.apple.com/library/IOs//documentation/PassKit/Reference/PaymentTokenJSON/PaymentTokenJSON.html
7
+
8
+ attr_reader :payment_instrument_name, :payment_network
9
+ attr_accessor :transaction_identifier
10
+
11
+ def initialize(payment_data, options = {})
12
+ super
13
+ @payment_instrument_name = @metadata[:payment_instrument_name]
14
+ @payment_network = @metadata[:payment_network]
15
+ end
16
+
17
+ def type
18
+ 'apple_pay'
19
+ end
20
+ end
21
+ end
22
+ end
@@ -1,24 +1,21 @@
1
1
  module ActiveMerchant #:nodoc:
2
2
  module Billing #:nodoc:
3
3
  module Base
4
- # Set ActiveMerchant gateways in test mode.
5
- #
6
- # ActiveMerchant::Billing::Base.gateway_mode = :test
7
- mattr_accessor :gateway_mode
4
+ GATEWAY_MODE_DEPRECATION_MESSAGE = 'Base#gateway_mode is deprecated in favor of Base#mode and will be removed in a future version'
8
5
 
9
- # Set ActiveMerchant integrations in test mode.
6
+ # Set ActiveMerchant gateways in test mode.
10
7
  #
11
- # ActiveMerchant::Billing::Base.integration_mode = :test
12
- mattr_accessor :integration_mode
13
-
14
- # Set both the mode of both the gateways and integrations
15
- # at once
16
- mattr_reader :mode
8
+ # ActiveMerchant::Billing::Base.mode = :test
9
+ mattr_accessor :mode
17
10
 
18
- def self.mode=(mode)
11
+ def self.gateway_mode=(mode)
12
+ ActiveMerchant.deprecated(GATEWAY_MODE_DEPRECATION_MESSAGE)
19
13
  @@mode = mode
20
- self.gateway_mode = mode
21
- self.integration_mode = mode
14
+ end
15
+
16
+ def self.gateway_mode
17
+ ActiveMerchant.deprecated(GATEWAY_MODE_DEPRECATION_MESSAGE)
18
+ @@mode
22
19
  end
23
20
 
24
21
  self.mode = :production
@@ -31,8 +28,15 @@ module ActiveMerchant #:nodoc:
31
28
  #
32
29
  # ActiveMerchant::Billing::Base.gateway('moneris').new
33
30
  def self.gateway(name)
34
- raise NameError if (name_str = name.to_s.downcase).blank?
35
- Billing.const_get("#{name_str}_gateway".camelize)
31
+ name_str = name.to_s.strip.downcase
32
+
33
+ raise(ArgumentError, 'A gateway provider must be specified') if name_str.blank?
34
+
35
+ begin
36
+ Billing.const_get("#{name_str}_gateway".camelize)
37
+ rescue
38
+ raise ArgumentError, "The specified gateway is not valid (#{name_str})"
39
+ end
36
40
  end
37
41
 
38
42
  # Return the matching integration module
@@ -50,7 +54,7 @@ module ActiveMerchant #:nodoc:
50
54
 
51
55
  # A check to see if we're in test mode
52
56
  def self.test?
53
- self.gateway_mode == :test
57
+ mode == :test
54
58
  end
55
59
  end
56
60
  end