Class: Gateway::PayuIn
- Inherits:
-
Gateway
- Object
- Gateway
- Gateway::PayuIn
- Defined in:
- app/models/gateway/payu_in.rb
Instance Method Summary collapse
- #external_payment_url ⇒ Object
-
#provider_class ⇒ Object
preference :url, :string.
Instance Method Details
#external_payment_url ⇒ Object
10 11 12 13 14 15 16 17 18 |
# File 'app/models/gateway/payu_in.rb', line 10 def external_payment_url #self.url case Rails.env when "production", "staging" 'https://secure.payu.in/_payment.php' else 'https://test.payu.in/_payment.php' end end |
#provider_class ⇒ Object
preference :url, :string
6 7 8 |
# File 'app/models/gateway/payu_in.rb', line 6 def provider_class ActiveMerchant::Billing::PayuInGateway end |