Developer Portal

4 Appendix B: Input File Format

General Notes:

  • Empty lines are ignored.
  • Comment lines beginning with “#” are ignored.
  • A <Newline> can either be /n or /r/n/
  • A minimum field length of 0 means the field is not required

 

 

 

4.1 Delimiter

FieldNameDescriptionTypeMin LengthMax Length
1commandMust be ‘delimiter’

request name is case insensitive
AlphaN/AN/A
2delimiterA field delimiter used for all remaining lines in the file. The delimiter can contain any ASCII character. For readability the following characters can be escaped:
tab → “\t”
space → “\s”
back slash → “\\”
examples
( tab + comma ) = “\t,”
( pipe ) = “|”

any14

4.2 Credit Card Requests with Token

FieldNameDescriptionTypeMin LengthMax Length
1CommandCase insensitive command. Supported commands:
'CCAuthorizeToken' **,
'CCSaleToken',
'CCCreditToken'
AlphaN/AN/A
2Source IDTransaction Source ID. Source IDs are configured for your company on Payway. The source ID determines which merchant is used. A single file can have multiple source IDs. NumberN/AN/A
3TokenPayway token to be used for this transaction. Number110
4ECI TypeInput ECI type.
1 → MOP_MOTO_SINGLE
2→ MOP_MOTO_RECURRING
3→ MOP_MOTO_INSTALLMENT
4→ MOP_MOTO_DEFERRED
5→ MOP_SET
6 → MOP_NA_SET
7 → MOP_CHANNEL_ENCRYPT
8 → MOP_NON_SECURE
9 → MOP_PINLESS_DEBIT
10 → MOP_RETAIL
Number12
5AmountAn integer representing the amount in pennies for the transaction. Required for Authorize, Sale, and Credit. Ignored for Capture and Void. Amount is in PENNIES

example: $100.00 → 10000
Number19
6TaxAn integer representing the tax in pennies for the transaction.

example: $10.00 → 1000
Number19
7Notes 1User data up to 64 bytesany064
8Notes 2User data up to 64 bytesany064
9Notes 3User data up to 64 bytesany064
# Sample file template with token
delimiter ;
<Command>;<Source Id>;<Token>;<ECI Type>;<Amount>;<Tax Amount>;<CustomFieldOne>;<CustomFieldTwo>;<CustomFieldThree>

# Sample Sale file
delimiter ; 
CCSaleToken;20;010000344;1;120000;0;test1;test2;test3

# Sample Authorize file
delimiter ; 
CCAuthorizeToken;20;010000344;1;120000;0;test1;test2;test3

# Sample Credit file
delimiter ; 
CCCreditToken;20;010000344;1;120000;0;test1;test2;test3

 

4.3 Existing Credit Card Requests with Token**

FieldNameDescriptionTypeMin LengthMax Length
1CommandCase insensitive command. Supported commands: ‘CCCapture’, ‘CCVoid’AlphaN/AN/A
2Transaction IDunique identifier for a payment request. This is returned in the reply file for each transaction. any064

** Not Supported in this release.

Example Existing Credit Card Request with Token

# Sample file template with token
delimiter ;
<Command>;<Transaction Id>

# Sample Void file
delimiter ; 
CCVoid;<Transaction Id>

# Sample Credit file
delimiter ; 
CCCapture;<Transaction Id>

 

4.4 Non-tokenized Credit Card Requests

FieldNameDescriptionTypeMin LengthMax Length
1CommandCase insensitive command. Supported commands: “CCAuthorizeAccount”**

“CCSaleAccount”

“CCCreditAccount”

AlphaN/AN/A
2Source IDTransaction source ID. Source IDs are configured for your company on Payway. The source ID determines which merchant is used. A single file can have various source IDs. NumberN/AN/A
3AccountCredit card account number.Number1519
4ExpirationExpiration dat. MMYY or MMYYYYNumber46
5ECI TypeInput ECI type.
1 → MOP_MOTO_SINGLE

2→ MOP_MOTO_RECURRING

3→ MOP_MOTO_INSTALLMENT

4→ MOP_MOTO_DEFERRED

5→ MOP_SET

6 → MOP_NA_SET

