Class: ActiveMerchant::Billing::Ipay88Gateway
- Defined in:
- lib/active_merchant/billing/gateways/ipay88.rb
Constant Summary collapse
- TEST_URL =
''
- LIVE_URL =
'https://www.ipay88.com/recurringpayment/webservice/RecurringPayment.asmx/Subscription'
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
-
#initialize(options = {}) ⇒ Ipay88Gateway
constructor
Creates a new Ipay88Gateway.
- #recurring(money, creditcard, options = {}) ⇒ Object
Methods inherited from Gateway
#card_brand, card_brand, inherited, supports?, #test?
Methods included from CreditCardFormatting
Constructor Details
#initialize(options = {}) ⇒ Ipay88Gateway
Creates a new Ipay88Gateway
The gateway requires that a valid login and password be passed in the options
hash.
Options
-
:login
– The ipay88 Merchant Code (REQUIRED) -
:password
– The ipay88 Merchant Code (REQUIRED)
28 29 30 31 32 |
# File 'lib/active_merchant/billing/gateways/ipay88.rb', line 28 def initialize( = {}) requires!(, :login, :password) @options = super end |
Instance Method Details
#recurring(money, creditcard, options = {}) ⇒ Object
34 35 36 37 38 39 40 41 42 43 44 |
# File 'lib/active_merchant/billing/gateways/ipay88.rb', line 34 def recurring(money, creditcard, = {}) post = {} add_merchant_authentication(post, ) add_invoice(post, ) add_creditcard(post, creditcard, ) add_customer_data(post, ) add_address(post, ) add_signature(post, ) recurring_commit("subscribe", post) end |