mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 09:02:12 +00:00
[Api] Changed shipping method's id to code for revisiting steps
This commit is contained in:
parent
136156b5e7
commit
6edbda3092
2 changed files with 5 additions and 5 deletions
|
|
@ -137,7 +137,7 @@ EOT;
|
|||
|
||||
$orderId = $checkoutData['order1']->getId();
|
||||
$this->addressOrder($orderId);
|
||||
$this->selectOrderShippingMethod($orderId, $checkoutData['ups']->getId());
|
||||
$this->selectOrderShippingMethod($orderId, $checkoutData['ups']->getCode());
|
||||
$this->selectOrderPaymentMethod($orderId, $checkoutData['cash_on_delivery']->getId());
|
||||
|
||||
$data =
|
||||
|
|
|
|||
|
|
@ -140,14 +140,14 @@ EOT;
|
|||
|
||||
$orderId = $checkoutData['order1']->getId();
|
||||
$this->addressOrder($orderId);
|
||||
$this->selectOrderShippingMethod($orderId, $checkoutData['ups']->getId());
|
||||
$this->selectOrderShippingMethod($orderId, $checkoutData['ups']->getCode());
|
||||
|
||||
$data =
|
||||
<<<EOT
|
||||
{
|
||||
"shipments": [
|
||||
{
|
||||
"method": {$checkoutData['dhl']->getId()}
|
||||
"method": "{$checkoutData['dhl']->getCode()}"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -170,7 +170,7 @@ EOT;
|
|||
|
||||
$orderId = $checkoutData['order1']->getId();
|
||||
$this->addressOrder($orderId);
|
||||
$this->selectOrderShippingMethod($orderId, $checkoutData['ups']->getId());
|
||||
$this->selectOrderShippingMethod($orderId, $checkoutData['ups']->getCode());
|
||||
$this->selectOrderPaymentMethod($orderId, $checkoutData['cash_on_delivery']->getId());
|
||||
|
||||
$data =
|
||||
|
|
@ -178,7 +178,7 @@ EOT;
|
|||
{
|
||||
"shipments": [
|
||||
{
|
||||
"method": {$checkoutData['dhl']->getId()}
|
||||
"method": "{$checkoutData['dhl']->getCode()}"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue