How to transfer a delivery address when calling PayPal API / payments / payments

I use the PayPal API to process PayPal payments in my electronic system.

1: Get a token

v1 / oauth2 / marker

2: Create payment

v1 / payment / payment

3: make payment

v1 / payments / payments / -ID- / fulfillment /

After step number 2, I will send the user to the PayPal page to enter and confirm the payment. The user displays their own delivery address. But I want to redefine this address with the address entered by the user at the cash desk of my online store.

I tried setting payer_info -> shipping_address with a delivery address object. There are no errors in paypal, but the delivery address is the same.

https://developer.paypal.com/webapps/developer/docs/api/#shippingaddress-object

+5
source share
2 answers

This is the only trading solution in the USA. Take a look at the Paypal Developer Documentation here .

When Paypal arrives, you can almost always override the settings that you just need to delve into the documentation and find the right combination. I think you need to find the second option:

Use the address_override./ variable. See Overriding addresses stored in PayPal.

Now I am in class, so I can help later if you need, but in order for us to really help you, we need to see code samples of what you are already trying.

EDIT
So do what already sounds right, just add override commands where necessary.

Please add your code if you still have problems.

+2
source

Source: https://habr.com/ru/post/1239782/


All Articles