Reputation: 1502
I integrated google pay with stripe and configured test environment in google pay and stripe . Now i want to test it , its not accepting stripe test card to my google pay . Is there any specific test card for google pay ? Is it ok to add original card? , Are they going to charge any money in test environment?
Upvotes: 9
Views: 18875
Reputation: 6250
The Google Pay API now supports test cards from your PSPs. Add configuration for your payment gateway under the tokenizationSpecification
parameter, when you use Google Pay in TEST
mode and you'll be able to complete successful and filed payment flows.
Upvotes: 1
Reputation: 1502
We can use our real card for testing, but in Google-Pay's test mode and/or environment no amount will be charged.
(For India there will be a charge of $1, but in few minutes it reversed back into the same account.)
Upvotes: 7
Reputation: 1
val googlePayLauncher = GooglePayPaymentMethodLauncher(
activity = this,
config = GooglePayPaymentMethodLauncher.Config(
environment = GooglePayEnvironment.Test,
merchantCountryCode = "IN",
merchantName = "merchantName"
),
readyCallback = ::onGooglePayReady,
resultCallback = ::onGooglePayResult
)
GooglePayEnvironment.Test test mode no amount will be charged
Upvotes: 0