Skip to content

Commit

Permalink
Add display_name property (#257)
Browse files Browse the repository at this point in the history
  • Loading branch information
armando-rodriguez-cko authored Jul 2, 2024
1 parent c5528fe commit 2cca2a1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/Checkout/Payments/Hosted/HostedPaymentsSessionRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ class HostedPaymentsSessionRequest
*/
public $description;

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

/**
* @var CustomerRequest
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ private function createHostedPaymentsRequest()
$hostedPaymentRequest->reference = "reference";
$hostedPaymentRequest->currency = Currency::$GBP;
$hostedPaymentRequest->description = "Payment for Gold Necklace";
$hostedPaymentRequest->display_name = "Merchant Name";
$hostedPaymentRequest->customer = $customerRequest;
$hostedPaymentRequest->shipping = $shippingDetails;
$hostedPaymentRequest->billing = $billingInformation;
Expand Down

0 comments on commit 2cca2a1

Please sign in to comment.