A Credit Card is a representation of a payment method. They exist independently of transactions, but they are required to be associated with a transaction when a transaction is created.

👍

Credit Card and CVV numbers are never stored

PaidYET performs a tokenization on each credit card that is received through the API. This means that the original card number will never be retrievable after it is tokenized. CVV numbers are never tokenized and never stored.

Properties

PropertyTypeDescriptionExample
idNumber(integer)A read-only unique identifier.1234567890
external_idStringUnique identifier used to look up customer. This is not generated by PaidYET."1234567890"
typeStringVisa, MasterCard, etc."MasterCard"
nameStringName on the card."Firstname M Lastname"
emailString(email format)Email address associated with the card."[email protected]"
descriptionStringA description about the card."This is an example card."
billing_addressObject(Address object)The billing address for the card.See Address Example
cvvNumber(integer)CVV (not saved, not returned)000
fundingString"credit", "debit", "prepaid", "charge", or "deferred debit""credit"
product_segmentString"consumer", "business", "commercial", "government", "all", or "other""all"
product_nameStringType of card."Visa Classic"
issuing_countryStringCountry code of account."US"
issuerStringName of the issuer."Visa"
custom_fieldsArray(of Custom Field objects)Custom Fields associated with the Transaction.See Custom Field Example
token*StringThe token representing a provided card's number and exp. Generated by PaidYET."abcd1234"
number**StringThe card number."4111111111111111"
exp**String(MM/YY)Date in the format 'MM/YY'."01/23"
binNumber(6 or 8 digit integer)Bank Identification Number.516693
last4String(XXXXXXXXXXXXNNNN)The last for digits of the card number (NNNN) with all preceding digits redacted with an 'X' character."XXXXXXXXXXXX1234"

Requirements

*Required when creating a Transaction without specifying the credit card's number or exp.

**Required when creating a new Card. Required when creating a Transaction without specifying the credit card's token.

Examples

Non-Tokenized

This example Credit Card shows all possible properties of a non-tokenized credit card.

{
  "id": 1234567890,
  "external_id": "1234567890",
  "type": "MasterCard",
  "name": "Firstname M Lastname",
  "email": "[email protected]",
  "description": "This is an example card.",
  "billing_address": {
    "id": 1234567890,
    "address": "1234 Test Street S.",
    "city": "Test City",
    "state": "CA",
    "postal": 50001
  },
  "cvv": 0,
  "funding": "credit",
  "product_segment": "all",
  "product_name": "Visa Classic",
  "issuing_country": "US",
  "issuer": "Visa",
  "custom_fields": [
    {
      "id": 1234567890,
      "key": "shoesize",
      "value": "9"
    }
  ],
  "number": "4111111111111111",
  "exp": "01/23",
  "bin": 516693,
  "last4": "XXXXXXXXXXXX1111"
}

Tokenized

This example Credit Card shows all possible properties of a tokenized credit card. A non-tokenized card would have the number and exp properties instead of the token property.

{
  "id": 1234567890,
  "external_id": "1234567890",
  "type": "MasterCard",
  "name": "Firstname M Lastname",
  "email": "[email protected]",
  "description": "This is an example card.",
  "billing_address": {
    "id": 1234567890,
    "address": "1234 Test Street S.",
    "city": "Test City",
    "state": "CA",
    "postal": 50001
  },
  "cvv": 0,
  "funding": "credit",
  "product_segment": "all",
  "product_name": "Visa Classic",
  "issuing_country": "US",
  "issuer": "Visa",
  "custom_fields": [
    {
      "id": 1234567890,
      "key": "shoesize",
      "value": "9"
    }
  ],
  "token": "abcd1234",
  "bin": 516693,
  "last4": "XXXXXXXXXXXX1111"
}