Skip to content

Commit

Permalink
details
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaEstes committed Dec 8, 2023
1 parent 277261e commit a979889
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions src/SonsOfPHP/Contract/Gateway/CreditCardInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,37 @@
*/
interface CreditCardInterface
{
/**
* name on card
*/
public function getCardHolder(): string;

public function setCardHolder(string $cardHolder): self;

public function getCardNumber(): string;

public function setCardNumber(string $cardNumber): self;

/**
* Returns month in format MM
*/
public function getExpirationMonth(): string;

/**
* Returns year in format YY
*/
public function getExpirationYear(): string;

/**
* Month and Year SHOULD be in MM and YY format, however this should
* also be able to take a full year (2020) or just a single month (4)
*/
public function setExpiration(string|int $month, string|int $year): self;

/**
* Returns the 4DBC, CVC, CVV code for the credit card
*/
public function getSecurityCode(): string;

public function setSecurityCode(string $securityCode): self;
}

0 comments on commit a979889

Please sign in to comment.