Skip to content

Commit

Permalink
fix: quantidade de linhas na função change_payment_to_credit_card
Browse files Browse the repository at this point in the history
  • Loading branch information
lucastgama committed Nov 29, 2024
1 parent 7406f2c commit 5fa11da
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/utils/PaymentProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -321,11 +321,8 @@ private function change_payment_to_credit_card()
}

$fields = $this->fields_credit_card();

foreach ($fields as $key => &$value) {
$value = filter_input(INPUT_POST, $key) !== null
? filter_input(INPUT_POST, $key)
: $value;
$value = filter_input(INPUT_POST, $key) !== null ? filter_input(INPUT_POST, $key) : $value;
}

$payment_profile = $this->build_payment_profile($user_vindi_id, $fields);
Expand Down

0 comments on commit 5fa11da

Please sign in to comment.