0

I'm integrating mobile payments with Paypal. I just have one question.

I'm thinking about two posible implementations:

1) Using Android SDK to make payments with Paypal and after confirmation, put the data to the server 2) Make Paypal communication via server side. When an user wants to buy through android app, it will ask the server to do it. After that, server responds with the appropiate answer.

I think I'm chosing the second one, but, any advices?

Also, server is being developed with node.js. Any advices of how to handle paypal payments? I've seen paynode (https://github.com/jamescarr/paynode) but I don't know if its the right choice.

Thanks!

4

1 回答 1

0

如果您正在构建本机应用程序,则应使用 #1(位于https://github.com/paypal/PayPal-Android-SDK的新 SDK )。如果您正在构建移动 web 应用程序,则必须执行 #2。您可以构建一个本地应用程序并让服务器创建付款,但您仍然需要提供一个 PayPal 托管的 Web 视图来验证用户身份。

请注意,即使使用#1,您仍然需要构建一个服务器端组件来验证 PayPal 是否收到了付款。

于 2013-06-05T17:30:44.303 回答