I've hit a problem when I've disabled the profile pane in commerce.

I disabled this to streamline the checkout process. Once I'm redirected out to World Pay, they ask for the address details, which I appreciate can be populated by this module. Another good reason for disabling this pane is consumer protection. My site should only be collecting the information it needs. World Pay needs the address to verify the card transaction, so they can collect the data on their secure servers, I don't want the responsibility.

Unfortunately, there's code that expects it to be there, and as such, the page that redirects to World Pay flashes past with a PHP warning due to this information being missing.

I've wrapper some code in a simple check and provided empty data to prevent the errors. It's a simple patch so shouldn't impact anything else too much.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

darksnow created an issue. See original summary.

darksnow’s picture

And the patch I should of attached to the issue

darksnow’s picture

Status: Active » Needs review