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

Does this SDK support Google Pay? #626

Open guan1 opened 5 years ago

guan1 commented 5 years ago

Hi,

I'm asking this because

So I'm trying my luck here. Can someone help me?

Best regards, Andre

vixdug commented 5 years ago

Hey @guan1

The ReadMe goes over the implementation for Google Pay: https://github.com/Shopify/mobile-buy-sdk-android#google-pay-checkout-

Without seeing specifics into have you have built this, I'd say the error here sounds like you may be utilizing test credentials and attempting to make a purchase. You may need to head here: https://developers.google.com/pay/api/web/guides/test-and-deploy/request-prod-access

If you can provide any more information that would be great.

guan1 commented 5 years ago

Hi,

thanks for the really quick answer. I've already requested prod access using Google's form. But the only answers from Google were: 'At this time, all Shopify partners need to visit here (linking to Shopify's API doc) to start their integration with the Google Pay API. Thanks!' and 'You would need to reach Shopify support team since you're using their platform.'

What we did:

So what you are saying is, that we have to get production access to Google Pay? I, of course, can try it again - but until now the only response was that we should contact Shopify. So I assumed, that there has to be something done on Shopify's side. And using Google Pay with your mobile SDK should work? I'm asking this because in my opinion the sample code was written with the old 'Android Pay' in mind, but I might be mistaken.

Thanks again. Best regards, Andre

guan1 commented 5 years ago

Hi,

I contacted the Google Pay support again - that‘s their answer: „Our process hasn't changed, therefore, you must work with Shopify to enable the configuration within your Shopify store. We apologize for the inconvenience„

But we‘ve gone through your documentations multiple times - and we think we have done everything we could find there.

Any suggestions?

vixdug commented 5 years ago

Hi @guan1 - Have you enabled Google Pay from the Shopify admin? https://help.shopify.com/en/manual/payments/accelerated-checkouts/google-pay#activate-google-pay

guan1 commented 5 years ago

Hi @vixdug,

yes, it's enabled (when checking out using the Web version of the store and using Google Pay - everything works. So it's enabled and working).

But it does not work with your native SDK.

We've integrated GooglePay in other apps (without the Shopify SDK), and everything worked fine there. Now - with your native SDK, we've the first time such problems (using Apple Pay on iOS worked also flawless). I guess, you have a working sample project somewhere? Or a complete guide? As said, here on GitHub the provided sample project is missing critical parts of the Google Pay integration.

Maragues commented 4 years ago

Any update here?

All code related to Google Pay is commented out in the sample project or has nothing to do with https://github.com/Shopify/mobile-buy-sdk-android#google-pay-checkout-

guan1 commented 4 years ago

@Maragues not from my side. Never got it working. The SDK developers never really responded, the Shopify support told me, they don‘t provide support for their (!) SDK and I should ask the ‚community‘. But maybe you have more luck now - if you somehow find a solution, it would be great, if you could post it here.

markj commented 4 years ago

We also had to give up on it even as a significant Shopify Plus customer. We were bounced between Google and Shopify. Google saying we had to have it working in test mode with Shopify before they can accept it and Shopify saying there's no support for test mode and you need a production setup from Google first!

Maragues commented 4 years ago

I get

CheckoutCompleteWithTokenizedPayment access denied

when trying to query a tokenized payment. I have no clue if it's a misconfiguration of the stores or a query issue

Where did the rest of you got stuck?

We are putting this in hold for now. What a shame on Shopify's support team :(

Danyaga commented 4 years ago

Same for us guys. Stuck here for couple of months.

They are using a deprecated API in their SDK which looks like to be not usable anymore and even if you use the the new version checkoutCompleteWithTokenizedPaymentV3 , composing the mutation manually, there is now way to make it work and no way to debug it even.

Akash-Manjhi commented 3 years ago

@guan1 can you please tell how you have tested in Test environment and completed checkout. For me in Test Environment it is giving error says ;- Credit card can't be blank, Credit card Failed to decrypt GooglePay token. Error: R2D2::SignatureInvalidError. I am also using test environment and Bogus gateway.