#karunamoorthy

1 messages · Page 1 of 1 (latest)

dusty aspenBOT
trim viper
#

Hi there!

#

How can I help?

stray notch
#

Gpay is not showing my payment option

trim viper
#

Do you have a card in your Google Wallet in your phone?

stray notch
#

I have added sandbox account

#

When I am trying with createPlatformPayPaymentMethod it's showing google pay is working

#

but If I try with presentPaymentSheet it's not showing

trim viper
#

Can you share the PaymentIntent ID (pi_xxx) where it's not working?

stray notch
#

pi_3NSyfDIEVwXELSmT1UupokQV_secret_7BNsaTarr4mbrQlNNS7sjLr9X

trim viper
#

Sorry for the delay. I see payment_method_types: [ "card" ]. So if you have a card in your google wallet, you should see google pay.

#

Can you share some screenshots of the issue and also your code?

stray notch
#

I have one query here: Google pay will work sandbox account in india?

sweet hill
#

No Google Pay isn't available in India.

stray notch
#

When I am using PlatformPayButton

#

I can see google play option in India

#

const createPaymentMethod = async () => {
const { error, paymentMethod } = await createPlatformPayPaymentMethod({
googlePay: {
amount: 12,
currencyCode: 'USD',
testEnv: true,
merchantName: 'Test',
merchantCountryCode: 'US',
},
});

if (error) {
  Alert.alert(error.code, error.message);
  return;
} else if (paymentMethod) {
  Alert.alert(
    'Success',
    `The payment method was created successfully. paymentMethodId: ${paymentMethod.id}`
  );
}

};

return (
<View >
<PlatformPayButton
type={PlatformPay.ButtonType.GooglePayMark}
onPress={createPaymentMethod}
style={{
width: '100%',
height: 50,
}}
/>
</View>
);

sweet hill
#

Did you made a Payment from Indian IP ?

stray notch
#

yes