Skip to content

Commit

Permalink
Fix using undefined variable $data.
Browse files Browse the repository at this point in the history
  • Loading branch information
rvdsteege committed Jan 20, 2021
1 parent fe3d343 commit 7037c61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Extension.php
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ public function redirect_for_payment( $entry_id, $form_id ) {
}

if ( empty( $payment->method ) ) {
if ( null !== $data->get_issuer_id() ) {
if ( null !== FormidableFormsHelper::get_issuer_from_form_entry( $form_id, $entry ) ) {
$payment->method = PaymentMethods::IDEAL;
} elseif ( $gateway->payment_method_is_required() ) {
$payment->method = PaymentMethods::IDEAL;
Expand Down

0 comments on commit 7037c61

Please sign in to comment.