I am working on this now. A preliminary version should be committed within a few days.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

TR created an issue. See original summary.

  • TR committed 257b65e on
    Backport of some changes being made in [#2643682].
    
TR’s picture

Status: Active » Needs review
FileSize
35.2 KB

Here's the initial port. I'd REALLY like someone who uses 2Checkout to help me test this. I'll probably commit this as-is then cleanup problems in a separate commit - there's already too much here review.

  • TR committed 549ac16 on 8.x-4.x
    Issue #2643682 by TR: Port uc_2checkout to D8
    
TR’s picture

Assigned: TR » Unassigned
Issue tags: +beta blocker

Still looking for people with 2Checkout experience to help test this. The above patch and others have been committed, so all you have to do is install the latest 8.x-4.x of Ubercart, configure 2Checkout with your account settings, and make some test transactions.

longwave’s picture

FileSize
9.33 KB

Made some further fixes. I have tested this as far as possible on the sandbox, but as the documentation mentions, "the 'x_receipt_link_url’ parameter will only function on Live accounts. This option will not work on the Sandbox environment." - which makes this somewhat difficult to test fully.

TR’s picture

Looks good. Is there a reason to default to USA instead of the store country?

  • longwave committed 266ed37 on 8.x-4.x
    Issue #2643682: More work on porting uc_2checkout to D8
    
longwave’s picture

The notification controller definitely needs some more work, but I committed #6 with a change from 'USA' to '' for the default country, as 2Checkout will ask for the country if you leave it blank (and this case only happens if the user has not installed any countries in Ubercart, which is unlikely).

TR’s picture

Status: Needs review » Reviewed & tested by the community

I don't have a live account with 2checkout, but this works as far as I can test it. Perhaps we just mark this as fixed and deal with any issues as they are reported?

longwave’s picture

Status: Reviewed & tested by the community » Needs review
FileSize
5.32 KB

No idea if this works properly, but here are some more fixes for the notification controller.

  • longwave committed 08ae268 on 8.x-4.x
    Issue #2643682: More work on porting uc_2checkout to D8
    
longwave’s picture

Status: Needs review » Fixed

Committed, this will have to do for now.

Status: Fixed » Closed (fixed)

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