Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Payment on site for cash and transfer method payment can cause Fatal error #6

Open
thorin87 opened this issue Mar 11, 2022 · 0 comments

Comments

@thorin87
Copy link

Dotpay extension version: 3.1.0
OC version: 3.0.3.2
Issue: When optional API credentials aren't set in extension settings and user choose cash or transfer method payments then request to extension/payment/dotpay_next/preparing ends with Fatal error
Reason:
$payment = $this->RegisterOrder->create($hiddenFields); (/catalog/controller/extension/payment/dotpay_next.php#L142) returns false.
Next line checks for $payment !== null, so condition is true despite $payment being false. As a result $this->model_extension_payment_dotpay_info->addInstruction ends with Fatal error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant