cancel
Showing results for 
Search instead for 
Did you mean: 

Internal error with included shipping information in SetPaymentOption

Options
dizlv
Contributor
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'] = {
        'addresseeName': shipping.name,
        'street1': shipping.address.line1,
        'street2': shipping.address.line2,
        'city': shipping.address.city,
        'state': shipping.address.state,
        'zip': shipping.address.postal_code,
        'country': shipping.address.country,
    }

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.