Paypal经常性支付配置文件API

时间:2014-12-29 12:19:42

标签: wordpress paypal

我正在尝试使用WordPress中的paypal API创建定期付款配置文件。从用户那里获取所需信息后,我正在使用以下网址发出请求。

https://api-3t.sandbox.paypal.com/USER=xylon-facilitator_api1.sjinnovation.com&PWD=9GDLFHDX3TQYWX4F&SIGNATURE=AO0B8EcgGN1ir1vqHVNLJ4fmaGxoAbfv5uwkwVkBxkD8vVif33kMJlD0&METHOD=CreateRecurringPaymentsProfile&CREDITCARDTYPE=Visa&ACCT=4311196648584326&EXPDATE=122019&FIRSTNAME=Xylon&LASTNAME=Gracias&PROFILESTARTDATE=2014-12-29T12:14:38Z&BILLINGPERIOD=Month&BILLINGFREQUENCY=1&AMT=20

但是对于我得到以下数据的回复

Array ( [headers] => Array ( [date] => Mon, 29 Dec 2014 12:14:39 GMT [server] => Apache [content-length] => 445 [connection] => close [content-type] => text/html; charset=iso-8859-1 ) [body] =>
Not Found

The requested URL /cgi-bin/ppapi was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache Server at api-3t.sandbox.paypal.com Port 443
[response] => Array ( [code] => 404 [message] => Not Found ) [cookies] => Array ( ) [filename] => ) 

我正在使用以下链接作为参考

https://developer.paypal.com/docs/classic/paypal-payments-pro/integration-guide/WPRecurringPayments/

我正在使用直接付款方式

1 个答案:

答案 0 :(得分:0)

请查看此处的API参考文档:https://developer.paypal.com/docs/classic/api/#merchant

......然后是网上的一些例子。正如404通常所示,您的网址不正确(如果您使用签名身份验证和NVP,则可能会发布到https://api-3t.sandbox.paypal.com/nvp;您省略了路径" nvp")还有更多在你的变量处理之后发生问题。