# Testing your Integration
source: https://developer.mastercard.com/mastercard-gateway/documentation/testing/test-your-int/index.md

Customers are advised to run some internal card present tests using Mastercard Gateway before scheme certification. Complete the following tests and ensure that the solution has achieved the expected results as indicated within "Expected Result."

The following tests need to be performed using values below the CVM limit for the country and repeated using values above the CVM limit, so the PIN entry is requested.

| Authorization                                                                                                                                                                                                                                                                                                                                                                                                                           |||||
| Functionality                 |                Pre-condition                 |  Sub-function *\*\*amount and currency can be changed as per-country requirements*  |   Scheme   |                                                                                                                      Expected Result                                                                                                                      |
|:------------------------------|----------------------------------------------|-------------------------------------------------------------------------------------|------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Auth/Capture (only if scoped) | Test Card is available                       | Perform an Authorize transaction for $20.50                                         | Mastercard | Authorize request approved for $20.50                                                                                                                                                                                                                     |
| Auth/Capture (only if scoped) | Auth is successful                           | Request Capture                                                                     | Mastercard | Capture request approved                                                                                                                                                                                                                                  |
| Auth/Capture (only if scoped) | Test Card is available                       | Perform an Authorize transaction for $20.50                                         | Visa       | Authorize request approved for $20.50                                                                                                                                                                                                                     |
| Auth/Capture (only if scoped) | Auth is successful                           | Request Capture                                                                     | Visa       | Capture request approved                                                                                                                                                                                                                                  |
| Auth/Capture (only if scoped) | A test Card with PIN capability is available | Perform an Authorize transaction over country CVM limit (therefore requiring a PIN) | Mastercard | Authorize request approved for specified amount (determined by customer)                                                                                                                                                                                  |
| Auth/Capture (only if scoped) | Auth with PIN is successful                  | Request Capture                                                                     | Mastercard | Capture request approved                                                                                                                                                                                                                                  |
| Auth/Capture (only if scoped) | A test Card with PIN capability is available | Perform an Authorize transaction over country CVM limit (therefore requiring a PIN) | Visa       | Authorize request approved for specified amount (determined by customer)                                                                                                                                                                                  |
| Auth/Capture (only if scoped) | Auth with PIN is successful                  | Request Capture                                                                     | Visa       | Capture request approved                                                                                                                                                                                                                                  |
| Pay/Purchase (only if scoped) | Test Card is available                       | Perform Purchase/Pay transaction for $15.25                                         | Mastercard | Purchase/Pay request approved                                                                                                                                                                                                                             |
| Pay/Purchase (only if scoped) | Test Card is available                       | Perform Purchase/Pay transaction for $15.25                                         | Visa       | Purchase/Pay request approved                                                                                                                                                                                                                             |
| Pay/Purchase (only if scoped) | Test Card with PIN capability is available   | Perform a Purchase/Pay transaction over country CVM limit (therefore requiring PIN) | Mastercard | Purchase/Pay request approved                                                                                                                                                                                                                             |
| Pay/Purchase (only if scoped) | Test Card with PIN capability is available   | Perform a Purchase/Pay transaction over country CVM limit (therefore requiring PIN) | Visa       | Purchase/Pay request approved                                                                                                                                                                                                                             |
| Void                          | Test Card is available                       | Perform a Void request for $15.25                                                   | Mastercard | Void is successful                                                                                                                                                                                                                                        |
| Void                          | Test Card is available                       | Perform a Void request for $15.25                                                   | Visa       | Void is successful                                                                                                                                                                                                                                        |
| Refund                        | Test Card is available                       | Perform an Auth/Capture or Pay for $25.75                                           | Mastercard | Request is approved                                                                                                                                                                                                                                       |
| Refund                        | Auth/Capture or Pay is successful            | Refund previous transaction                                                         | Mastercard | Refund request approved                                                                                                                                                                                                                                   |
| Refund                        | Test Card is available                       | Perform an Auth/Capture or Pay for $25.75                                           | Visa       | Request is approved                                                                                                                                                                                                                                       |
| Refund                        | Auth/Capture or Pay is successful            | Refund previous transaction                                                         | Visa       | Refund request approved                                                                                                                                                                                                                                   |
| DCF CP records validation     | Authorizations are successful                | DCF validation                                                                      | Mastercard | Record Types 6220, 6221, 6225, 6271 and 6222 are available in DCF reflecting correct details (amount, card, and so on.) - IPM is successful with CP data: * PIN Capture Capability * Cardholder Authentication Method * Cardholder Authentication Entity  |
| DCF CP records validation     | Authorizations are successful                | DCF validation                                                                      | Visa       | Record Types 6220, 6221, 6225, 6271 and 6223 are available in DCF reflecting correct details (amount, card, and so on.) - BASE is successful with CP data: * PIN Capture Capability * Cardholder Authentication Method * Cardholder Authentication Entity |

