We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I ask if it is possible to make this change.
File \vendor\omnipay\paypal\src\Message\RestAuthorizeRequest.php Line 254 ADD:
$shipping_address = $this->getShippingAddress(); if ($shipping_address) { $data['transactions'][0]['item_list']["shipping_address"] = $shipping_address; }
File \vendor\omnipay\common\src\Common\Message\AbstractRequest.php -- Line 541 ADD:
/** * Custom Shipping Address */ public function getShippingAddress() { return $this->getParameter('shipping_address'); } /** * Set Shipping Address * @return $this */ public function setShippingAddress($value) { return $this->setParameter('shipping_address', $value); }
So in my controller I can call "purchase" method with custom shipping_addres :
$response = $this->gateway->purchase([ 'transactionId' => $myIdTransaction 'amount' => $tot_payment, 'currency' => $currency, 'returnUrl' => $myurl, 'cancelUrl' => $myCancelUrl, 'shipping_address' => [ "line1"=> "111 First Street", "city"=> "Saratoga", "country_code"=> "US", "postal_code"=> "95070", "state"=> "CA" ] ])->send();
It's work for me. Thanks
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I ask if it is possible to make this change.
File \vendor\omnipay\paypal\src\Message\RestAuthorizeRequest.php Line 254 ADD:
File \vendor\omnipay\common\src\Common\Message\AbstractRequest.php -- Line 541 ADD:
So in my controller I can call "purchase" method with custom shipping_addres :
$response = $this->gateway->purchase([
'transactionId' => $myIdTransaction
'amount' => $tot_payment,
'currency' => $currency,
'returnUrl' => $myurl,
'cancelUrl' => $myCancelUrl,
'shipping_address' => [
"line1"=> "111 First Street",
"city"=> "Saratoga",
"country_code"=> "US",
"postal_code"=> "95070",
"state"=> "CA"
]
])->send();
It's work for me.
Thanks
The text was updated successfully, but these errors were encountered: