I created a sandbox account to test the integration, but the demo setting seems to not be working.

This is a patch to redirect to the sandbox checkout page when using the demo setting.

CommentFileSizeAuthor
sandbox_checkout.patch814 bytesjackbravo

Comments

jackbravo’s picture

Status: Needs review » Fixed

This was fixed by #2485041

nikhil banait’s picture

Status: Fixed » Needs work

Hi,

I just used this patch for testing using 2checkout sandbox demo account and tried using this patch but found that the key used 'one_page_checkout' is undefined. When I looked in the code to verify, i too was not able to find the key in the code.

Kindly fix this issue.

jackbravo’s picture

The one_page_checkout variable was removed because 2checkout no longer used. This patch is no longer needed. Instead, we added a sandbox configuration variable that is used like this in the code:

function commerce_2checkout_server_url ($settings) {                            
  return $settings['sandbox'] ? 'https://sandbox.2checkout.com/checkout/purchase' : 'https://www.2checkout.com/checkout/purchase';
}                                                                               

If you download the latest release and set sandbox to true it should work.

jackbravo’s picture

Status: Needs work » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.