Skip to content

Commit

Permalink
fix: lower case in di.xml and address getting wrong info
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiano-mallmann committed Jul 31, 2023
1 parent 861da47 commit 3f9ccec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ public function getCustomerAddressNumber($shipping)
public function getCustomerAddressComplement($shipping)
{
if ($shipping) {
return !$this->getShippingAddressAttribute($this->getConfig()->getCustomerAddressDistrict()) ? '' : $this->getShippingAddressAttribute($this->getConfig()->getCustomerAddressComplement());
return !$this->getShippingAddressAttribute($this->getConfig()->getCustomerAddressComplement()) ? 'street_4' : $this->getConfig()->getCustomerAddressComplement();
}

return !$this->getBillingAddressAttribute($this->getConfig()->getCustomerAddressDistrict()) ? '' : $this->getShippingAddressAttribute($this->getConfig()->getCustomerAddressComplement());
return !$this->getBillingAddressAttribute($this->getConfig()->getCustomerAddressComplement()) ? 'street_4' : $this->getConfig()->getCustomerAddressComplement();
}

/**
Expand Down
2 changes: 1 addition & 1 deletion etc/di.xml
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@
<virtualType name="PagarmeBilletAuthorizeCommand" type="Pagarme\Pagarme\Gateway\Transaction\Base\Command\AuthorizeCommand">
<arguments>
<argument name="requestBuilder" xsi:type="object">Pagarme\Pagarme\Gateway\Transaction\Billet\ResourceGateway\Create\RequestBuilder</argument>
<argument name="responseHandler" xsi:type="object">PagarmebilletCommandResponseHandlerPool</argument>
<argument name="responseHandler" xsi:type="object">PagarmeBilletCommandResponseHandlerPool</argument>
<argument name="validator" xsi:type="object">Pagarme\Pagarme\Gateway\Transaction\Billet\ResourceGateway\Create\Response\Validator</argument>
</arguments>
</virtualType>
Expand Down

0 comments on commit 3f9ccec

Please sign in to comment.