Skip to content

Commit

Permalink
Merge pull request #3549 from joostwaaijer/feature/fix-set-estimated-…
Browse files Browse the repository at this point in the history
…billing-address

Fix Attempt to read property "id" on array error
  • Loading branch information
lukeholder committed Jun 21, 2024
2 parents 2668522 + f20333a commit 84a0520
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/elements/Order.php
Original file line number Diff line number Diff line change
Expand Up @@ -3137,6 +3137,7 @@ public function setEstimatedBillingAddress(AddressElement|array|null $address):
if (!$address instanceof AddressElement) {
$addressElement = new AddressElement();
$addressElement->setAttributes($address);
$address = $addressElement;
}

$this->estimatedBillingAddressId = $address->id;
Expand Down

0 comments on commit 84a0520

Please sign in to comment.