Welcome to our new developer portal! Use the "Ask" button to chat with our AI Agent.
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Sandbox testing

Sandbox testing configuration

If project onboarding has not started, you can still test your integration with the Push Provisioning SDK using the sandbox environment.

For testing, use the following:

  • Key for card data encryption. Retrieve this key from the TSH Onboarding Portal.

  • Key for authorization code signature. Use this key when signing the JWT.

Below is the test data you can use in the sandbox environment:

Public key

-----BEGIN CERTIFICATE-----
MIIEKTCCAxGgAwIBAgIMa3BA3M18ovOLDPVJMA0GCSqGSIb3DQEBCwUAMF0xCzAJ
BgNVBAYTAkZSMRAwDgYDVQQKDAdHZW1hbHRvMRAwDgYDVQQLDAdUb3Vyc0RDMSow
KAYDVQQDDCFDQlAgU3RhZ2luZyBDZXJ0aWZpY2F0ZSBBdXRob3JpdHkwHhcNMTkw
MzE4MTExMjMzWhcNMjUwNzE2MDgwNzA4WjBqMQ4wDAYDVQQHDAVUb3VyczELMAkG
A1UEBhMCRlIxEzARBgNVBAoMCkdlbWFsdG8gU0ExGjAYBgNVBAsMEUJhbmtpbmcg
JiBQYXltZW50MRowGAYDVQQDDBFHMEQ0MyBJU1MgRU5DIExBQjCCASIwDQYJKoZI
hvcNAQEBBQADggEPADCCAQoCggEBAJzCukpAX7cYB2wrqBhnlfrU4AlR5qoOp78K
PStWz+tTzALg9BWa9nOHNqVq78U4UYlP1AVbdMFyEUIS+Qe1FX27V4do99EhiAmD
ghhChFJbWFcZKWr3zbkreTubEZumzBtbECAziv1/WlEWZASowrvNlTVmuPY8PgTU
7bnD97IdSe5X7FO5NkbMcV3C9znD5PkjF67oM09WJqf9ZCWpfQaYYGTxEfb/IZr1
2g2U7P+fSGuHkshDuIAM80PAKa1Tp9cDQBAmT3/qdF2XCJRYgoPchF+M4cjusA6t
TByBCLE50Q7akyVGj9ziF4x6C+dfrPmZiVn3GV0gSomx+23CNEkCAwEAAaOB2zCB
2DAdBgNVHQ4EFgQUgGk2wvUReOY0YlbL1JXVxnl7Ik0wHwYDVR0jBBgwFoAUcnOD
T6m4nRtWkoGqvbU8mZFjzZUwDgYDVR0PAQH/BAQDAgPoMDEGA1UdEQQqMCiBJmRs
X2RjdF9tYW5hZ2VkX3NlcnZpY2VzX3BsQGdlbWFsdG8uY29tMFMGA1UdHwRMMEow
SKBGoESGQmh0dHA6Ly9jcmwtYnBraS5nZW1hbHRvLmNvbS9DUkwvY2Jwc3RhZ2lu
Z2NlcnRpZmljYXRlYXV0aG9yaXR5LmNybDANBgkqhkiG9w0BAQsFAAOCAQEAGJ9x
Ka323y6C2RvhLoeo0ovmLwUKeaWMrbv6FwZzjibXLW6EJUWg6hWD+ATYHa5GBaCC
fnLwgyOnlx+pgheh1CLUZoB9MzNwb3yDznI8t7Us8lWew+fNJRwW+JQW3peJnqkn
1ZegO4lsEADTim0GS9WfprIRr9C9cYSCk5CdOIP8uRq43rIdOgYsL9rPSIwPeBeu
Vc0qk52K8YnwoatXEl37EKXRcHe6vSTmoAocvlA0jOJQ3yOYzDOYak5AEekDUfBv
bnFfQswfk6QWJC6EqnBj2JYJkl2qzyWbHNgJyDkwo7oiOu6r9BEdbRExPdRgH0Dd
sCmJ5iXSTsu+3OVXXA==
-----END CERTIFICATE-----

Private key

Authorization code

  • issuerId: TPCSANDBOX

info-circle

TPCSANDBOX configuration

Sandbox is not connected to the payment network.

Apple Pay sandbox testing

  • Pre-production environment (PPROD)

    • Customer opens a test account with Apple.

    • The test account must use the devices selected for testing in the Pre-Production environment, together with the Apple Pay test sandbox. For details, see Apple Pay Sandbox Testing.

info-circle

Note

  • Confirm the Apple Pay sandbox is available in the customer’s country before testing. See Sandbox testing eligible country. If the country is not listed, change the region on your test device in Settings > General > Language & Region. Select a country that supports Apple Pay.

  • Visa and Mastercard do not guarantee push provisioning will always work with Apple's test cards. Use sandbox testing primarily to validate the encrypted payload and authorization code with the Push Provisioning SDK.

  • Production environment (PROD)

    • Apple must allowlist the customer devices used in the certification phase for the Production environment, based on their Secure Element identifier (SEID).

    • Remove device allowlisting when the customer’s product goes live, based on customer request.

Enabling sandbox mode in Google Pay

By default, Google Pay runs in production mode with real payments. Optionally, you can reconfigure Google Pay to run in sandbox mode by placing a special file on your device. Once connected, Google Pay routes requests to the Google sandbox environment, which connects to the TSP sandbox environment.

It is recommended to use the sandbox mode during your development and pre-production testing.

info-circle

Note

Google Pay services are required to run the Push Provisioning SDK. The Google Pay app does not need to be installed on the device.

Using the ADB command to toggle to sandbox mode

adb shell touch /sdcard/Download/android_pay_env_override_sandboxadb reboot

To return to the production mode, delete the file and reboot the device as follows:

adb shell rm /sdcard/Download/android_pay_env_override_sandboxadb reboot

Checking the mode of your device

To check whether your Android device is in sandbox or production mode, go to Android Settings > Google > Google Pay or Android Settings > Google > Account Services > Google Pay. If you see a small pop-up that says "Sandbox", the device is configured to make sandbox calls. If you do not see a pop-up, the device is configured to make production calls.

On devices that do not show Google Pay under Google settings, use the following ADB command to open Google Pay settings:

adb shell am start -ncom.google.android.gms/com.google.android.gms.tapandpay.settings.TapAndPaySettingsActivity

Last updated

Was this helpful?