Skip to content

Commit

Permalink
BP-2792 Fix In3 API V3 (#786)
Browse files Browse the repository at this point in the history
Co-authored-by: Ivascu Madalin <[email protected]>
  • Loading branch information
harli91 and Ivascu Madalin authored Aug 30, 2023
1 parent 8b28b0f commit 3f23cbb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Model/Method/Capayable/In3V3Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,11 @@ protected function getBillingCustomer(
$this->row($billingAddress->getCountryId(), 'CountryCode', 'BillingCustomer', $i),
];

if (strlen($streetData['number_addition']) > 0) {
if (strlen((string)$streetData['number_addition']) > 0) {
$data[] = $this->row($streetData['number_addition'], 'StreetNumberSuffix', 'BillingCustomer', $i);
}

if(strlen($billingAddress->getRegion())) {
if(strlen((string)$billingAddress->getRegion())) {
$data[] = $this->row($billingAddress->getRegion(), 'Region', 'BillingCustomer', $i);
}

Expand Down

0 comments on commit 3f23cbb

Please sign in to comment.