Showing results for 
Search instead for 
Did you mean: 

Internal error with included shipping information in SetPaymentOption

Posted on

Trying to add shipment address to adaptive payment (data is provided through our application form), but always get in response 520002 error code.


The code looks like this:


if shipping:
    settings['senderOptions']['requireShippingAddressSelection'] = True
    settings['senderOptions']['addressOverride'] = True

    settings['senderOptions']['shippingAddress'] = {
        'street1': shipping.address.line1,
        'street2': shipping.address.line2,
        'state': shipping.address.state,
        'zip': shipping.address.postal_code,

Am I missing something here? Correlation ID: 6929430dd301b

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.