views:

31

answers:

1

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
MdAxalJ6v8PgglioQlYOK0Dub7eze5VHFv1MCirWv47OUSpBQFDhPUb70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i9YXzXaEsU3tVqgATXaTGbK+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?

+1  A: 

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

Isisagate
You were using different versions of the library on the server and dev machines? or was this an issue with the library that didn't work well with something on your dev machine (like windows, for instance) ?
Carlos Lima
The issue was with the library on windows. I had the same version on dev and stage. Worked on linux, didn't work on my windows machine... I upgraded the library to the one mentioned and everything started working.
Isisagate