From 07feadf33f29bb4c7a30c7d93dc4743c2a16adec Mon Sep 17 00:00:00 2001 From: Alexandru Lighezan Date: Fri, 12 Apr 2024 13:39:59 +0100 Subject: [PATCH] Remove phone from payment creation request --- CHANGELOG.md | 6 ++++++ Service/Order/MakeRequest.php | 3 +-- composer.json | 2 +- etc/config.xml | 2 +- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ed21498..75eb3e4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [v1.0.10] - 2024-04-12 + +### Changed + +- Stop sending mobile number when creating payments + ## [v1.0.9] - 2024-03-22 ### Fixed diff --git a/Service/Order/MakeRequest.php b/Service/Order/MakeRequest.php index 81741d9..bb13f1b 100644 --- a/Service/Order/MakeRequest.php +++ b/Service/Order/MakeRequest.php @@ -239,8 +239,7 @@ private function prepareData(Quote $quote, string $merchantAccountId): array "name" => trim($quote->getBillingAddress()->getFirstname()) . ' ' . trim($quote->getBillingAddress()->getLastname()), - "email" => $customerEmail, - "phone" => $quote->getBillingAddress()->getTelephone() + "email" => $customerEmail ] ]; diff --git a/composer.json b/composer.json index 73fb410..2b17be2 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "truelayer/magento2", "description": "TrueLayer extension for Magento 2", "type": "magento2-module", - "version": "1.0.9", + "version": "1.0.10", "license": [ "OSL-3.0", "AFL-3.0" diff --git a/etc/config.xml b/etc/config.xml index 9b4a552..9a0dc3d 100644 --- a/etc/config.xml +++ b/etc/config.xml @@ -10,7 +10,7 @@ - 1.0.9 + 1.0.10 TrueLayerFacade TrueLayer Pay using TrueLayer