Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions lib/Checkout/Payments/ProcessingSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -240,4 +240,14 @@
*/
public $purpose;

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

Check warning on line 246 in lib/Checkout/Payments/ProcessingSettings.php

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Rename this field "$affiliate_id" to match the regular expression ^[a-z][a-zA-Z0-9]*$.

See more on https://sonarcloud.io/project/issues?id=checkout_checkout-sdk-php&issues=AZrFZt9pSchGjxeKocZ7&open=AZrFZt9pSchGjxeKocZ7&pullRequest=294

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

Check warning on line 251 in lib/Checkout/Payments/ProcessingSettings.php

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Rename this field "$affiliate_url" to match the regular expression ^[a-z][a-zA-Z0-9]*$.

See more on https://sonarcloud.io/project/issues?id=checkout_checkout-sdk-php&issues=AZrFZt9pSchGjxeKocZ8&open=AZrFZt9pSchGjxeKocZ8&pullRequest=294

}
10 changes: 10 additions & 0 deletions lib/Checkout/Payments/Product.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@

class Product
{
/**
* @var string
*/
public $type;

/**
* @var string value of ProductSubType
*/
public $sub_type;

Check warning on line 15 in lib/Checkout/Payments/Product.php

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Rename this field "$sub_type" to match the regular expression ^[a-z][a-zA-Z0-9]*$.

See more on https://sonarcloud.io/project/issues?id=checkout_checkout-sdk-php&issues=AZrFZt7OSchGjxeKocZ6&open=AZrFZt7OSchGjxeKocZ6&pullRequest=294

/**
* @var string
*/
Expand Down
12 changes: 12 additions & 0 deletions lib/Checkout/Payments/ProductSubType.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php

namespace Checkout\Payments;

class ProductSubType
{
public static $blockchain = "blockchain";
public static $cbdc = "cbdc";
public static $cryptocurrency = "cryptocurrency";
public static $nft = "nft";
public static $stablecoin = "stablecoin";
}
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,8 @@ public function shouldSubmitPaymentSession()
$request = $this->createPaymentSubmitRequest();

try {
$response = $this->checkoutApi->getPaymentSessionsClient()->submitPaymentSession(self::$paymentSessionId, $request);
$response =
$this->checkoutApi->getPaymentSessionsClient()->submitPaymentSession(self::$paymentSessionId, $request);

// Validate successful submission response
$this->assertNotNull($response);
Expand Down