2CO now has 3 modes of integration, Optional Return, Direct Return and Header Redirection. Header redirection passes variables from 2CO using $_GET. It is a relatively new integration option from 2CO released in June 2010. For many stores Direct Return will continue to be fine to use, however Header Redirection has some advantages if you have certain additional processing requirements. Read announcement from 2CO for details: http://www.2checkout.com/blog/knowledge-base/suppliers/tech-support/pass...

I propose that future editions of 2CO Payment Module for Ubercart support Header Redirection.

I'm currently trying to use Header Redirection with 6.x-2.4 and it seems to work by just replacing all instances of $_POST with $_REQUEST. However I'm not sure if that is considered sufficiently secure. Possibly instead the redirection method should be detected and then either $_POST or $_GET is used from that point forward? As far as I can tell all the variables passed by Header Redirection are the same as Direct Return, it is simply GET instead of POST.

Comments

timl’s picture

I was having problems with direct return not returning in all cases which was becoming a nightmare for credit card orders that were completed but not being marked in drupal! I've made the changes to accomodate header redirect to see if that resolves the issues. Thanks for the suggestion, I'll let you know if it works for me.

tr’s picture

Title: Support for 2CO header redirect » Support for 2Checkout header redirect
Version: 6.x-2.4 » 7.x-3.x-dev

New features should go into 7.x-3.x first.

torgospizza’s picture

Any update on this? Since we sell files, it seems the only way to efficiently process/complete orders is with a header redirect. Of course we are still on 6.x but was hoping there had been some work done, so I could look at it and work on a backport.

longwave’s picture

There is a version of the 2Checkout module on github:

https://github.com/craigchristenson/ubercart-3-2checkout

This appears to implement the Header Redirect method through $_REQUEST along with fixing #892876: Attempted unverified 2Checkout completion for this order

@torgosPizza if you could test this that would be appreciated!

torgospizza’s picture

It looks like that's for UC3 / D7, which we're not up to yet, unfortunately.

longwave’s picture

Status: Active » Fixed

Header Redirect support has been added to both branches, thanks to Craig at 2Checkout for assistance with testing.

Status: Fixed » Closed (fixed)

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