dpi10335 2016-08-27 20:08
浏览 127
已采纳

使用PHP动态生成SIMPLE Paypal按钮

I wanted to add PayPal functionality to my Wordpress plug-in, so I ventured over to PayPal's developer page and scanned through it. I couldn't help but notice how vague and complicated their documentation was.

On their button manager API page, step 4 literally says " ... develop the API code necessary to create and manage your buttons." This is not helpful whatsoever. With a little more digging, I found this PHP SDK, but implementing it is poorly explained and I can't follow it. To be honest, it looks like overkill anyway. All I want to do is send basic information:

  • Merchant's e-mail (to which payment will be sent)
  • Item cost
  • Item quantity

Logging into my own PayPal account and generating a button using their form will not work for this. I am trying to generate a button dynamically, based on the information the user enters into the plug-in. I would also prefer the method to be more secure than using the HTML hidden input fields.

If there is absolutely no easy way to send PayPal these three simple things, then I would greatly appreciate seeing a more thorough explanation of the SDK. I do not know what composer is, nor what bootstrap.php is supposed to be, nor do I know where to save the files that use the SDK's functionality. Once those questions are answered, I only want to know how to send those three things and the bare necessities. I don't need all this extra information.

  • 写回答

1条回答 默认 最新

报告相同问题?

悬赏问题

  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥15 c++头文件不能识别CDialog