Shopify / mobile-buy-sdk-android

Shopify’s Mobile Buy SDK makes it simple to sell physical products inside your mobile app. With a few lines of code, you can connect your app with the Shopify platform and let your users buy your products using their credit card.
MIT License
216 stars 136 forks source link

Google Pay integration issue #665

Open rushabh13 opened 4 years ago

rushabh13 commented 4 years ago

Hi,

I have integrated Google Pay with the help of Shopify SDK, But getting "this merchant is not enabled for googlepay" on production environment. (My Client has already made the Shopify Shop live, So I have only option to test in the Production environment).

Maybe I have to make a request for production access from the Google Pay team which is mentioned here, but the issue is, By which credential should I do login process, as while enabling the Google Pay, Shopify team doesn't ask me or give me the credential for Google Pay related checkout. They have just the tickbox option to enable it inside the ACCELERATED CHECKOUTS section(Yes, I have enabled the Google Pay option inside my Shopify shop)

vixdug commented 4 years ago

Hi @rushabh13

One issue that some of our partners have had in the past with Google Pay is the ability to create a test transaction that is required as part of the Google Pay approval process. Here are the instructions to create a test transaction:

Let me know how this goes

Maragues commented 4 years ago

Thanks for the update @vixdug

Are there plans to update the main readme? It's still using the old checkoutCompleteWithTokenizedPayment

It be of great help to have working example, instead of digging into issues

Danyaga commented 4 years ago

Thanks @vixdug.

It would be good to understand if you plan to improve the Google Pay feature, I mean, in general, since as you can see many issues are still open about this topic without an official answer. IMHO, the main problem for us is the leaking of tools/logs/streams of events to understand what is the problem, because, of course, there are plenty of different cases here which are impossible to debug from our end.

My team implemented the same flow (items in the cart, complete checkout, payment) in half a day on iOS with Apple Pay on Android we are still opening the browser after 3 months.

vixdug commented 4 years ago

@Maragues @Danyaga That is the plan. Hoping to have a more clear workflow for Google Pay integrations - which is what I'm working on now. Were you able to test out the steps I provided with success?

Maragues commented 4 years ago

That's great to hear @vixdug 👏

I can't test the steps you proposed, sorry. I won't be able to invest time into Google Pay in the upcoming weeks.

In the end we removed Google Pay button and rely on webview checkout. If the readme is updated, we will consider adding back the GPay button.

Thanks!

Maragues commented 3 years ago

Hi @vixdug , can you share an update of the progress on Google Pay integrations?

Thanks!

Akash-Manjhi commented 3 years ago

I have given test true but still I am facing - "There was an issue processing your payment. Try again or use a different payment method". Storefront.TokenizedPaymentInputV3 input = new Storefront.TokenizedPaymentInputV3(moneyInput, idempotencyKey, checkoutData.getShippingAddressInput(), checkoutData.getPaymentData(), Storefront.PaymentTokenType.GOOGLE_PAY).setTest(true);

For Google pay I have used Test environment. I am passing in paymentData the json which I receive after payment in Google Pay. Payment is successful from google pay but during polling for checkout completion I receive the payment data but order is null with error message: "There was an issue processing your payment. Try again or use a different payment method". Anyone have any Idea?

Akash-Manjhi commented 3 years ago

hello @vixdug I am doing the same steps to checkout, used the mutation checkoutCompleteWithTokenizedPaymentV3; In body have type as GOOGLE_PAY and test set to true also, but still getting issue "There was an issue processing your payment. Try again or use a different payment method". Can you please help Your quick response will be highly appreciated. Thanks

sergiotreeline commented 2 years ago

Hi guys, any news? I am using checkoutCompleteWithTokenizedPaymentV3; In body have type as GOOGLE_PAY and test set to true also, but still getting issue "There was an issue processing your payment. Try again or use a different payment method". :(

Thanks

DenisBronx commented 1 year ago

Hi guys, any update on this? I'm facing the same issue