Mandatory sub-lines
The
PaymentDetails
and
Card
sub-lines described below are mandatory when submitting a card payment authorization request.
PaymentDetails
Optional fields: if you do not populate one or more non-mandatory fields and leave them blank, you need in any case to insert delimiting commas because the Adyen payments platform expects a preset, fixed number of fields per line/sub-line.
Field # | Format | Required | Description |
---|---|---|---|
1 |
Fixed value: |
|
Record type identifier |
2 |
Numeric |
|
|
3 |
Fixed value: |
|
Transaction type. |
4 |
Numeric |
|
Amount. |
5 |
Numeric |
|
The currency exponent. |
6 |
Alphabetic |
|
The three-character ISO currency code. |
7 |
Alphanumeric |
|
A shopper's reference, which is the unique identifier for a shopper. Required element for recurring payments and to create recurring contracts. |
8 |
Email address |
|
The shopper's email address. |
9 |
Alphanumeric |
|
Shopper statement. |
10 |
IP address |
|
The IP address the shopper used to carry out the transaction. |
11 |
Numeric |
|
Fraud offset. |
Card
- This sub-line holds information about card payments.
- In an authorization request for card payments, the
Card
sub-line needs to be submitted as sub-line 2.
Field # | Format | Required | Description |
---|---|---|---|
1 |
Fixed value: |
|
Record type identifier |
2 |
Numeric |
| `SL` sub-line record number reference within its parent line. The counter starts at 1, and it increments sequentially by one unit. |
3 |
Fixed value: |
|
Transaction type. |
4 |
Numeric |
|
Card number. |
5 |
Numeric |
|
Expiry month.
|
6 |
Numeric |
|
Expiry year.
|
7 |
Numeric |
|
|
8 |
Alphanumeric |
|
Cardholder name. |
9 |
Numeric |
|
Start month.
Maestro UK only. |
10 |
Numeric |
|
Start year.
Maestro UK only. |
11 |
Numeric |
|
One-digit card issue number. Maestro UK only. |
FH,1.0,TEST,Company,TestCompany,Default,2,ws@Company.TestCompany,Authorisation,FileHeaderEchoData BH,1,BlockHeaderEchoData L,1,MerchantAccount,TestMerchant,Authorisation,Test Product 6, SL,1,PaymentDetails,100,2,SEK,,,,, SL,2,Card,4111111111111111,06,2016,737,CardHolderName,,, BT,1 FT,1
Optional sub-lines
The
Address
,
MerchantOrderReference
, and
ShopperInteraction
sub-lines described below can be optionally included in the payment request.
Address
You can use the Address
sub-line to include information about the shopper's billing and delivery addresses.
You need to specify billing and deliver addresses on separate Address
sub-lines:
- One
Address
sub-line containing the billing address information; - One
Address
sub-line containing the delivery address information.
Field # | Format | Required | Description |
---|---|---|---|
1 |
Fixed value: |
|
Record type identifier |
2 |
Numeric |
|
|
3 |
Fixed value: |
|
Transaction type. |
4 |
Allowed values:
|
|
The type of address that is being submitted: either a billing or a delivery address. |
5 |
Alphanumeric |
|
Street address. |
6 |
Alphanumeric |
|
House number or name. |
7 |
Alphanumeric |
|
City. |
8 |
Alphanumeric |
|
ZIP/Post code. |
9 |
Alphanumeric |
|
State/Province/Region. |
10 |
Alphabetic |
|
Two-letter country code. |
FH,1.0,TEST,Company,TestCompany,Default,2,ws@Company.TestCompany,Authorisation,FileHeaderEchoDataBH,1,BlockHeaderEchoData L,1,MerchantAccount,TestMerchant,Authorisation,Test Product 6, SL,1,PaymentDetails,100,2,SEK,,,,, SL,2,Card,4111111111111111,06,2016,737,CardHolderName,,, SL,3,Address,Billing,South Buena Vista Street,500,Burbank,91521,CA,US SL,4,Address,Delivery,Some Street,123,Some Town,90102,CA,US BT,1 FT,1
MerchantOrderReference
Field # | Format | Required | Description |
---|---|---|---|
1 |
Fixed value: |
|
Record type identifier |
2 |
Numeric |
| `SL` sub-line record number reference within its parent line. The counter starts at 1, and it increments sequentially by one unit. |
3 |
Fixed value: |
|
Transaction type. |
4 |
Alphanumeric |
|
Value of your order reference. |
FH,1.0,TEST,Company,TestCompany,Default,2,ws@Company.TestCompany,Authorisation,FileHeaderEchoData BH,1,BlockHeaderEchoData L,1,MerchantAccount,TestMerchant,Authorisation,Test Product 6, SL,1,PaymentDetails,100,2,SEK,,,,, SL,2,Card,4111111111111111,08,2018,737,CardHolderName,,, SL,3,MerchantOrderReference,XY66AB BT,1 FT,1
ShopperInteraction
Field # | Format | Required | Description |
---|---|---|---|
1 |
Fixed value: |
|
Record type identifier |
2 |
Numeric |
| `SL` sub-line record number reference within its parent line. The counter starts at 1, and it increments sequentially by one unit. |
3 |
Fixed value: |
|
Transaction type. |
4 |
Allowed values:
|
|
Value of |
FH,1.0,TEST,Company,TestCompany,Default,2,ws@Company.TestCompany,Authorisation,FileHeaderEchoData BH,1,BlockHeaderEchoData L,1,MerchantAccount,TestMerchant,Authorisation,Test Product 6, SL,1,PaymentDetails,100,2,SEK,,,,, SL,2,Card,4111111111111111,06,2016,737,CardHolderName,,, SL,3,Address,Billing,South Buena Vista Street,500,Burbank,91521,CA,US SL,4,Address,Delivery,Some Street,123,Some Town,90102,CA,US SL,6,ShopperInteraction,Moto,,,,,,, BT,1 FT,1