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 微信会员卡等级和折扣规则
  • ¥15 微信公众平台自制会员卡可以通过收款码收款码收款进行自动积分吗
  • ¥15 随身WiFi网络灯亮但是没有网络,如何解决?
  • ¥15 gdf格式的脑电数据如何处理matlab
  • ¥20 重新写的代码替换了之后运行hbuliderx就这样了
  • ¥100 监控抖音用户作品更新可以微信公众号提醒
  • ¥15 UE5 如何可以不渲染HDRIBackdrop背景
  • ¥70 2048小游戏毕设项目
  • ¥20 mysql架构,按照姓名分表
  • ¥15 MATLAB实现区间[a,b]上的Gauss-Legendre积分