From afd3f4a7b73bf68f44bbc0e8973ff020250375b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Armando=20Rodr=C3=ADguez?= <127134616+armando-rodriguez-cko@users.noreply.github.com> Date: Wed, 2 Oct 2024 13:13:11 +0200 Subject: [PATCH] Fix Payment Session Request --- .../Sessions/PaymentSessionsRequest.php | 21 ++++++++++++++++++- .../RequestApmPaymentsIntegrationTest.php | 2 +- 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/lib/Checkout/Payments/Sessions/PaymentSessionsRequest.php b/lib/Checkout/Payments/Sessions/PaymentSessionsRequest.php index c239a9f..a174a8f 100644 --- a/lib/Checkout/Payments/Sessions/PaymentSessionsRequest.php +++ b/lib/Checkout/Payments/Sessions/PaymentSessionsRequest.php @@ -2,13 +2,17 @@ namespace Checkout\Payments\Sessions; +use Checkout\Payments\Request\PaymentRetryRequest; +use Checkout\Payments\RiskRequest; +use Checkout\Payments\Sender\PaymentSender; use Checkout\Payments\ShippingDetails; use Checkout\Payments\PaymentRecipient; use Checkout\Payments\BillingDescriptor; use Checkout\Payments\BillingInformation; use Checkout\Payments\ProcessingSettings; use Checkout\Payments\PaymentCustomerRequest; -use Checkout\Payments\Sessions\PaymentMethodConfiguration; +use Checkout\Payments\ThreeDsRequest; +use DateTime; class PaymentSessionsRequest { @@ -67,6 +71,11 @@ class PaymentSessionsRequest */ public $processing; + /** + * @var string + */ + public $processing_channel_id; + /** * @var DateTime */ @@ -147,8 +156,18 @@ class PaymentSessionsRequest */ public $capture; + /** + * @var DateTime + */ + public $capture_on; + /** * @var string */ public $ip_address; + + /** + * @var int + */ + public $tax_amount; } diff --git a/test/Checkout/Tests/Payments/RequestApmPaymentsIntegrationTest.php b/test/Checkout/Tests/Payments/RequestApmPaymentsIntegrationTest.php index 1fe6fca..573eb51 100644 --- a/test/Checkout/Tests/Payments/RequestApmPaymentsIntegrationTest.php +++ b/test/Checkout/Tests/Payments/RequestApmPaymentsIntegrationTest.php @@ -268,7 +268,7 @@ public function shouldMakePayPalPayment() $requestSource->plan = $plan; - $product = new \Checkout\Payments\Product(); + $product = new Product(); $product->name = "laptop"; $product->unit_price = 10; $product->quantity = 1;