required:
- cardNumber
- expiryDate
- type
type: object
allOf:
- $ref: ./PaymentsPaymentInstrument.yaml
- type: object
properties:
type:
type: string
enum:
- plain
cardNumber:
maxLength: 19
minLength: 12
type: string
description: Customer's card number.
example: '4000000000001091'
cardHolderName:
maxLength: 255
minLength: 1
type: string
description: >-
The name on your customer's card. Required if
instruction.tokenCreation is present. However we recommend that you
supply this to improve authentication rates.
example: Sherlock Holmes
expiryDate:
$ref: ./ExpiryDate.yaml
cvc:
maxLength: 4
minLength: 3
pattern: '[0-9]*$'
type: string
description: >-
CVC is a unique set of 3 or 4 numbers on the back of the card. Our API
checks to see if the CVC supplied matches the CVC held by the issuing
bank.
example: '123'
billingAddress:
$ref: ./BillingAddress.yaml