Skip to content
New issue

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

feat(pspdkcartrepository): use country iso for cc #263

Merged
merged 1 commit into from
Jul 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@
'orderVat' => '',
'shippingMethod' => [
'shippingAddress' => [
'cc' => $address->country,
'cc' => Country::getIsoById($address->id_country),

Check warning on line 60 in src/Pdk/Cart/Repository/PsPdkCartRepository.php

View check run for this annotation

Codecov / codecov/patch

src/Pdk/Cart/Repository/PsPdkCartRepository.php#L60

Added line #L60 was not covered by tests
'postalCode' => $address->postcode,
'fullStreet' => $address->address1,
],
Expand Down
Loading