forked from LiveCarta/PayPal-PHP-Server-SDK
Release 0.7.0
Beta Release 0.7.0 including: - Bug fixes - Updated model/function names - Updated models to reflect changes in APIs
This commit is contained in:
@@ -10,6 +10,7 @@ declare(strict_types=1);
|
||||
|
||||
namespace PaypalServerSdkLib\Models;
|
||||
|
||||
use PaypalServerSdkLib\ApiHelper;
|
||||
use stdClass;
|
||||
|
||||
/**
|
||||
@@ -49,12 +50,10 @@ class OrderAuthorizeRequestPaymentSource implements \JsonSerializable
|
||||
|
||||
/**
|
||||
* Returns Card.
|
||||
* The payment card to use to fund a payment. Can be a credit or debit card.<blockquote><strong>Note:
|
||||
* </strong> Passing card number, cvv and expiry directly via the API requires <a href="https://www.
|
||||
* pcisecuritystandards.org/pci_security/completing_self_assessment"> PCI SAQ D compliance</a>.
|
||||
* <br>*PayPal offers a mechanism by which you do not have to take on the <strong>PCI SAQ D</strong>
|
||||
* burden by using hosted fields - refer to <a href="https://developer.paypal.
|
||||
* com/docs/checkout/advanced/integrate/">this Integration Guide</a>*.</blockquote>
|
||||
* The payment card to use to fund a payment. Can be a credit or debit card. Note: Passing card number,
|
||||
* cvv and expiry directly via the API requires PCI SAQ D compliance. *PayPal offers a mechanism by
|
||||
* which you do not have to take on the PCI SAQ D burden by using hosted fields - refer to this
|
||||
* Integration Guide*.
|
||||
*/
|
||||
public function getCard(): ?CardRequest
|
||||
{
|
||||
@@ -63,12 +62,10 @@ class OrderAuthorizeRequestPaymentSource implements \JsonSerializable
|
||||
|
||||
/**
|
||||
* Sets Card.
|
||||
* The payment card to use to fund a payment. Can be a credit or debit card.<blockquote><strong>Note:
|
||||
* </strong> Passing card number, cvv and expiry directly via the API requires <a href="https://www.
|
||||
* pcisecuritystandards.org/pci_security/completing_self_assessment"> PCI SAQ D compliance</a>.
|
||||
* <br>*PayPal offers a mechanism by which you do not have to take on the <strong>PCI SAQ D</strong>
|
||||
* burden by using hosted fields - refer to <a href="https://developer.paypal.
|
||||
* com/docs/checkout/advanced/integrate/">this Integration Guide</a>*.</blockquote>
|
||||
* The payment card to use to fund a payment. Can be a credit or debit card. Note: Passing card number,
|
||||
* cvv and expiry directly via the API requires PCI SAQ D compliance. *PayPal offers a mechanism by
|
||||
* which you do not have to take on the PCI SAQ D burden by using hosted fields - refer to this
|
||||
* Integration Guide*.
|
||||
*
|
||||
* @maps card
|
||||
*/
|
||||
@@ -177,6 +174,26 @@ class OrderAuthorizeRequestPaymentSource implements \JsonSerializable
|
||||
$this->venmo = $venmo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Converts the OrderAuthorizeRequestPaymentSource object to a human-readable string representation.
|
||||
*
|
||||
* @return string The string representation of the OrderAuthorizeRequestPaymentSource object.
|
||||
*/
|
||||
public function __toString(): string
|
||||
{
|
||||
return ApiHelper::stringify(
|
||||
'OrderAuthorizeRequestPaymentSource',
|
||||
[
|
||||
'card' => $this->card,
|
||||
'token' => $this->token,
|
||||
'paypal' => $this->paypal,
|
||||
'applePay' => $this->applePay,
|
||||
'googlePay' => $this->googlePay,
|
||||
'venmo' => $this->venmo
|
||||
]
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Encode this object to JSON
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user