Skip to content

Commit

Permalink
fix: codeclimate issues
Browse files Browse the repository at this point in the history
  • Loading branch information
devaguia committed Mar 7, 2024
1 parent 304f0ee commit 32617fd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/utils/PaymentProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -1123,7 +1123,8 @@ protected function create_bill_meta_for_order($bill)
$charges = end($bill['charges']);

$bill_meta['bank_slip_url'] = $charges['print_url'] ?? '';
if ($this->payment_method_code() === 'pix' && isset($charges['last_transaction']['gateway_response_fields'])) {
if ($this->payment_method_code() === 'pix'
&& isset($charges['last_transaction']['gateway_response_fields'])) {
$transaction = $charges['last_transaction']['gateway_response_fields'];

$bill_meta['charge_id'] = $charges['id'];
Expand Down

0 comments on commit 32617fd

Please sign in to comment.