Skip to content

Commit

Permalink
Fix Payment Session Request
Browse files Browse the repository at this point in the history
  • Loading branch information
armando-rodriguez-cko committed Oct 2, 2024
1 parent 4f3cf40 commit afd3f4a
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
21 changes: 20 additions & 1 deletion lib/Checkout/Payments/Sessions/PaymentSessionsRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down Expand Up @@ -67,6 +71,11 @@ class PaymentSessionsRequest
*/
public $processing;

/**
* @var string
*/
public $processing_channel_id;

/**
* @var DateTime
*/
Expand Down Expand Up @@ -147,8 +156,18 @@ class PaymentSessionsRequest
*/
public $capture;

/**
* @var DateTime
*/
public $capture_on;

/**
* @var string
*/
public $ip_address;

/**
* @var int
*/
public $tax_amount;
}
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit afd3f4a

Please sign in to comment.