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
PreapprovalAPIThen, i am using
PAYCreateAPI.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 => [email protected] }] }After getting
paypalpaykeyfrom step 2, i am usingSet Payment OptionAPI . 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 PayAPI.
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.
The shipping options would have to work in the embedded payment flow, your request payload looks fine, and you would just need to modify the redirection codes with JS lightbox or minibrowers, as per this instruction: How to Create an Embedded Payment Flow Using Adaptive Payments