English 中文(简体)
Php paypalewp on windows not working right, short return
原标题:

I am working on a payment script using paypalewp, it seems to work fine in the stage environment which is a centos linux box, however on my dev box it doesn t...

when I run the button creation script on my local machine (windows vista ultimate) the button generated code looks like this

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

however on the linux box it s like this...

-----BEGIN PKCS7-----
MIIJywYJKoZIhvcNAQcDoIIJvDCCCbgCAQAxggE6MIIBNgIBADCBnjCBmDELMAkG
A1UEBhMCVVMxEzARBgNVBAgTCkNhbGlmb3JuaWExETAPBgNVBAcTCFNhbiBKb3Nl
MRUwEwYDVQQKEwxQYXlQYWwsIEluYy4xFjAUBgNVBAsUDXNhbmRib3hfY2VydHMx
FDASBgNVBAMUC3NhbmRib3hfYXBpMRwwGgYJKoZIhvcNAQkBFg1yZUBwYXlwYWwu
Y29tAgEAMA0GCSqGSIb3DQEBAQUABIGAr6/ZXWGWvK/qZcA733jzX6zGROQ9ncEH
MdAxalJ6v8PgglioQlYOK0Dub7eze5VHFv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ky/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-----

It uses the same code, parameters, and ssl keys. The one on stage works fine when connecting to paypal, the one on my local box doesn t. There is something wrong with the configurations, any thoughts?

最佳回答

Okay after a lot of pain the problem was the version of the paypalewp I was using... it was an original version. I found a link in the paypal forums to a newer version updated by one of their developers... that version solved all the issues... here is the link to the code.

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

here is a link to the forum post

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

问题回答

暂无回答




相关问题
Brute-force/DoS prevention in PHP [closed]

I am trying to write a script to prevent brute-force login attempts in a website I m building. The logic goes something like this: User sends login information. Check if username and password is ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

定值美元

如何确认来自正确来源的数字。

Generating a drop down list of timezones with PHP

Most sites need some way to show the dates on the site in the users preferred timezone. Below are two lists that I found and then one method using the built in PHP DateTime class in PHP 5. I need ...

Text as watermarking in PHP

I want to create text as a watermark for an image. the water mark should have the following properties front: Impact color: white opacity: 31% Font style: regular, bold Bevel and Emboss size: 30 ...

How does php cast boolean variables?

How does php cast boolean variables? I was trying to save a boolean value to an array: $result["Users"]["is_login"] = true; but when I use debug the is_login value is blank. and when I do ...

热门标签