It has been great getting this module working together with Payflow Pro fraud filters, but one of the filters keeps getting triggered by the odd formatting of the billing address being submitted to PayPal.

Despite the billing address appearing the review page as:

ORGANIZATION
JOHN SMITH
123 ANYWHERE PL
GREATCITY, ST 12345

...it is being submitted to PayPal as the following

JOHN SMITH
123 ANYWHERE PL
GREATCITY, ST 12345 US

This causes the "Billing USPS Validation Failure" filter to trigger every time. The transaction lands in the fraud review queue, and then it has to be accepted (and the order status has to be changed separately in Ubercart order administration) for each order.

I've browsed the code but I admit I'm having a hard time locating where or how the country abbreviation is making it into the string being submitted to PayPal. We could disable this particular filter, but would love to know if there's another workaround. Could someone help me figure out how to fix this? I am running Ubercart 6.x-2.0-rc6. Thanks very much.

Comments

kwinters’s picture

Search uc_payflowpro.module for /country. It is in a few places, but chances are that function _uc_payflowpro_invoice_xml is the one you're actually using.

It seems strange that the country would trigger the fraud service, since it's sent as a separate field rather than appended to the zip, etc. However, it won't hurt to give it a shot, just blank that part out and not send the country code.

If that makes it start working, a permanent fix will take some thought. The country code would be required for international orders.

lgb’s picture

I found this--thanks a lot. For simplicity's sake (since I'm drowning in post-launch details), I'm just disabling this filter on the PayPal side for now. If I get around to a code fix, I will post it. Thanks again.

kwinters’s picture

Status: Active » Postponed (maintainer needs more info)

Alrighty, I'll just let this sit for the time being. Let me know if not sending the country makes the filter not trigger.

kwinters’s picture

lgb, did you ever get this filter to work, or is it still disabled?