Skip to content

Commit

Permalink
Improvement: Move billingEmail to billingAddress.email
Browse files Browse the repository at this point in the history
  • Loading branch information
michielgerritsen committed Jan 27, 2025
1 parent edfeaba commit ae20083
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Model/Client/Payments.php
Original file line number Diff line number Diff line change
Expand Up @@ -233,12 +233,12 @@ public function startTransaction(OrderInterface $order, $mollieApi)
}

if ($method == 'banktransfer') {
$paymentData['billingEmail'] = $order->getCustomerEmail();
$paymentData['billingAddress']['email'] = $order->getCustomerEmail();
$paymentData['dueDate'] = $this->mollieHelper->getBanktransferDueDate($storeId);
}

if ($method == 'przelewy24') {
$paymentData['billingEmail'] = $order->getCustomerEmail();
$paymentData['billingAddress']['email'] = $order->getCustomerEmail();
}

$paymentData = $this->buildTransaction->execute($order, static::CHECKOUT_TYPE, $paymentData);
Expand Down

0 comments on commit ae20083

Please sign in to comment.