Radhakrishnan
Radhakrishnan

Reputation: 1502

Test google pay with stripe

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

Answers (3)

Jose L Ugia
Jose L Ugia

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

Radhakrishnan
Radhakrishnan

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

E Hisab
E Hisab

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

Related Questions