android verify paypal payment

谁说我不能喝 提交于 2020-01-25 16:39:46

问题


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/

There is a sdk_cert.p12 file setting on the sdk-config.properies, 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?? 2) could I not use this certpath??

Thx


回答1:


Jeff here from the PayPal Mobile SDK team.

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

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.



来源:https://stackoverflow.com/questions/18623950/android-verify-paypal-payment

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!