django-oscar-paypal icon indicating copy to clipboard operation
django-oscar-paypal copied to clipboard

Better integration with PayPal's address validation

Open m4l opened this issue 10 years ago • 1 comments
trafficstars

When trying to checkout with a US address leaving the 'state' field empty (not marked as required), I get:

An error occurred communicating with PayPal

After adding the logger:

    'paypal.express': {
        'handlers': ['console', 'file'],
        'propagate': True,
        'level': 'DEBUG',
    },

I can see paypal returning errors like:

The field Shipping Address State is required

or

A match of the Shipping Address City, State, and Postal Code failed.

Could we display those error messages while redirecting to the address input page?

m4l avatar Dec 09 '14 13:12 m4l

I think so, although it might be tricky to distinguish messages that are suitable for an end-user (like the above one). I'll have a look.

codeinthehole avatar Dec 10 '14 21:12 codeinthehole