简体   繁体   English

android验证paypal付款

[英]android verify paypal payment

I am integrate paypal in android app. 我在Android应用程序中集成了paypal。 payment is fine,via mobile sdk. 付款很好,通过移动sdk。 But verify have problem. 但验证有问题。 1) is verify have to use classic API? 1)验证是否必须使用经典API? 2) when I use Adaptive Payments to verify, according https://developer.paypal.com/webapps/developer/docs/integration/mobile/verify-mobile-payment/ 2)当我使用自适应支付进行验证时,根据https://developer.paypal.com/webapps/developer/docs/integration/mobile/verify-mobile-payment/

There is a sdk_cert.p12 file setting on the sdk-config.properies, acct3.CertPath=resource/sdk-cert.p12 sdk-config.properies上有sdk_cert.p12文件设置,acct3.CertPath = resource / sdk-cert.p12

Now I always get error. 现在我总是得到错误。 java.security.NoSuchAlgorithmException: KeyManagerFactory SunX509 implementation not found QUESTION: 1) I am using android, how could I set the right certpath?? java.security.NoSuchAlgorithmException:KeyManagerFactory未找到SunX509实现问题:1)我正在使用android,我怎么能设置正确的certpath? 2) could I not use this certpath?? 2)我不能使用这个证书路径?

Thx 谢谢

Jeff here from the PayPal Mobile SDK team. Jeff来自PayPal Mobile SDK团队。

1) Yes, for the time being, you'll need to use the classic Adaptive Payments API to verify PayPal transactions. 1)是的,目前,您需要使用经典的Adaptive Payments API来验证PayPal交易。

2) This error is because the version of Java in Android is not compatible with the PayPal Java SDK. 2)此错误是因为Android中的Java版本与PayPal Java SDK不兼容。 The Java SDK was built for server side transactions. Java SDK是为服务器端事务构建的。 In fact, you should NOT be verifying transactions on the device at all, but rather should be verifying the transaction on your own server (server-to-server calls). 实际上,您根本不应该在设备上验证事务,而应该在您自己的服务器上验证事务(服务器到服务器调用)。 You can use any language you want to make the server-to-server calls, as long as you verify the payment is valid on your own servers before shipping goods or rendering services. 您可以使用任何您想要进行服务器到服务器呼叫的语言,只要您在运送货物或提供服务之前验证付款在您自己的服务器上是否有效。

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

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