Testing your Integration
...
Testing Overview
Testing your Wallet Payment In...

Testing Google Pay™ Wallet - via Mobile SDK

Testing Google Pay™ Wallet - via Mobile SDK

Prerequisites

  • Before you can process Google Pay™ payments and preAuths with Judopay, you will need to Create a Google Pay Payments Profile to get your Merchant IDs.
  • To test Google Pay™ payments and preAuths in sandbox, contact Support to configure your wallet payments credentials.


Google Pay™ Wallet Scenarios (Positive Flow)

Depending on your use case and app configurations, some of the following scenarios may not be relevant to you.

Follow our suggested guidelines to simulate positive / happy path scenarios, to test your integration is working correctly. This will give you confidence for when your integration goes live.

Important to Consider for Google Pay™ (DPAN)

The Google Pay™ mobile wallet payment flow provides consumers with an extra layer of security, encrypting and decrypting the card details sent in the payload by replacing the consumer's card details with a device token.

This payment method is SCA compliant by default. For a successful end-to-end wallet payment testing journey, it is recommended to:

  • Perform wallet test scenarios in a production environment
  • Use live cards to process test payments and preAuths.

We do not recommend making Merchant Initiated Transactions using card tokens that were generated by Google Pay™ DPAN. You may experience a lower transaction success ratio.

*These images are from our dummy app, your interface may look different.





Suggested Test Scenario

Process a Google Pay™ wallet:

  • payment
  • preAuth


TIP: The app is using the payment / preAuth flow, which has been set up in the payment configuration object.

We suggest checking the following options have been configured correctly:

  • Merchant Name
  • Billing address phone no
  • Shipping address
  • Shipping address phone no
  • Email address

For more information on configuring your app, see Enable Google Pay™ on your Mobile App.

Expected Outcome

You will be directed to a successful transaction completed page. *

google pay success



The below is a typical end user flow when making a Google Pay™ wallet payment:

google pay mobile flow



Suggested Test Scenario

Process a wallet:

  • payment
  • preAuth

request to test the Google Pay™ payment method is correctly configured and supported.



TIP: Your Judopay account and your app have been configured to support the Google Pay™ payment method.

Expected Outcome

The Buy with G Pay button will be displayed: *

google pay button displayed






Test Card Data

To simulate a successful request, use live cards to process test payments and preAuths in a production environment.

The card will not be charged when processing test payments in a production environment.



Calling the Mobile SDK Functions

For more information on integrating your Android app, including calling the Mobile SDK functions see Integrating with Judopay.



Google Pay™ Wallet Scenarios (Negative Flow)

Declines can occur for various reasons, it can be impossible to simulate all the negative flows. Depending on your use case and app configurations, some of the following scenarios may not be relevant to you.

Follow our suggested guidelines to simulate negative scenarios, to test your app’s error handling. This will give you confidence for when your integration goes live.

Important to Consider

  • How your app handles negative flows
  • Your customer's experience should a negative flow occur:
    • Logic to communicate error messages
    • Customise how your app responds
  • How to maintain application consistency

*These images are from our dummy app, your interface may look different.





Suggested Negative Test Scenario

To handle a decline scenario, attempt to perform a Google Pay™ wallet:

  • payment
  • preAuth

request where the user cancels the payment.

Expected Error

Depending on how your app has been configured to respond, you may redirect the user to:

  • their cart
  • an error page displaying an error message

*

google pay user cancels