I am using PayPal adaptive payment. I want to send shipping address of sender to reciever. I am doing following things
First I am getting the approval key from sender with Preapproval
API
Then, i am using PAY
Create
API.
This are the paramters
:actionType => "CREATE", cancelUrl: 'https://www.example.com/paypal_cancelurl', returnUrl: 'https://www.example.com/paypal_successurl', :currencyCode => "USD", :preapprovalKey => preapproval_key, :receiverList => { :receiver => [{ :amount => total, :email => reciever@example.com }] }
After getting paypal
paykey
from step 2, i am using Set Payment Option
API . I am passing following information
:payKey => paykey, :displayOptions => { :businessName => "Example Site" }, :senderOptions => { :shippingAddress => { :addresseeName => sender_name :street1 => sender_street, :city => sender_city, :state => sender_state, :zip => sender_zip, :country => "US" } }
Lastly, I am executing payment with Execute Pay
API.
Everything is fine but when reciever review this payment in paypal screen, he don't see the shipping address which i sent to him. His paypal screen say that the sender has no shipping address.
I cross checked, fetched the Payment Details
with Payment Details
API , found that shipping
address is there, strange?
What i am missing, why shipping address is not visible in paypal screen.?
Update: all above flow is done on sandbox.I'm not sure this matters but thought to mention it.
运输选项必须能够在嵌入式付款流程中工作,您的请求有效负载看起来还不错,并且您只需要按照以下说明使用JS灯箱或微型打印机修改重定向代码: 如何使用自适应付款创建嵌入式付款流程
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.