ruby on rails - shipping address is not visible in paypal screen while using adaptive payment -
i using paypal adaptive payment. want send shipping address of sender reciever. doing following things
first getting approval key sender
preapproval
apithen, using
pay
create
api.this 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
step 2, usingset payment option
api . 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, executing payment
execute pay
api.
everything fine when reciever review payment in paypal screen, don't see shipping address sent him. paypal screen sender has no shipping address.
i cross checked, fetched payment details
payment details
api, found shipping
address there, strange?
what missing, why shipping address not visible in paypal screen.?
update: above flow done on sandbox.i'm not sure matters thought mention it.
the shipping options have work in embedded payment flow, request payload looks fine, , need modify redirection codes js lightbox or minibrowers, per instruction: how create embedded payment flow using adaptive payments
Comments
Post a Comment