带进度条的 Paypal 捐款跟踪
我正在为非营利组织设计和构建一个网站。他们想要一个 PayPal 捐赠按钮,我希望能够展示他们迄今为止筹集了多少资金。
我对 PayPal API 还不够熟悉,甚至无法接近。因此,我需要知道的是如何获取作为整数值的捐赠总额,以便我可以将其除以所需的金额并获得百分比。
有人最熟悉如何做到这一点吗?
I am designing and building a website for a non-profit. They want a PayPal Donate button and I'd like to be able to show how much they've raised so far.
I am not familiar enough with the PayPal API to even get close. So all I need to know is how to get the total amount donated as an integer value so that I can divide that by the amount needed and get a percentage.
Is anyone the least bit familiar with how to do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
PayPal 为此提供了一个“实验室”(测试版)小部件。看看https://giving.paypallabs.com/authenticate/review
PayPal has a 'labs' (beta) widget for this. Have a look at https://giving.paypallabs.com/authenticate/review
从未使用过 paypal API,但他们有代码示例:
Paypal 代码示例
这是他们的 getBalance 代码示例:
Never played with paypal API, but they have code samples:
Paypal Code Samples
this is their getBalance code sample: