Class: Gateway::PayuIn

Inherits:
Gateway
  • Object
show all
Defined in:
app/models/gateway/payu_in.rb

Instance Method Summary collapse

Instance Method Details

#external_payment_urlObject



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_classObject

preference :url, :string



6
7
8
# File 'app/models/gateway/payu_in.rb', line 6

def provider_class
  ActiveMerchant::Billing::PayuInGateway
end