Payment Object¶
The payment object represents a single payment of a specific type. Each payment type can have a different set of details futher describing the payment (see Payment Details below.)
Name |
Type |
Description |
---|---|---|
|
string, required |
the payment method |
|
float, required |
the amount paid |
|
string, optional, ISO 4217 alpha-3 currency code |
the payment currency, an ISO 4217 three letter code |
|
Payment Details, optional |
the method-dependent details of the payment |
Payment Details¶
The format of the payment details depends on the payment method used. The below table shows the mapping from the value stored in method to the available keys in details.
The other mapping in the payment details is a freeform mapping in which retailer specific details can be stored.
card:
Name |
Type |
Description |
---|---|---|
|
const: |
this schemas’s type |
|
string, optional |
purchase order number |
|
mapping, optional |
retailer-specific payment details |
|
string, optional |
the last four digits of the card number |
|
string, optional |
the card type |
|
string, optional |
the issue number |
|
string, optional |
the start date |
|
string, optional |
the end date |
cash:
Name |
Type |
Description |
---|---|---|
|
const: |
this schemas’s type |
|
string, optional |
purchase order number |
|
mapping, optional |
retailer-specific payment details |
|
float, required |
change due |
|
float, optional |
rounding amount |
giftcard:
Name |
Type |
Description |
---|---|---|
|
const: |
this schemas’s type |
|
string, optional |
purchase order number |
|
mapping, optional |
retailer-specific payment details |
|
string, optional |
the card number |
|
string, optional |
the card type |
|
string, optional |
the card expiry date |
|
float, optional |
the current balance on card |
other:
Name |
Type |
Description |
---|---|---|
|
const: |
this schemas’s type |
|
string, optional |
purchase order number |
|
mapping, optional |
retailer-specific payment details |
voucher:
Name |
Type |
Description |
---|---|---|
|
const: |
this schemas’s type |
|
string, optional |
purchase order number |
|
mapping, optional |
retailer-specific payment details |
|
float, optional |
change due as a voucher |