我正在使用paypalewp制作付款脚本,它在舞台环境中似乎可以正常工作,这是一个centos linux系统,但是在我的开发环境中却没有...

当我在本地计算机(Windows Vista Ultimate)上运行按钮创建脚本时,按钮生成的代码如下所示

-----BEGIN PKCS7-----
MIIBhwYJKoZIhvcNAQcDoIIBeDCCAXQCAQAxggE6MIIBNgIBADCBnjCBmDELMAkG
A1UEBhMCVVMxEzARBgNVBAgTCkNhbGlmb3JuaWExETAPBgNVBAcTCFNhbiBKb3Nl
MRUwEwYDVQQKEwxQYXlQYWwsIEluYy4xFjAUBgNVBAsUDXNhbmRib3hfY2VydHMx
FDASBgNVBAMUC3NhbmRib3hfYXBpMRwwGgYJKoZIhvcNAQkBFg1yZUBwYXlwYWwu
Y29tAgEAMA0GCSqGSIb3DQEBAQUABIGAKVEaEZz+JWT37bx71C0s+kfu/8GRu8RM
chF0uqIBAuRiw1WoChk/GefP73HtVZsDoJ+WjnnBXc90mGT8B+uLPnltF55dTB5H
9tXkCMKYho1iTZLJ+S6QkmQoZrB75/w2DEqoF7C2Ffy3UOA7eGCz++hcdbkfAQkE
kvwAFVLemnUwMQYJKoZIhvcNAQcBMBoGCCqGSIb3DQMCMA4CAgCgBAiiYx5HZyF/
6YAI39uNy89GnDg=
-----END PKCS7-----


但是在linux盒子上是这样的...

-----BEGIN PKCS7-----
MIIJywYJKoZIhvcNAQcDoIIJvDCCCbgCAQAxggE6MIIBNgIBADCBnjCBmDELMAkG
A1UEBhMCVVMxEzARBgNVBAgTCkNhbGlmb3JuaWExETAPBgNVBAcTCFNhbiBKb3Nl
MRUwEwYDVQQKEwxQYXlQYWwsIEluYy4xFjAUBgNVBAsUDXNhbmRib3hfY2VydHMx
FDASBgNVBAMUC3NhbmRib3hfYXBpMRwwGgYJKoZIhvcNAQkBFg1yZUBwYXlwYWwu
Y29tAgEAMA0GCSqGSIb3DQEBAQUABIGAr6/ZXWGWvK/qZcA733jzX6zGROQ9ncEH
MdAxalJ6v8PgglioQlYOK0Dub7eze5VHFv1M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NO9WHNpgtX2LpR
7E5i9YXzXaEsU3tVqgATXaTGbK+X2pKGU3+badWPNhGA8kHWsrqgGhrJ1yaKwaLa
JY+3sraKJi+l7C/zxFFk8MsXqRd5eFiRPZjooMWqnfqmXpyokqfMcO/TSBQOBGjA
TjEISa+kz7YtxKVPvKRS4HGo7bJv6w6ZqSquNPoyt/CrLAcllfPSjoSpPCboAlZt
Wt4FR3r9IES6T2gle1kJ5bxOYbUROgBORltoTu0p2jsu+ygmopqm8fuimdEgMYiA
JDzzf83nRwWA6+OF+2BElxlbeoGIS62qHDlo+I2fhixyyI469W5wBHTH8hvY7DP5
8UpTjPP2lcqM0ZDtlCqPBuJ3JOSpxJR9GX8R4nQFiDhVKCxC1SqNUP7tZzfp3MVM
zDzf2GXSuxoDwaK98u2hfVqoRY6+FG2AVxnTdz7JUEA10/Ojr5/eZP03SDbZ14TC
3u/rmag7cRSWanzOVj+GZoxBpGJF3MzuTM3QvYCVu2FMkMYBWSWjthmqPRAtFD0l
hZAY5zcZmQcZD1wj5qG+mg4eMUCyn5CeeOltFccqRTnOqNAZ7Qr0rttK6tXHhGOa
9ezI6T3nkRke16r5mv+B2uxou3IDaSNzDrpzE2AHlEZvsPYXVE61dPZHMUZn/R9H
Sk5w/BKVXBNGJeeBUsCC6QpO64KH244+ey99Vo3ChBYmbxp26x+bSCSPRWX38+bc
R5gWqVjNdyvhQqIpG7AZ2vDx7HB48wxDq8JhSBBXUzKR5w38Ft5k+O0zOmt1TzVg
V1JBeEtkqEHJT3i2pvgqmXRA/1wHakuVxwWHCzuFGZgaSZFwQmTckH7OMUSOdv5p
uNg2AQuUlPojonX9T9gg
-----END PKCS7-----


它使用相同的代码,参数和ssl键。连接贝宝时,舞台上的一个效果很好,而我本地盒子上的一个效果不好。配置有问题,有什么想法吗?

最佳答案

好吧,经过很多痛苦之后,问题出在我正在使用的paypalewp版本上……这是原始版本。我在paypal论坛中找到了指向其开发人员更新的较新版本的链接...该版本解决了所有问题...这是代码的链接。

http://www.pdncommunity.com/pdn/attachments/pdn/ewp/159/1/ewp.php

这是论坛帖子的链接

http://www.pdncommunity.com/pdn/board/message?board.id=ewp&message.id=87#M87

关于php - Windows上的PHP Paypalewp无法正常工作,短暂的返回,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/1775761/

10-12 01:46