Skip to main content
5 events
when toggle format what by license comment
May 25, 2017 at 20:12 comment added Stephen McKinney Well craft commerce hard codes the paypal parameter to hide shipping when it sends the request to paypal. I had to add in a hook to modify the request data to put it back in. I couldn't get paypal to return back the shipping address in the raw gateway response, but commerce will still have the shipping address you sent to paypal stored in the order. public function commerce_modifyPaymentRequest($data){ $data['noShipping'] = 0; return $data; }
May 23, 2017 at 23:16 comment added Jeremy Daalder Good to know but how odd it doesn't return it initially. I checked our main gateway and it apparently does, although there's no facility for the customer to change it with the gateway so it's really kinda pointless there other than to check it's receiving what we think it is receiving!
May 23, 2017 at 15:48 comment added Stephen McKinney Thanks for the help, but unfortunately no, Paypal does not return the address. I ended up writing a plugin to make another request to Paypal onSaveTransaction to get the address for the order. Once this project is finished I'll post the github link here.
May 23, 2017 at 6:11 history edited Jeremy Daalder CC BY-SA 3.0
May 19, 2017 at 0:23 history answered Jeremy Daalder CC BY-SA 3.0