Android的确认支付宝付款 [英] android verify paypal payment

查看:226
本文介绍了Android的确认支付宝付款的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Android应用程序集成贝宝。
支付是好的,通过移动SDK。
但要验证有问题。
1)校验必须使用经典的API?
2)当我使用自适应付款核实,根据的https://developer.paypal.com/webapps/developer/docs/integration/mobile/verify-mobile-payment/

I am integrate paypal in android app. payment is fine,via mobile sdk. But verify have problem. 1) is verify have to use classic API? 2) when I use Adaptive Payments to verify, according https://developer.paypal.com/webapps/developer/docs/integration/mobile/verify-mobile-payment/

有一个sdk_cert.p12文件的SDK-config.properies,acct3.CertPath =资源/ SDK-cert.p12设置

There is a sdk_cert.p12 file setting on the sdk-config.properies, acct3.CertPath=resource/sdk-cert.p12

现在我总是得到错误。
java.security.NoSuchAlgorithmException:的KeyManagerFactory SunX509实施未找到
题:
1)我采用了android,我怎么能设置正确的证书路径?
2)我能不能用这个证书路径??

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?? 2) could I not use this certpath??

THX

推荐答案

杰夫这里从PayPal手机支付SDK团队。

Jeff here from the PayPal Mobile SDK team.

1)是的,暂时的,你需要使用经典的自适应付款API来验证支付宝交易。

1) Yes, for the time being, you'll need to use the classic Adaptive Payments API to verify PayPal transactions.

2)此错误是因为Java的Andr​​oid的版本是不是PayPal的Java SDK的兼容。 Java SDK的是专为服务器端的交易。事实上,你不应该在设备上的所有验证交易,而是应该在自己的服务器(服务器到服务器的调用)上验证交易。你可以使用任何语言,你想使服务器到服务器的调用,只要你确认支付是在自己的服务器上有效运送货物或提供服务之前。

2) This error is because the version of Java in Android is not compatible with the PayPal Java SDK. The Java SDK was built for server side transactions. 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.

这篇关于Android的确认支付宝付款的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