Skip to content
Snippets Groups Projects
Commit 1496975c authored by Jan Steffen's avatar Jan Steffen Committed by Sascha Grossenbacher
Browse files

Issue #3005639 by megadesk3000: $post_data['useAlias'] missing if not configured

parent 49c267e8
No related branches found
No related tags found
No related merge requests found
......@@ -364,8 +364,7 @@ class Datatrans extends OffsitePaymentGatewayBase {
$payment->save();
// Create a payment method if we use alias.
// @todo Figure out if that's the right approach indeed.
if ($post_data['useAlias'] === 'true') {
if (isset($post_data['useAlias']) && $post_data['useAlias'] === 'true') {
$payment_method = $this->createPaymentMethod($post_data);
$order->set('payment_method', $payment_method);
$order->save();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment