Skip to content

Commit

Permalink
Merge pull request #175 from myparcelnl/Fix-getPickupCountry-must-be-…
Browse files Browse the repository at this point in the history
…string

fix error about a missing PickupCountry
  • Loading branch information
RichardPerdaan authored Oct 30, 2019
2 parents c2a9870 + b5719ad commit 5aa3920
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Concerns/HasCheckoutFields.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,12 @@ public function setPickupAddressFromCheckout(?string $checkoutData)
} else {
throw new MissingFieldException('No PostNL location found in checkout data: ' . $checkoutData);
}

$this
->setPickupPostalCode($aCheckoutData['postal_code'])
->setPickupStreet($aCheckoutData['street'])
->setPickupCity($aCheckoutData['city'])
->setPickupNumber($aCheckoutData['number'])
->setPickupCountry($aCheckoutData['cc'])
->setPickupLocationName($aCheckoutData['location'])
->setPickupLocationCode($aCheckoutData['location_code']);

Expand All @@ -123,5 +123,5 @@ public function setPickupAddressFromCheckout(?string $checkoutData)
}

return $this;
}
}
}

0 comments on commit 5aa3920

Please sign in to comment.