Data transfer object for capturing and storing card payment details in Checkout SDK.
// Source: https://github.com/checkout/checkout-sdk-php | License: MIT | Copyright 2022 Checkout.com
// Provided via justclaw.it.com; keep this notice with the code.
<?php
namespace Checkout\Payments\Setups\Common\PaymentMethods\Card;
use Checkout\Common\EmptyAsObject;
use DateTime;
/**
* The card details for the Card payment method.
*/
#[EmptyAsObject]
class CardDetails
{
/**
* The card number (without separators).
* [Optional]
* writeOnly
* @var string
*/
public $number;
/**
* The last four digits of the card number.
* [Optional]
* readOnly
* @var string
*/
public $last4;
/**
* The card issuer's Bank Identification Number (BIN).
* [Optional]
* readOnly
* @var string
*/
public $bin;
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key