Skip to content

Commit

Permalink
feat(pspdkcartrepository): use country iso for cc (#263)
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianSDV authored Jul 16, 2024
1 parent 53c5eab commit f627a21
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Pdk/Cart/Repository/PsPdkCartRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
use MyParcelNL\Pdk\App\Cart\Repository\AbstractPdkCartRepository;
use MyParcelNL\Pdk\App\Order\Contract\PdkProductRepositoryInterface;
use MyParcelNL\Pdk\Storage\Contract\StorageInterface;
use PrestaShop\PrestaShop\Adapter\Entity\Country;

class PsPdkCartRepository extends AbstractPdkCartRepository
{
Expand Down Expand Up @@ -56,7 +57,7 @@ public function get($input): PdkCart
'orderVat' => '',
'shippingMethod' => [
'shippingAddress' => [
'cc' => $address->country,
'cc' => Country::getIsoById($address->id_country),
'postalCode' => $address->postcode,
'fullStreet' => $address->address1,
],
Expand Down

0 comments on commit f627a21

Please sign in to comment.