Class: ActiveMerchant::Billing::PagoFacilGateway
- Defined in:
- lib/active_merchant/billing/gateways/pago_facil.rb
Constant Summary
Constants inherited from Gateway
Gateway::CREDIT_DEPRECATION_MESSAGE, Gateway::CURRENCIES_WITHOUT_FRACTIONS, Gateway::DEBIT_CARDS, Gateway::RECURRING_DEPRECATION_MESSAGE, Gateway::STANDARD_ERROR_CODE
Instance Attribute Summary
Attributes inherited from Gateway
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ PagoFacilGateway
constructor
A new instance of PagoFacilGateway.
- #purchase(money, credit_card, options = {}) ⇒ Object
Methods inherited from Gateway
#card_brand, card_brand, #generate_unique_id, inherited, non_fractional_currency?, #scrub, supported_countries, #supported_countries, supported_countries=, supports?, #supports_network_tokenization?, #supports_scrubbing?, #test?
Methods included from CreditCardFormatting
Methods included from PostsData
included, #raw_ssl_request, #ssl_get, #ssl_post, #ssl_request
Constructor Details
#initialize(options = {}) ⇒ PagoFacilGateway
Returns a new instance of PagoFacilGateway.
14 15 16 17 |
# File 'lib/active_merchant/billing/gateways/pago_facil.rb', line 14 def initialize(={}) requires!(, :branch_id, :merchant_id, :service_id) super end |
Instance Method Details
#purchase(money, credit_card, options = {}) ⇒ Object
19 20 21 22 23 24 25 26 27 28 |
# File 'lib/active_merchant/billing/gateways/pago_facil.rb', line 19 def purchase(money, credit_card, ={}) post = {} add_invoice(post, money, ) add_payment(post, credit_card) add_address(post, ) add_customer_data(post, ) add_merchant_data(post) commit(post) end |