简体   繁体   English

反应原生谷歌支付和条纹集成错误

[英]React native google pay and stripe integration error

I'm developing an application with react native and I am using this library https://github.com/tipsi/tipsi-stripe in order to use Google Pay with stripe integration.我正在开发一个带有本机反应的应用程序,我正在使用这个库https://github.com/tipsi/tipsi-stripe以便将 Google Pay 与条带集成一起使用。 I already linked the test key from stripe and the merchant Id from play store.我已经链接了来自 Stripe 的测试密钥和来自 Play 商店的商家 ID。 I have a serious issue though.不过我有一个严重的问题。 After running the app, when the Google Pay popup form opens, i get the Google Pay dialog but with a message "Unrecognized app. Please make sure you trust this app before proceeding".运行该应用程序后,当 Google Pay 弹出表单打开时,我收到 Google Pay 对话框,但显示消息“无法识别的应用程序。请确保在继续之前信任此应用程序”。 However when I enter a test card and press continue I get an additional error that says Transaction declined: invalid payment method.但是,当我输入测试卡并按继续时,我收到一个额外的错误,提示交易被拒绝:付款方式无效。 [OR-CCSEH-05] I would appreciate any help. [OR-CCSEH-05] 如有任何帮助,我将不胜感激。

See image below见下图泰格

When testing Google Pay, you actually use real credit cards.在测试 Google Pay 时,您实际上使用的是真实的信用卡。 That said, I'd be doubly positive you've got your environment set to use Test Mode in Google Pay.也就是说,我非常肯定您已将环境设置为在 Google Pay 中使用测试模式。 Outside of Tipsi, you'd usually set that with the WalletConstants.ENVIRONMENT_TEST constant.在 Tipsi 之外,您通常会使用WalletConstants.ENVIRONMENT_TEST常量来设置它。 Hope that helps!希望有帮助!

i've contacted google regarding this case, as i've been facing similar one and upon it's inspection i've received the following reply:我已经就这个案例联系了谷歌,因为我遇到了类似的问题,经过检查,我收到了以下回复:

Thanks for being Patient.感谢您的耐心。 I apologize for the inconvenience caused.对于造成的不便,我深表歉意。

Upon checking, I understand that you're unable to add testing cards.经核实,我了解到您无法添加测试卡。 I would like to inform you that testing cards can't be added to Google Payment profile as payment Method.我想通知您,测试卡不能作为付款方式添加到 Google 付款资料中。

Thanks!谢谢!

upon further investigation by Stripe it self i've been assured: For a bit of context on how Google Pay works to test payments.经过 Stripe 的进一步调查,我得到了保证:有关 Google Pay 如何测试付款的一些背景信息。 When you're using your test mode API keys, the actual details of the card are ignored, and they get replaced with the Stripe 4242 test card.当您使用测试模式 API 密钥时,卡的实际详细信息将被忽略,并被 Stripe 4242 测试卡替换。 To test authentication you will not be able to add the test cards to your Google Pay account however there is a work around for this, you add our 3DS test cards to Chrome and use the PaymentRequest button with them (making sure to choose them, and not Google Pay itself).要测试身份验证,您将无法将测试卡添加到您的 Google Pay 帐户,但是有一个解决方法,您可以将我们的 3DS 测试卡添加到 Chrome 并使用它们的 PaymentRequest 按钮(确保选择它们,并且不是 Google Pay 本身)。 Unfortunately there is no direct method to testing this in your the app.不幸的是,没有直接的方法可以在您的应用程序中对此进行测试。

so setting WalletConstants.ENVIRONMENT_TEST at 5th step of their tutorial should be sufficient and then use your real card.所以在他们教程的第 5 步设置 WalletConstants.ENVIRONMENT_TEST 就足够了,然后使用你的真实卡。 https://developers.google.com/pay/api/android/guides/tutorial https://developers.google.com/pay/api/android/guides/tutorial

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM