In my application I wish to integrate 2Checkout payment gateway in ruby application with my sandbox account. I need to change https://www.2checkout.com/checkout/purchase this url to 'https://sandbox.2checkout.com/checkout/purchase' how can I change that and how to give MD5_HASH in my application
please some body help me
I have solved this issue by just creating a config/initializers in that 2checkout.rb and mentioned there a single line i.e
Twocheckout::Checkout.sandbox(true);
By this we can redirect to URL of sandbox.2checkout.com from your test account
If you are using 2checkout sandbox account for test integration in ruby application you have follow the above else you may get error of PE:101 when ever you try to redirect from your cart to 2checkout website
This error take place due to when you does not mention sandbox(true) it will consider as live application and it tries to redirect to live site this is reason for giving sandbox(true) if you want to test through sandbox account
Hope this is will help you