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

[Hosted Checkout](https://developer.mastercard.com/mastercard-gateway/documentation/build/hosted-checkout/index.md), [Hosted Session](https://developer.mastercard.com/mastercard-gateway/documentation/build/hosted-session/index.md), and [Mobile Integration](https://developer.mastercard.com/mastercard-gateway/documentation/build/mobile-integration/index.md) require testing in addition to the [core testing steps](https://developer.mastercard.com/mastercard-gateway/documentation/testing/index.md#core-testing-steps-all-integrations).

## Hosted Checkout {#hosted-checkout}

### Prerequisites {#prerequisites}

Before you start testing your Hosted Session integration, you must complete:

* A [Basic integration](https://developer.mastercard.com/mastercard-gateway/documentation/build/hosted-checkout/integrate-hosted-checkout/index.md) using the Hosted Payment Page to collect payment details.

### Test your integration {#test-your-integration}

Cover these steps in addition to the [core testing steps](https://developer.mastercard.com/mastercard-gateway/documentation/testing/index.md#core-testing-steps-all-integrations) in your testing:

* Create a checkout session.
* Redirect the payer to the Hosted Payment Page (HPP).
* Handle the redirect or callback after the payment is complete.

## Hosted Session {#hosted-session}

### Prerequisites {#prerequisites-1}

Before you start testing your Hosted Session integration, you must complete:

* [Basic integration](https://developer.mastercard.com/mastercard-gateway/documentation/build/hosted-session/integrate-hosted-session/index.md) using sessions and hosted fields to gather payment details.

### Test your integration {#test-your-integration-1}

Cover these steps in addition to the [core testing steps](https://developer.mastercard.com/mastercard-gateway/documentation/testing/index.md#core-testing-steps-all-integrations) in your testing:

* For each supported payment method, test every Operation that requires payer interaction with hosted payment fields. Verify the complete flow, including:
  * Creating a session
  * Displaying hosted fields
  * Updating the session with field values
  * Submitting a payment transaction by using the session
* Verify that any hosted-field customizations work as expected.
* Identify transaction responses that require follow-up actions and verify that your integration handles them correctly.

### Enable additional logging for testing {#enable-additional-logging-for-testing}

To enable additional logging when testing your Hosted Session integration with a TEST merchant ID, append `?debug=true` to the URL of the [Session JavaScript library](https://developer.mastercard.com/mastercard-gateway/documentation/api-reference/js-libraries/session/index.md) on your payment page.

```html
<html>
<head>
{{host}}/form/version/<version>/merchant/<merchant_ID>/session.js?debug=truescript>
</head>
</html>
```

## Mobile {#mobile}

### Test your integration {#test-your-integration-2}

Cover these steps in addition to the [core testing steps](https://developer.mastercard.com/mastercard-gateway/documentation/testing/index.md#core-testing-steps-all-integrations) in your testing:

* For each supported payment method in your mobile app, test the payment flow until the session is updated with the payment details.
* Test the EMV 3-D Secure authentication flow, if applicable.
* Verify that your app handles common error conditions appropriately, including invalid requests and connectivity issues.
* Identify transaction responses that require follow-up actions and verify that your integration handles them correctly.
* To test the final payment transaction and any subsequent server-side transactions, follow the instructions in the Hosted Session [Testing Steps](https://developer.mastercard.com/mastercard-gateway/documentation/testing/int-specific-test/index.md#hosted-session).
* Test wallet tokens  
  If you support Apple Pay or Google Pay, use the provided test card details to validate wallet functionality. For more information, see [Apple Pay](https://developer.mastercard.com/mastercard-gateway/documentation/payment-methods/digital-wallets/apple-pay/index.md) and [Google Pay](https://developer.mastercard.com/mastercard-gateway/documentation/payment-methods/digital-wallets/google-pay/index.md).

## Browser Payment Testing {#browser-payment-testing}

Test your [Browser Payment Integration](https://developer.mastercard.com/mastercard-gateway/documentation/payment-methods/test-brow-pay-int/index.md).
