Paypal API 和 Paypal 的示例代码? [英] Paypal API and Paypal's Sample Code?

查看:54
本文介绍了Paypal API 和 Paypal 的示例代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

https://www.x.com/community/ppx/code_samples

示例代码返回 ACK,但正确的响应在哪里?

The sample code returns ACK, but where is the proper response?

例如Getbalance,示例代码返回ACKhttps://cms.paypal.com/cms_content/US/en_US/files/developer/nvp_GetBalance_cs.txt

For example Getbalance, sample code returns ACK https://cms.paypal.com/cms_content/US/en_US/files/developer/nvp_GetBalance_cs.txt

但文档显示它返回其他值?https://www.x.com/docs/DOC-1186

but the document shows it returns other values? https://www.x.com/docs/DOC-1186

推荐答案

就是这样 - 示例代码.如果您想返回其他值,您必须自己填写该功能.他们提供的示例代码虽然不是很好,但我发现我必须编写自己的库来调用他们的 NVP 服务.尽管看到他们的文档也不是很好,但这可能很困难.但是,如果您不想编写任何代码,则可以为其 SOAP 服务生成一个代理类.

It's just that - sample code. If you want to return the other values you have to fill in that functionality yourself. The sample code they provide is not so good though and I've found that I had to write my own library for calling their NVP services. That can be tough though seeing as how their documentation isn't great either. However, if you don't want to write any code you could generate a proxy class for their SOAP service.

这篇关于Paypal API 和 Paypal 的示例代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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