#karunamoorthy
1 messages · Page 1 of 1 (latest)
Gpay is not showing my payment option
Do you have a card in your Google Wallet in your phone?
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
Can you share the PaymentIntent ID (pi_xxx) where it's not working?
pi_3NSyfDIEVwXELSmT1UupokQV_secret_7BNsaTarr4mbrQlNNS7sjLr9X
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?
I have one query here: Google pay will work sandbox account in india?
No Google Pay isn't available in India.
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>
);
Did you made a Payment from Indian IP ?
yes