### CSS Whitelist Selector Examples
Source: https://docs.worldpay.com/apis/express/hosted-payments/css-express
Examples of valid CSS selectors defined by HTML element, CSS class name, and ID.
```xml
(select by html element)
(select by CSS class name)
(select by ID)
```
--------------------------------
### Sample TokenCreate XML Request
Source: https://docs.worldpay.com/apis/express/vas/omnitoken
An example XML request used to generate an Omnitoken.
```xml
INSERT
INSERT
INSERT
INSERT
INSERT
INSERT
2
2292649999995671
12
19
```
--------------------------------
### CSS Property Whitelist Configuration
Source: https://docs.worldpay.com/apis/express/hosted-payments/css-express
An example configuration for the background-color property, defining allowed literal values and regular expression patterns.
```xml
```
--------------------------------
### Sample EMV Response Data JSON
Source: https://docs.worldpay.com/apis/express/features/receipt-requirements
Example structure of the EMV response data object.
```json
"emv": {
"applicationIdentifier": "string",
"applicationLabel": "string",
"applicationPreferredName": "string",
"cryptogram": "string",
"issuerCodeTableIndex": "string",
"tags": {}
},
```
--------------------------------
### TransactionQueryPagination XML Request Example
Source: https://docs.worldpay.com/apis/express/express-xml/methods/reporting
A structured XML request for TransactionQueryPagination. Replace the 'INSERT' placeholders with your specific account and application credentials.
```xml
INSERT
INSERT
INSERT
INSERT
INSERT
INSERT
2021-02-02 00:00:00
2021-02-02 23:59:59
1
```
```xml
INSERT INSERT INSERT INSERT INSERT INSERT 2021-02-02 00:00:00 2021-02-02 23:59:59 1
```
--------------------------------
### CreditCardSale XML Request
Source: https://docs.worldpay.com/apis/express/features/in-app
An example of the XML structure required to initiate a CreditCardSale transaction for In-App purchases.
```APIDOC
## POST /CreditCardSale
### Description
Initiates a credit card sale transaction for In-App purchases using the specified XML payload.
### Request Body
```xml
INSERT
INSERT
INSERT
INSERT
INSERT
INSERT
1.00
INSERT
INSERT
3
INSERT
0
3
7
4
5
6
5
1
5204240250197840
12
22
ALnt+yWSJdXBACMLLWMNGgADFA==
```
```
--------------------------------
### Basic CSS Customization Example
Source: https://docs.worldpay.com/apis/express/hosted-payments/css-express
A sample CSS block that modifies the body font and background, as well as the font for specific input and dropdown elements.
```css
body {
font-family: Comic Sans MS;
font-size: 12px;
margin: 0px;
background-color: aqua;
}
.selectOption {
font-family:Comic Sans MS
}
.inputText {
font-family:Comic Sans MS
}
```
--------------------------------
### CreditCardSale XML Request/Response
Source: https://docs.worldpay.com/apis/express/vas/omnitoken
Example of a CreditCardSale XML request to submit a low-value Token Registration ID and the corresponding response.
```APIDOC
## CreditCardSale XML Operation
### Description
This operation processes a credit card sale transaction using a previously registered token (TokenRegistrationID).
### Request Example
```xml
INSERT
INSERT
INSERT
INSERT
INSERT
INSERT
12.67
2
0000000001
0
0
0
1
3
3
4
0
5
2
2
3
1
12
18
XXXXXXXXXXXXXXXX
2
```
### Response Example
```xml
0
Approved
00
2003682696
619739
Approved
4445222226800007
2
```
```
--------------------------------
### CreditCardSale with SurchargeAmount
Source: https://docs.worldpay.com/apis/express/express-xml/fee-assist
An example of a CreditCardSale XML request that includes a SurchargeAmount field.
```APIDOC
## POST CreditCardSale
### Description
This operation performs a credit card sale transaction including an optional surcharge amount.
### Request Example
```xml
INSERT
INSERT
INSERT
INSERT
INSERT
INSERT
444522_2299990007
12
29
1.03
0.03
2
887766
123456
1001
0
3
3
4
5
2
2
3
```
```
--------------------------------
### CreditCardSale Transaction with Omnitoken
Source: https://docs.worldpay.com/apis/express/vas/omnitoken
An example of a CreditCardSale XML response that includes an Omnitoken generated during the transaction.
```APIDOC
## CreditCardSale Response
### Description
This response represents a successful CreditCardSale transaction that includes an Omnitoken in the response body.
### Response
#### Success Response (200)
- **ExpressResponseCode** (string) - The response code from the Express system.
- **ExpressResponseMessage** (string) - The descriptive message for the response code.
- **TransactionID** (string) - Unique identifier for the transaction.
- **TokenID** (string) - The generated Omnitoken identifier.
- **TokenProvider** (string) - The provider identifier for the token.
### Response Example
0
Approved
2003682696
12.77
4445222226800007
2
```
--------------------------------
### TransactionSetup
Source: https://docs.worldpay.com/apis/express/express-xml/methods/hosted
The TransactionSetup method is used in conjunction with Express Hosted Payments transaction processing.
```APIDOC
## TransactionSetup
### Description
The TransactionSetup method is used in conjunction with Express Hosted Payments transaction processing.
```
--------------------------------
### CreditCardSale XML Request/Response
Source: https://docs.worldpay.com/apis/express/vas/omnitoken
Example of a CreditCardSale XML request using an OmniToken and the corresponding XML response.
```APIDOC
## CreditCardSale XML Request
### Description
Submits a credit card sale transaction using an OmniToken.
### Request Example
```xml
INSERT
INSERT
INSERT
INSERT
INSERT
INSERT
12.67
2
0000000001
0
0
0
1
3
3
4
0
5
2
2
3
1
12
18
4445222226800007
2
```
### Response Example
```xml
0
Approved
00
20170303
134146
UTC-07:00:00
1
58
706213682696
761.01
Visa
xxxx-xxxx-xxxx-0007
2003682696
619739
0000000001
682696|706213682696|0303204146|1042000314||5||||||||||A |||||||00|0100|134146|||||||012 203|0303||
VANTIV_TEST
Approved
1
682696
12.77
4445222226800007
2
```
```
--------------------------------
### TokenCreate
Source: https://docs.worldpay.com/apis/express/vas/omnitoken
Creates an Omnitoken by providing card details and application credentials.
```APIDOC
## POST TokenCreate
### Description
Creates an Omnitoken for a given card number, expiration date, and application credentials.
### Request Body
- **Credentials** (Object) - Required - Contains AccountID, AccountToken, and AcceptorID.
- **Application** (Object) - Required - Contains ApplicationID, ApplicationName, and ApplicationVersion.
- **Token** (Object) - Required - Contains TokenProvider.
- **Card** (Object) - Required - Contains CardNumber, ExpirationMonth, and ExpirationYear.
### Request Example
INSERT INSERT INSERT INSERT INSERT INSERT 2 2292649999995671 12 19
### Response
#### Success Response (200)
- **ExpressResponseCode** (String) - Success code.
- **ExpressResponseMessage** (String) - Success message.
- **TokenID** (String) - The generated token identifier.
#### Response Example
0 Success 20170303 084952 UTC-07:00:00 xxxx-xxxx-xxxx-5671 12 19 Visa 2292647572075671 2 1
```