I am trying to integrate payumoney payment gateway to my rails application.
I added the gem active_merchant_payu_in
,but after this am unable to start the app..and getting this console error "warning: already initialized constant APP_PATH "
.. I found that this module is from activemerchant
so I installed that in my gemfile instead of this and now my app starts.
As per docs this is how we setup activemerchant
ActiveMerchant::Billing::Base.mode = :test
::SAMPLEGATEWAY = ActiveMerchant::Billing::TrustCommerceGateway.new(
:login => 'TestMerchant',
:password => 'password')
So for payu I changed the gateway as below, but what should i pass instead of :login
and :password
in below code?
ActiveMerchant::Billing::Base.mode = :test
::GATEWAY = ActiveMerchant::Billing::PayuInGateway.new(
)
For payumoney what we all have is
Merchant ID, Merchant Key, Merchant Salt
I can't find enough documentation on it anywhere..Could someone shed some light into this topic??