7 → MOP_CHANNEL_ENCRYPT

8 → MOP_NON_SECURE

9 → MOP_PINLESS_DEBIT

10 → MOP_RETAIL
Number12
6AmountAn integer representing the amount in pennies for the transaction. Required for Authorize, Sale, and Credit. Ignored for Capture and Void. Number19
7TaxAn integer representing the tax in pennies for the transaction.
example: $10.00 → 1000
Number19
8FirstNameFirst name of cardholderany064
9LastNameLast name of cardholder or company nameany064
10AddressAddress of cardholderany0128
11CityCity of cardholderany0128
12StateState of cardholder, 2 digit abbreviation or 3 character Canadian province.Number03
13ZipZip of cardholder, 5 or 9 digitsany09
14PhonePhone number of cardholderNumber010
15EmailEmail of cardholderany0128
16Notes1User data up to 64 bytesany064
17Notes2User data up to 64 bytesany064
18Notes3User data up to 64 bytesany064

 Example Credit Card Request

# Sample file template with token delimiter ;
<Command>;<Source Id>;<Account>;<Expiration>;<ECI Type>;<Amount>; <Tax);<FirstName>;<LastName>;<Address>;<City>;<State>;<Zip>;
<Phone>;<Email>;<CustomFieldOne>;<CustomFieldTwo>;<CustomFieldThree>

# Sample Sale file delimiter ; 
CCSaleAccount;20;4012888888881881;1121;1;120000;0;John;Doe;222 Rosewood;Danvers;MA;01923;8004579932;[email protected];test1;test2;
test3


# Sample Authorize file delimiter ; 
CCAuthorizeAccount;20;4012888888881881;1121;1;120000;0;John;Doe; 222 Rosewood; Danvers;MA;01923;8004579932;[email protected];test1;test2;test3

# Sample Credit file delimiter ; 
CCCreditAccount;20;4012888888881881;1121;1;120000;0;John;Doe; 222 Rosewood; Danvers;MA;01923;8004579932;[email protected];test1;test2;test3

 

4.5 Non-tokenized Existing Credit Card Requests**

FieldNameDescriptionTypeMin LengthMax Length
1CommandCase insensitive command. Supported commands: ‘CCCapture’, ‘CCVoid’AlphaN/AN/A
2Transaction IDUnique identifier for a payment request. This is returned in the reply for each transaction. Any064

Example Existing Credit Card Request

# Sample file template with token delimiter ;
<Command>;<Transaction Id>

# Sample Void file delimiter ; 
CCVoid;<Transaction Id>

# Sample Credit file delimiter ; 
CCCapture;<Transaction Id>

 

4.6 ACH Requests with Token**

Intentionally Blank

** Not Supported in this release.

4.7 Non-tokenized ACH Requests**

Intentionally Blank

** Not Supported in this release.

4.8 Create Token Requests**

FieldNameDescriptionTypeMin LengthMax Length
1Command** Not Supported in this release.AlphaN/AN/A
2AccountCredit card account number.Number1519
3ExpirationExpiration date. MMYY or MMYYYYNumber46
4FirstNameFirst name of cardholderany064
5LastNameLast name of cardholder or company nameany064
6AddressAddress of cardholderany0128
7CityCity of cardholderany0128
8StateState of cardholder, 2 digit abbreviation or 3 character Canadian provinceAlpha03
9ZipcodeZipcode of cardholderany09
10PhonePhone number of cardholderNumber010
11EmailEmail of cardholderany0128
12Notes1User data up to 64 bytesany064
13Notes2User data up to 64 bytesany064
14Notes3User data up to 64 bytesany064

** Not Supported in this release.

# Sample file template with token delimiter ;
<Command>;<Account>;<Expiration>; <FirstName>;<LastName>;<Address>;<City>;<State>;<Zip>;<Phone>;
<Email>;<CustomNotesOne>;<CustomNotesTwo>;<CustomNotesThree>

# Sample Sale file delimiter ; 
CCCreatetoken;4012888888881881;1121;John;Doe; 222 Rosewood;Danvers;
MA;01923; 8004579932;[email protected];test1;test2;test3

 

Subscribe

Every post in your inbox