With credit card transactions, different levels of data submission are critical for businesses engaged in different types of transactions. Referrers and Merchants can receive up to 40-100 basis points of reduced fees on their qualifying business and commercial card transactions.
There are three levels of interchange data submission available:
Level I1 | Basic transaction data like card number, expiration date, CVV, and transaction amount that is required for standard business-to-consumer (B2C) transactions and provide standard interchange rates. | ||||
Level II2 | More detailed transaction data, like a sales tax and order number, is required for B2B transactions and | provides can provide lower interchange rates. | |||
Level III3 | Comprehensive transaction | information data like line item details and shipping | , is required for | high-value (large ticket) B2B transactions | and provides can qualify for the lowest interchange rates. |
Major card brands Visa & MasterCard each have specific requirements that merchants must adhere to to offer them the best interchange rates. American Express and Discover do not accept direct Level II 2 or Level III 3 data submissions for lower interchange rates at this time.
Tip |
---|
Tip: While not a requirement, it is recommended to submit the previous level of interchange data when submitting the following level. Example: When submitting Level III 3 data, all Level I 1 and Level II 2 data requirements are already met to ensure the most visibility for Level III 3 interchange rates. |
Below is a breakdown of the key data required for Level II 2 and Level III 3 data submission for each card brand.
...
Level
...
1 Interchange Data Requirements
All transactions, regardless of card brand, must meet these data requirements to qualify for basic interchange or Level I1:
Merchant & Transaction Information - Basic data provided about the Merchant and Transaction, including:
...
Customer Zip Code | The billing zip code on file with the customer’s credit card company. |
Customer Billing Address | The full billing address on file with the customer’s credit card company. |
Credit Card Number | The 15 (AMEX) or 16-digit credit card number shown on the customer’s card. |
Card Expiration Date | The 4-digit, MMYY-format expiration date shown on the customer’s card. |
Level II and III Interchange Data Requirements
Each card brand will feature its list of requirements necessary to receive interchange rates by using Level II or Level III data to qualify on its card network. Each major card brand - Visa, MasterCard, American Express, and Discover - has been listed below with individual details to clearly explain their requirements.
Once you are familiar with these requirements, visit Submit Interchange Data with Transactions below to learn the different methods available to submit this data.
Tip |
---|
Tip: For developers and Portal users, we recommend using Visa’s Level II and Level III requirements as your data submission foundation for Level II and Level II submission for any card brand. Visa’s stringent standards cover all necessary elements for detailed transaction reporting. |
...
Card CVV | The 3 or 4-digit security code shown on the customer’s card. |
...
Commodity Codes
The Commodity Code must be submitted in numeric-only formatting to meet requirements. Merchants should utilize the National Institute of Governmental Purchasings' (NIGP) Commodity Codes.
Info |
---|
Info | ||||
---|---|---|---|---|
A partial list of 7-digit NIGP commodity codes is available here:
|
...
Level 2 and 3 Interchange Data Requirements
Each card brand will feature its list of requirements necessary to receive interchange rates by using Level 2 or Level 3 data to qualify on its card network. Each major card brand - Visa, MasterCard, American Express, and Discover - has been listed below with individual details to clearly explain their requirements.
Once you are familiar with these requirements, visit Submit Interchange Data with Transactions below to learn the different methods available to submit this data.
Tip |
---|
Tip: For developers and Portal users, we recommend using Visa’s Level 2 and Level 3 requirements as your data submission foundation for Level 2 and Level 1 submission for any card brand. Visa’s stringent standards cover all necessary elements for detailed transaction reporting. |
Note |
---|
Warning: For all ‘tax’ amount values, ensure the amount always corresponds to your local state or province regulations to ensure tax compliance. |
Note: If you choose to optionally submit Level II 2 data with Level III 3 data, the tax rate must be set between 0.1% & 22% of the transaction amount when the tax amount is greater than $0.00.
...
Expand | ||
---|---|---|
| ||
The following card types can be used for Level II 2 data submission:
In addition to the above, the following card types can be used for Level III 3 data submission:
|
Expand | |||||||||
---|---|---|---|---|---|---|---|---|---|
| |||||||||
Level II 2 data must include all Level I 1 data requirements in addition to the requirements listed below. Sales Tax and Order Information - Sales tax information for each transaction including:
Merchant Information - Details about the Merchant selling the product or service items including: | |||||||||
Customer Code | The unique identifier assigned to customers or entities within the Merchant’s records. | ||||||||
Merchant Zip Code | The zip code where the Merchant’s business is located. | ||||||||
Merchant TIN | The tax identification number issued to the Merchant by their governmental tax agency. | ||||||||
Expand | |||||||||
|
Expand | |||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||||||||||||||
title | Visa - AdditionalLevel III 3 data must include all Level II 2 data requirements in addition to the requirements listed below. Order (Line) Item Details - Must provide detailed information for each item listed in a transaction including:
Discount, Shipping & Duty - Must provide shipping, duty, and tax information (if applicable) including:
| ||||||||||||||||||||||||||||||||||||||
Expand | |||||||||||||||||||||||||||||||||||||||
|
Expand | ||
---|---|---|
| ||
In addition to the interchange data requirements above, the Visa card network has specific additional requirements to qualify:
|
Expand | ||
---|---|---|
| ||
Large Ticket transactions refer to transactions with a larger total dollar amount. Based Your interchange rate may change based on the transaction amount , your interchange rate may change to offer better pricing from Visa’s large ticket program for high-dollar-value transactions. In addition to the data requirements above, the Visa card network has specific additional requirements to qualify for Large Ticket interchange pricing:
|
Expand | |||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||||||||||||||
The
|
...
MasterCard
Read more information about MasterCard requirements below:
Expand | ||||
---|---|---|---|---|
| ||||
The following card types can be used for Level II 2 data submission:
Note: MasterCard uses the term “Data Rate 2 and 3” to refer to Level 2 and Level 3 interchange data when referring to corporate/business purchases and cards. In addition to the above, the following card types can be used for Level 3 data submission:
|
Expand | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||
Level II 2 data must include all Level I 1 data requirements in addition to the requirements listed below. Sales Tax Information - Sales tax information for each transaction including: Customer Code The unique identifier assigned to customers or entities within the Merchant’s records. | The tax identification number issued to the Merchant by their governmental tax agencyMerchant TIN
Merchant Information - Details about the Merchant selling the product or service items including:
|
Expand | |||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||
Level III 3 data must include all Level II 2 data requirements in addition to the requirements listed below. Line Item Details - Must provide detailed information for each item listed in a transaction including:
Note | Note: When submitting a Level 3 transaction, the tax amount must be a percent between 0.1% & 30% of the transaction; it cannot be zero unless tax-exempt status is enabled by the Facilitator.
|
...
Expand | ||
---|---|---|
| ||
Large Ticket transactions refer to transactions with a larger total dollar amount. Your interchange rate may change based on the transaction amount to offer better pricing from MasterCard’s large ticket program for high-dollar-value transactions. In addition to the data requirements above, the MasterCard network has specific additional requirements to qualify for Large Ticket interchange pricing:
|
Expand | ||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| The ||||||||||||||||||||||||||||||||||||||
MasterCard Non-Compliant MCCs List:
|
...
American Express & Discover
There is no additional work or line item data submisssion submission required by American Express or Discover.
Both card brands provide lower interchange rates on their respective networks, calculated and adjusted based exclusively on the cardholder’s card type (e.g. business card, corporate card, etc.).
...
To take advantage of lower interchange rates, this Level II and Level III data must be submitted alongside your transaction. This ensures the customer’s card brand network can receive and assess the data to determine which interchange rate the transaction will receive.
Info |
---|
Before you begin, we recommend checking each card’s eligibility for Level II and Level III processing as American Express and Discover don’t offer direct data submission options for Level II or III to qualify for lower interchange rates. A simple query shown below will quickly identify the card type:
The response will display the method (card brand), type (debit, credit, or both), and card category (personal, corporate card, etc.), which will allow you to know before submitting the additional data if the card brand network supports lower interchange rates or Level II or Level III data submissions. |
There are multiple methods to submit Level II or Level III data, read through the basic methods below to find the best workflow for your business:
Portal
The Portal offers a very simple way to manually enter and submit Level II and Level III values with payment transactions. Read the steps below to learn more:
Expand | ||
---|---|---|
| ||
To submit Level II transaction data using the Create Payments page:
Click Process Payment to complete the submission. |
...
title | Enable Tax Exempt Status using the Portal |
---|
Non-Profit and Governmental entities that qualify for a tax-exempt status can apply this setting to their platform entity. This provides the proper mapping for Level II data submission when tax amounts are set to 0%.
Info |
---|
Tax exempt status is available for Commercial Retail and Commercial Card Not Present transansactions only. |
Note: To display the Parameters tab and Auto Tax Exempt Enabled parameter for your Group(s), contact your Payrix representative to enable visibility.
To apply tax-exempt status to non-profit entity groups from the Groups page:
Step 1: Navigate to the Groups page under the Management section.
Step 2: Click on the desired group (or Add a new Group if needed) & enter the Group Profile page.
Step 3: Click on the Parameters tab, then click the ADD PARAMETERS button.
Step 4: Click the edit icon in the upper-right corner, then check “Auto Tax Exempt Enabled” and confirm.
Step 5: Return to the Group Profile page, then click the ADD MEMBERS button to Add the Merchant as a Member.
Click Save to complete the Merchant enrollment in the Tax Exempt Group.
Note |
---|
Warning: Not all Merchants using the Auto Tax Exampt Enabled feature can qualify for Level II interchange rates on Visa or Mastercard. See the section below for a list of ineligible MCCs. |
Inelgibile Merchant Types (MCCs) for Tax Exempt Level II Interchange Rates
...
Ineligible MCCs
...
Descriptions of Merchant Type
...
3000–3999
...
Airlines/Car Rental Companies/Hotels
...
4112
...
Passenger Railways
...
4411
...
Steamship and Cruise Lines
...
4468
...
Marinas, Marine Service and Supplies
...
4511
...
Airlines and Air Carriers
...
4722
...
Travel Agencies and Tour Operators
...
5499
...
Misc Food Stores - Speciality Markets and Convenience
...
5541
...
Gas/Service Stations with/without Ancillary Services
...
5542
...
Automated Fuel Dispensers
...
5812
...
Eating Places and Restaurants
...
5814
...
Fast Food Restaurants
...
5962
...
Direct Marketing – Travel Related Arrangements Services (High Risk)
...
5966
...
Direct Marketing – Outbound Telemarketing Merchant (High Risk)
...
5967
...
Direct Marketing – Inbound Teleservices Merchant (High Risk)
...
5983
...
Fuel Dealers - Fuel, Oil, Wood, Coal, Lique
...
7011
...
Lodging – Hotels, Motels, and Resorts
...
7512
...
Automobile Rental Agency
...
7513
...
Truck & Utility Trailer Rentals
Expand | ||
---|---|---|
| ||
To submit Level III transaction data using the Create Payments page:
Click Process Payment to complete the submission. |
API
The Payrix API provides a straightforward method of submitting Level II and Level III data values alongside transactions. Read the information below to learn more.
...
title | Submit Level II data using the Payrix API. |
---|
To submit Level II transaction data using the /txns
Payrix API endpoint, send the following request:
Code Block |
---|
POST https://test-api.payrix.com/txns |
Code Block | ||
---|---|---|
| ||
{
"merchant":"{yourMerchantID}",
"payment":{
"number":"{customerCardNumber}",
"cvv":"{customerCardCVV}"
}
"expiration":"MMYY",
"type":2,
"order":"INVOICE#1",
"total":7799,
"tax":100,
} |
Note |
---|
Warning: Tax rate must be set according to status and regulation:
|
...
Required Parameters
...
Type
...
Description
...
Valid Values / Format
...
merchant
...
string
...
The identifier of the Merchant associated with this Transaction.
...
payment
...
object
...
The payment method associated with this Transaction, including the card details.
...
number
...
number
...
For credit payment method, the card number of the credit card associated with this Transaction.
For the eCheck payment method, the bank account number is associated with this Transaction.
...
cvv
...
integer
...
The Card Verification Value (CVV) number of the credit card associated with this Transaction.
...
This field is expressed as a 3-digit integer.
...
expiration
...
number
...
The expiration date of the credit card associated with this Transaction.
...
This field is stored as a text string in 'MMYY' format, where 'MM' is the number of a month and 'YY' is the last two digits of a year. For example, '0623' for June 2023.
...
type
...
integer
...
The type of Transaction.
...
1
- Credit Card Only: Sale Transaction. Processes a sale and charges the customer.
2
- Credit Card Only: Auth Transaction. Authorizes and holds the requested total on the credit card.
3
- Credit Card Only: Capture Transaction. Finalizes a prior Auth Transaction and charges the customer.
4
- Credit Card Only: Reverse Authorization. Reverses a prior Auth or Sale Transaction and releases the credit hold.
5
- Credit Card Only: Refund Transaction. Refunds a prior Capture or Sale Transaction (total may be specified for a partial refund).
7
- eCheck Only: eCheck Sale Transaction. Sale Transaction for eCheck payment.
8
- eCheck Only: eCheck Refund Transaction. Refund Transaction for prior eCheck Sale Transaction.
11
- eCheck Only: eCheck Redeposit Transaction. Attempt to redeposit a prior failed eCheck Sale Transaction.
12
- eCheck Only: eCheck Account Verification Transaction. Attempt to verify eCheck payment details.
...
total
...
number
...
The total amount of this Transaction.
...
This field is specified as an integer in cents.
...
tax
...
integer
...
The total sum of this Transaction’s tax amount.
...
This field is specified as an integer in cents.
...
title | Enable Tax Exempt Status using the Payrix API |
---|
Non-Profit and Governmental entities that qualify for tax-exempt status can apply this setting to their platform entity. This provides the proper mapping for Level II data submission when tax amounts are set to 0%.
Info |
---|
Tax exempt status is available for Commercial Retail and Commercial Card Not Present transansactions only. |
Tip |
---|
Warning: To enable the |
To apply tax-exempt status to non-profit entity groups using the /parameters
Payrix API endpoint, send the following request:
Code Block |
---|
POST https://test-api.payrix.com/parameters |
Code Block | ||
---|---|---|
| ||
{
"login": "{{yourLoginID}}",
"org":"{{merchantsOrg/GroupID}}",
"autoTaxExemptEnabled":"1",
"inactive":"0",
"frozen":"0",
} |
Note |
---|
Warning: Not all Merchants using the Auto Tax Exampt Enabled feature can qualify for Level II interchange rates on Visa or Mastercard. See the section below for a list of ineligible MCCs. |
Warning |
---|
Error: If you do not first contact Payrix to enable access to the /parameters endpoint, you will receive the error below: |
Code Block | ||
---|---|---|
| ||
{
"errors": [
{
"code": 23,
"severity": 2,
"msg": "Invalid request for this type of user authentication"
}
]
} |
Your successful response should look like the following:
Code Block | ||
---|---|---|
| ||
{
"id": "t1_par_1abc2d34ef5g6h7ij89kl01",
"created": "2023-10-05T13:00:33.442Z",
"modified": "2023-10-05T13:00:33.442Z",
"creator": "t1_log_1abc2d34ef5g6h7ij89kl01",
"modifier": "t1_log_1abc2d34ef5g6h7ij89kl01",
"login": "t1_log_1abc2d34ef5g6h7ij89kl01",
"org": "t1_org_1abc2d34ef5g6h7ij89kl01",
"division": "t1_div_1abc2d34ef5g6h7ij89kl01",
"partition": "t1__1abc2d34ef5g6h7ij89kl01",
"autoTaxExemptEnabled": "1",
"inactive": "0",
"frozen": "0",
"minTxnTotal": "null",
"maxTxnTotal": "null",
"maxTxnDailyTotal": "null",
"maxTxnDailyNum": "null",
"maxTxnMonthlyTotal": "null",
"maxTxnMonthlyNum": "null",
"maxSubscriptionFailures": "null",
"minPayoutCreditTotal": "0001",
"maxPayoutCreditTotal": "null",
"minPayoutDebitTotal": "-0001",
"maxPayoutDebitTotal": "null",
"minAvailableFunds": "null",
"minStatementDebitPayoutDelay": "5",
"minFundsPayoutTotal": "500",
"minPayoutDelay": "3",
"minFirstPayoutDelay": "3",
"payoutDelayIncludeOffDays": "0",
"payoutIncludePending": "0",
"amexEnabled": "0",
"optBlueEnabled": "0",
"discoverEnabled": "0",
"discoverAcquiredEnabled": "0",
"mc3dsEnabled": "0",
"visa3dsEnabled": "0",
"amex3dsEnabled": "0",
"discover3dsEnabled": "0",
"eCheckEnabled": "0",
"fundingEnabled": "0",
"debtRepaymentEnabled": "0",
"verifyDisabled": "0",
"verifyForBoardingNotRequired": "0",
"verifyForPayoutNotRequired": "0",
"refundReleasesReserve": "0",
"vendorFeesEnabled": "0",
"vendorFeesExternal": "0",
"visaMisuseSettlement": "10",
"visaMisuseTravelAutoSettlement": "20",
"visaMisuseCardPresentReversal": "24",
"visaMisuseCardNotPresentReversal": "168",
"mcMisuseSettlement": "120",
"minEcheckCaptureDelay": "0",
"minDebitProcessingDelay": "5",
"minBoardingOwnership": "0",
"boardingExemptionsDisabled": "0",
"mcMisuseCardPresentReversal": "24",
"mcMisuseCardNotPresentReversal": "72",
"mcMisuseTravelAutoReversal": "480",
"boardingDisabled": "0",
"autoReboardDays": "60",
"surchargeEnabled": "0",
"mcInstantPayoutsEnabled": "0",
"visaInstantPayoutsEnabled": "0",
"mcInstantPayoutMin": "0",
"mcInstantPayoutMax": "7500000",
"visaInstantPayoutMin": "0",
"visaInstantPayoutMax": "5000000",
"sameDayPayoutsEnabled": "0",
"applePayEnabled": "0",
"googlePayEnabled": "0",
"sameDayPayoutsDailyMax": "null",
"minSameDayPayoutCreditTotal": "null",
"maxSameDayPayoutCreditTotal": "null",
"minSameDayPayoutDebitTotal": "null",
"maxSameDayPayoutDebitTotal": "null",
"accountUpdaterEnabled": "0",
"updateAllTokensEnabled": "0",
"accountUpdaterFrequency": "30",
"minDebitedAvailableFunds": "0",
"getParametersEnabled": "0",
"payoutCutoffTime": "null",
"declineNotificationEmail": "0",
"decisionMicroserviceEnabled": "0",
"holdMessagesDisabled": "0",
"txnDecisionMicroserviceEnabled": "0",
"omniTokenEnabled": "0",
"passTokenEnabled": "0",
"debitGracePeriod": "null",
"negativeBalanceLimit": "null",
"negativeBalanceEmail": "0",
"positiveBalanceEmail": "0"
} |
Note: All other non-applicable response parameters above are set with their default values.
Visit our API Documentation to read more about the other available response fields' descriptions.
See the descriptions below for the applicable response parameters.
...
Parameter
...
Description
...
Notes
...
id
...
The Org parameter configurations ID.
...
Recall this ID if you want to enable, change, or disable any individual org parameter.
...
created
...
The date and time at which this resource was created.
...
modified
...
The date and time at which this resource was modified.
...
creator
...
The identifier of the Login that created this resource.
...
modifier
...
The identifier of the Login that last modified this resource.
...
login
...
The Login that owns this resource.
...
org
...
The identifier of the Org resource that this Parameter resource is associated with.
...
autoTaxExemptEnabled
...
Whether to assume a transaction is tax-exempt if no tax is set for Level II processing.
...
Valid Values:
0
- Disabled1
- Enabled
Inelgibile Merchant Types (MCCs) for Tax Exempt Level II Interchange Rates
...
Ineligible MCCs
...
Descriptions of Merchant Type
...
3000–3999
...
Airlines/Car Rental Companies/Hotels
...
4112
...
Passenger Railways
...
4411
...
Steamship and Cruise Lines
...
4468
...
Marinas, Marine Service and Supplies
...
4511
...
Airlines and Air Carriers
...
4722
...
Travel Agencies and Tour Operators
...
5499
...
Misc Food Stores - Speciality Markets and Convenience
...
5541
...
Gas/Service Stations with/without Ancillary Services
...
5542
...
Automated Fuel Dispensers
...
5812
...
Eating Places and Restaurants
...
5814
...
Fast Food Restaurants
...
5962
...
Direct Marketing – Travel Related Arrangements Services (High Risk)
...
5966
...
Direct Marketing – Outbound Telemarketing Merchant (High Risk)
...
5967
...
Direct Marketing – Inbound Teleservices Merchant (High Risk)
...
5983
...
Fuel Dealers - Fuel, Oil, Wood, Coal, Lique
...
7011
...
Lodging – Hotels, Motels, and Resorts
...
7512
...
Automobile Rental Agency
...
7513
...
Truck & Utility Trailer Rentals
To s
...
title | Submit Level III data using the Payrix API. |
---|
To submit Level III transaction data using the /txns
Payrix API endpoint, send the following request:
Code Block |
---|
POST https://test-api.payrix.com/txns |
Code Block | ||
---|---|---|
| ||
{
"merchant":"{yourMerchantID}",
"payment":{
"number":"{customerCardNumber}",
"cvv":"{customerCardCVV}"
}
"expiration":"MMYY",
"type":2,
"order":"INVOICE#1",
"total":7799,
"tax":100,
"items":[
{
"item":"Line Item #1",
"description":"Line Item Description"
"quantity":1,
"price":7799,
"um":"EACH",
"commodityCode":"1111999",
"total":5799,
"discount":-2000,
"productCode":"UPC12345"
},
]
} |
Note: Descriptions for Level II data shown here are available in the Submit Level II data using the Payrix API section above.
...
Required Parameters
...
Type
...
Description
...
Valid Values / Format
...
items
...
array of objects
...
The item or list of items associated with the transaction/order.
...
item
...
string
...
The line item name.
...
description
...
string
...
The line item description.
...
Max length: 500 characters
...
quantity
...
integer
...
The total number of units for the line item.
...
price
...
number
...
The individual line item price.
...
um
...
string
...
The line item units of measure.
Example: “pounds”, “days”, “hours”.
...
Max length: 100 characters
...
commodityCode
...
string
...
The commodity code for this Item.
...
Max length:12 characters
...
total
...
integer
...
The total price for the line item.
...
This field is specified as an integer in cents
...
discount
...
integer
...
The discount for the line item.
...
This field is specified as an integer in cents.
...
productCode
...
string
...
The product code for this Item such as UPC, catalog number, or inventory number.
PayFields
PayFields is a unique offering that seamlessly integrates a payment gateway into your existing HTML website package and eliminates PCI Compliance risk. Submitting Level II
...
title | Submit Level II data using PayFields. |
---|
Step 1: Under your <script>
tag containing PayFields.fields
add the following to add new Tax and Order fields to the PayFields
Code Block |
---|
<script>
PayFields.fields = [
{type: "number", element: "#number"},
{type: "cvv", element: "#cvv"},
{type: "name", element: "#name"},
{type: "address", element: "#address"},
{type: "expiration", element: "#expiration"}
{type: "tax", element: "#tax"}
{type: "order", element: "#order"}
];
</script> |
Step 2: Under a new <script>
tag, add the API Key, Merchant ID, and Transaction Amount:
Code Block | ||
---|---|---|
| ||
<script>
PayFields.config.apiKey = "ab123c4def5g6hijkl7890m12345no6p";
PayFields.config.merchant = "t1_mer_123ab4c567defg8h90123i45";
PayFields.config.amount = {Transaction Amount};
<!---- continued by Step 3 ----> |
Step 3: Under the same <script>
tag as Step 2, add the Order Field, Tax Field, and Billing Address:
Code Block | ||
---|---|---|
| ||
<!---- preceeded by Step 2 ---->
PayFields.config.order = {order number};
PayFields.config.tax = {tax number};
PayFields.config.billingAddress = {
address: '123 Madison Street',
city: 'New York',
state: 'NY',
zip: '12345',
email: '',
phone: '5555555555',
address2: 'Suite 555',
company: 'Essential Co',
country: 'USA'
};
PayFields.config.invoiceResult = {Invoice Object}
</script> |
Result: Example HTML File
Code Block | ||
---|---|---|
| ||
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script type="text/javascript" src="https://test-api.payrix.com/payFieldsScript"></script>
<title>PayFields Test</title>
</head>
<body>
<input type="button" id="submit" value="Pay"></input>
<!-- Button needed for PayFrame -->
<script>
PayFields.button = {element: "#submit", value: "Pay"};
</script>
<script>
PayFields.fields = [
{type: "number", element: "#number"},
{type: "cvv", element: "#cvv"},
{type: "name", element: "#name"},
{type: "address", element: "#address"},
{type: "expiration", element: "#expiration"},
{type: "tax", element: "#tax"},
{type: "order", element: "#order"},
];
</script>
<script>
PayFields.config.apiKey = "ab123c4def5g6hijkl7890m12345no6p";
PayFields.config.merchant = "t1_mer_123ab4c567defg8h90123i45";
PayFields.config.amount = 500;
PayFields.config.order = {orderNumber};
PayFields.config.tax = {taxNumber};
PayFields.config.billingAddress = {
address: '123 Madison Street',
city: 'New York',
state: 'NY',
zip: '12345',
email: '',
phone: '5555555555',
address2: 'Suite 555',
company: 'Essential Co',
country: 'USA'
};
PayFields.config.invoiceResult = {invoiceObject}
</script>
</body>
</html> |
...
title | Submit Level III data using PayFields. |
---|
Step 1: Complete Steps 1-3 above.
Step 2: Under your <script>
tag containing PayFields.fields
add the following to include Discount, Shipping, Duty, and Item [details] Objects fields in your PayField:
Code Block | ||
---|---|---|
| ||
<script>
PayFields.fields = [
{type: "dicount", element: "#dicount"},
{type: "shipping", element: "#shipping"},
{type: "duty", element: "#duty"},
{type: "items", element: "#items"}
];
</script> |
Step 3: Under your <script>
tag containing PayFields.config
add the following:
Code Block |
---|
<script>
PayFields.config.dicount = {discount number};
PayFields.config.shipping = {shipping number};
PayFields.config.duty = {duty number};
PayFields.config.items = {items Object}
</script> |
Result: Example HTML File
...
language | html |
---|
...