Search code examples
2checkout

How to make 2checkout's demo machine return to my local machine?


I set the return URL to:

 <input type="hidden" name="x_receipt_link_url" value="http://localhost/callback" />

Problem is, it still redirects me to the server. I was hoping demo mode would make localhost an acceptable return URL. I can't change the return URL for the current live system, because it is currently in USE by the live system. So how do I test my new implementation using the same account?


Solution

  • 2Checkout only allows the return URL to be another location on your domain. So I made a php file that basically grabs all the input 2checkout posts to it, and then pass it on to localhost. This is fine for testing purposes for me.