Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

PayPal WPP Direct Payments & Express Checkout Support


dynamoeffects

Recommended Posts

Is that in addition to the virtual product fix that's in 0.7.1?

 

Actually, it turns out the CVV2 was correct, but the customer had reversed the billing and shipping addresses. So that means the AVS error did not appear to the customer. I spoke with tech support at paypal, who said if there is an AVS error, the the CVV2 error will also occur. I just installed .7.1 I will test it with a bad address on a good card and see what happens.

 

I should note that I recently installed a change in checkout_shipping.php, so that if there are zero weight items in the cart, the checkout process will skip directly to the payment page. Wonder if that is adding a glitch.

 

thanks,

 

Leslie

Link to comment
Share on other sites

Ok, I just tested the above with a good card only with the wrong address and received the error:

 

AVS failed. (10505)

The AVS returned a code which resulted in PayPal declining the transaction. Attempt another card or check address.

 

Also, no order was recorded in the admin. Seems like everything is fine with giving the error to the customers.

 

I do have a question if anyone can please advise me what to do. I noticed if I submit payment information on the payment page, but forget to enter something or input incorrect info, all the cc info is deleted and I have to reenter the card number. Is this a security feature? It was annoying to me. I'm sure the customer would think the same. Any idea how I could fix that? or should that stay that way?

 

Also, if I enter the payment info then later decide to edit the billing address from the confirmation screen, I must go back and reenter all the payment info. This is kind of a downer too.

 

Thank you for any help,

Leslie

Link to comment
Share on other sites

Hey all, I am new to this and have been following the development from version .5 I had the site up and running and things were working well in Sandbox. Then version .6 came out and I installed it and things went wrong. Thinking I screwed things up since I tweaked a few other things, I wiped the install and reinstalled everything. It still didn't work, so I left it alone temporarily. Then, version .7.1 came out so I tried again. Still nothing.

 

Anyhow, after messing with it for about 10 hours, I finally reinstalled everything included in version .5 and things were working again. So, I installed the one component that was changed in .6 and it didn't work again. Went back and replaced that with the component from version .5 and it was working again. So, I did the same with .7.1 and same thing. Anyhow, this does not work for me at all with any release above .5

 

Essentially, I would be getting the blank screen on the ec_process and the checkout_confirmation pages. I checked and rechecked my pear installs, cert keys, passwords, yadda yadda yadda.

 

Here is my error log for when version .7.1 was installed:

 

[sat Mar 11 19:38:20 2006] [client 24.159.109.160] PHP Warning: main(): open_basedir restriction in effect. File(/usr/share/pear/PEAR.php) is not within the allowed path(s): (/home/httpd/vhosts/bassbait.com/httpsdocs:/tmp) in /home/httpd/vhosts/bassbait.com/httpsdocs/store/pear/Services/PayPal.php on line 11, referer: https://bassbait.com/store/checkout_shippin...cd4e41a8d2fd5e6

[client 24.159.109.160] PHP Warning: main(PEAR.php): failed to open stream: Operation not permitted in /home/httpd/vhosts/bassbait.com/httpsdocs/store/pear/Services/PayPal.php on line 11, referer: https://bassbait.com/store/checkout_shippin...cd4e41a8d2fd5e6

[client 24.159.109.160] PHP Fatal error: main(): Failed opening required 'PEAR.php' (include_path='.:/usr/share/pear:/home/httpd/vhosts/bassbait.com/httpsdocs/store/pear/') in /home/httpd/vhosts/bassbait.com/httpsdocs/store/pear/Services/PayPal.php on line 11, referer: https://bassbait.com/store/checkout_shippin...cd4e41a8d2fd5e6

[client 24.159.109.160] PHP Warning: main(): open_basedir restriction in effect. File(/usr/share/pear/PEAR.php) is not within the allowed path(s): (/home/httpd/vhosts/bassbait.com/httpsdocs:/tmp) in /home/httpd/vhosts/bassbait.com/httpsdocs/store/pear/Services/PayPal.php on line 11, referer: https://bassbait.com/store/checkout_shippin...cd4e41a8d2fd5e6

[client 24.159.109.160] PHP Warning: main(PEAR.php): failed to open stream: Operation not permitted in /home/httpd/vhosts/bassbait.com/httpsdocs/store/pear/Services/PayPal.php on line 11, referer: https://bassbait.com/store/checkout_shippin...cd4e41a8d2fd5e6

[client 24.159.109.160] PHP Fatal error: main(): Failed opening required 'PEAR.php' (include_path='.:/usr/share/pear:/home/httpd/vhosts/bassbait.com/httpsdocs/store/pear/') in /home/httpd/vhosts/bassbait.com/httpsdocs/store/pear/Services/PayPal.php on line 11, referer: https://bassbait.com/store/checkout_shippin...cd4e41a8d2fd5e6

[client 24.159.109.160] PHP Warning: main(): open_basedir restriction in effect. File(/usr/share/pear/PEAR.php) is not within the allowed path(s): (/home/httpd/vhosts/bassbait.com/httpsdocs:/tmp) in /home/httpd/vhosts/bassbait.com/httpsdocs/store/pear/Services/PayPal.php on line 11, referer: https://bassbait.com/store/checkout_confirm...cd4e41a8d2fd5e6

[client 24.159.109.160] PHP Warning: main(PEAR.php): failed to open stream: Operation not permitted in /home/httpd/vhosts/bassbait.com/httpsdocs/store/pear/Services/PayPal.php on line 11, referer: https://bassbait.com/store/checkout_confirm...cd4e41a8d2fd5e6

[client 24.159.109.160] PHP Fatal error: main(): Failed opening required 'PEAR.php' (include_path='.:/usr/share/pear:/home/httpd/vhosts/bassbait.com/httpsdocs/store/pear/') in /home/httpd/vhosts/bassbait.com/httpsdocs/store/pear/Services/PayPal.php on line 11, referer: https://bassbait.com/store/checkout_confirm...cd4e41a8d2fd5e6

[client 24.159.109.160] PHP Warning: main(): open_basedir restriction in effect. File(/usr/share/pear/PEAR.php) is not within the allowed path(s): (/home/httpd/vhosts/bassbait.com/httpsdocs:/tmp) in /home/httpd/vhosts/bassbait.com/httpsdocs/store/pear/Services/PayPal.php on line 11, referer: https://bassbait.com/store/checkout_confirmation.php

[client 24.159.109.160] PHP Warning: main(PEAR.php): failed to open stream: Operation not permitted in /home/httpd/vhosts/bassbait.com/httpsdocs/store/pear/Services/PayPal.php on line 11, referer: https://bassbait.com/store/checkout_confirmation.php

[client 24.159.109.160] PHP Fatal error: main(): Failed opening required 'PEAR.php' (include_path='.:/usr/share/pear:/home/httpd/vhosts/bassbait.com/httpsdocs/store/pear/') in /home/httpd/vhosts/bassbait.com/httpsdocs/store/pear/Services/PayPal.php on line 11, referer: https://bassbait.com/store/checkout_confirmation.php

[client 24.159.109.160] PHP Warning: main(): open_basedir restriction in effect. File(/usr/share/pear/PEAR.php) is not within the allowed path(s): (/home/httpd/vhosts/bassbait.com/httpsdocs:/tmp) in /home/httpd/vhosts/bassbait.com/httpsdocs/store/pear/Services/PayPal.php on line 11, referer: https://bassbait.com/store/checkout_confirmation.php

[client 24.159.109.160] PHP Warning: main(PEAR.php): failed to open stream: Operation not permitted in /home/httpd/vhosts/bassbait.com/httpsdocs/store/pear/Services/PayPal.php on line 11, referer: https://bassbait.com/store/checkout_confirmation.php

[client 24.159.109.160] PHP Fatal error: main(): Failed opening required 'PEAR.php' (include_path='.:/usr/share/pear:/home/httpd/vhosts/bassbait.com/httpsdocs/store/pear/') in /home/httpd/vhosts/bassbait.com/httpsdocs/store/pear/Services/PayPal.php on line 11, referer: https://bassbait.com/store/checkout_confirmation.php

[client 24.159.109.160] PHP Warning: main(): open_basedir restriction in effect. File(/usr/share/pear/PEAR.php) is not within the allowed path(s): (/home/httpd/vhosts/bassbait.com/httpsdocs:/tmp) in /home/httpd/vhosts/bassbait.com/httpsdocs/store/pear/Services/PayPal.php on line 11, referer: https://bassbait.com/store/checkout_confirmation.php

[client 24.159.109.160] PHP Warning: main(PEAR.php): failed to open stream: Operation not permitted in /home/httpd/vhosts/bassbait.com/httpsdocs/store/pear/Services/PayPal.php on line 11, referer: https://bassbait.com/store/checkout_confirmation.php

[client 24.159.109.160] PHP Fatal error: main(): Failed opening required 'PEAR.php' (include_path='.:/usr/share/pear:/home/httpd/vhosts/bassbait.com/httpsdocs/store/pear/') in /home/httpd/vhosts/bassbait.com/httpsdocs/store/pear/Services/PayPal.php on line 11, referer: https://bassbait.com/store/checkout_confirmation.php

[client 24.159.109.160] PHP Warning: main(): open_basedir restriction in effect. File(/usr/share/pear/PEAR.php) is not within the allowed path(s): (/home/httpd/vhosts/bassbait.com/httpsdocs:/tmp) in /home/httpd/vhosts/bassbait.com/httpsdocs/store/pear/Services/PayPal.php on line 11, referer: https://bassbait.com/store/checkout_confirmation.php

[client 24.159.109.160] PHP Warning: main(PEAR.php): failed to open stream: Operation not permitted in /home/httpd/vhosts/bassbait.com/httpsdocs/store/pear/Services/PayPal.php on line 11, referer: https://bassbait.com/store/checkout_confirmation.php

[client 24.159.109.160] PHP Fatal error: main(): Failed opening required 'PEAR.php' (include_path='.:/usr/share/pear:/home/httpd/vhosts/bassbait.com/httpsdocs/store/pear/') in /home/httpd/vhosts/bassbait.com/httpsdocs/store/pear/Services/PayPal.php on line 11, referer: https://bassbait.com/store/checkout_confirmation.php

 

Sorry for the long post, but I figured it could help in the future development of this contribution or someone could let me know what is not set right to get the newer releases to work.

 

BTW-when it is working (as it is right now with .5) it is an excellent program. As soon as I get paid from my client, I will definitely be sending some financial support.

Edited by carldavis
Link to comment
Share on other sites

AVS and CVV2 code error - please help

 

I have this week gone live with my site using this module version .7 (which is great! - thank you very much). Yesterday I received an order that shows there was both an AVS and CVV2 error. I did not notice it until I realized that paypal never sent a notice of payment. I am using Paypal IPN.

 

see comments below:

 

Transaction ID:

Payment Type: PayPal Direct Payment

Payment Status: Completed

AVS Code: Error

CVV2 Code: Error

 

Leslie,

This describes the bug in 0.6x perfectly. To the best of my knowledge, it has been fixed in 0.7. 0.6 would accept error transactions as correct due to a bug in the error handling code. Did you ever install one of the 0.6 versions?

 

--Glen

Link to comment
Share on other sites

Alright, with the help of the ISP I got my install talking properly with the PEAR modules (Finally). I had to add an include line to php.ini pointing to the pear module. Actually, I had to create a php.ini file altogether.

 

Now, I have other problem(s)

 

1 when selecting the paypal express on the delivery page I get :

An error occured when we tried to contact PayPal's servers.

()

 

2. when i skip the paypal express on the delivery page and choose the radio button for express in the payment options page, it takes me to paypal with this error:

 

This transaction is invalid. Please return to the recipient's website to complete your transaction using their regular checkout flow.

3. entering any CC info in the direct payment area gives me a "Card declined error"

 

 

Where do I start? Create a new API cert?

 

This thread is getting so long, but I think I've tried most of the fixes to no avail.

 

Sooo close!!

 

Thanks for any help!

Edited by RichD
Link to comment
Share on other sites

Hello,

 

I am having a issue where customers are being billed twice thru paypal, when using Direct payment. I am using version ""PayPal Direct Payments & Express Checkout v0.5""

 

The response is passed back fine in the admin, but orders are being double charged on paypals side. Express checkout works fine. I have no contributions install other than STS and additional shipping.

 

Any help would be great this is a live store and I am just lost on what to do.

 

Thanks for your time.

Edited by L!mit
Link to comment
Share on other sites

Leslie,

This describes the bug in 0.6x perfectly. To the best of my knowledge, it has been fixed in 0.7. 0.6 would accept error transactions as correct due to a bug in the error handling code. Did you ever install one of the 0.6 versions?

 

--Glen

 

Ok, I see. I had installed .6, but now have upgraded to .7.1 Thank you for the clarification.

 

best regards,

Leslie

Link to comment
Share on other sites

Hi Guys, I am posting this issue once again would appreciate any help...

 

Fatal error: Call to undefined function: setopt() in /home/gultekca/public_html/osCommerce/catalog/includes/modules/payment/paypal_wpp.php on line 323

 

At first I thought that cURL was'nt installed properly, so I contacted the hosting site and they gave me a path to curl "usr/local/bin/curl", then I took a the following code:

 

// create a new curl resource

$ch = curl_init();

 

// set URL and other appropriate options

curl_setopt($ch, CURLOPT_URL, "http://www.gultek.ca/");

curl_setopt($ch, CURLOPT_HEADER, 0);

// grab URL and pass it to the browser

curl_exec($ch);

// close curl resource, and free up system resources

curl_close($ch);

 

which ran properly which tells me that cURL is installed properly...

 

Would anyone know what the issue could be?... the oscommerce is installed on a linux server...thanks

Link to comment
Share on other sites

I have just signed up for Paypal's website payments pro. I have created and installed their API as instructed in OSC. I have configured OSC as per the instructions. I have turned on paypal's API authorization for the account.

 

I have shared SSL and have OSC pointed to the right server for my hosts shared SSL.

 

As near as I can tell I have done everything as instructed to make website payments pro work with OSC and keep getting this error when trying to test with direct pay on the checkout screen (the Checkout with Paypal button).

 

 

MODULE_PAYMENT_PAYPAL_EC_TEXT_PROCESS_ERROR

 

 

And when I go through and try to process a credit card order with the shopping cart I keep getting this generic error...

 

There has been an error processing your credit card. Please try again.

 

 

There have been a few other posts concerning these errors and no response or resolution. Is the problem something very basic? Is private SSL required to make it work? I tried looking for some kind of error logs in the administration panel in OSC and couldn't find one.

 

 

I am new to OSC, please help

 

Thanks,

 

Jonathan

Link to comment
Share on other sites

Hi Guys, I am posting this issue once again would appreciate any help...

 

Fatal error: Call to undefined function: setopt() in /home/gultekca/public_html/osCommerce/catalog/includes/modules/payment/paypal_wpp.php on line 323

 

snip

 

Would anyone know what the issue could be?... the oscommerce is installed on a linux server...thanks

 

Let's go back to first principles by trying to understand what the error message is saying. php was executing code in the WPP module (paypal_wpp.php) and couldn't locate the function setopt(). A quick search of my setup shows that setopt() is defined in pear/Services/PayPal/CallerServices.php.

 

The most likely reason that you are receiving this message is that you didn't install the Pear modules that go along with this contribution, or that you have not configured the module configuration page to point in the right location. See the administration setting Modules->Payment->[the name you have given your PayPal WPP module]->Pear Modules. It should point to the directory on your server where you have installed the Pear modules.

 

--Glen

Link to comment
Share on other sites

Let's go back to first principles by trying to understand what the error message is saying. php was executing code in the WPP module (paypal_wpp.php) and couldn't locate the function setopt(). A quick search of my setup shows that setopt() is defined in pear/Services/PayPal/CallerServices.php.

 

The most likely reason that you are receiving this message is that you didn't install the Pear modules that go along with this contribution, or that you have not configured the module configuration page to point in the right location. See the administration setting Modules->Payment->[the name you have given your PayPal WPP module]->Pear Modules. It should point to the directory on your server where you have installed the Pear modules.

 

--Glen

 

Thanks Glen for your response,

The pears have been installed at "/public_html/osCommerce/catalog/pear" and also the path is pointing to "/../../public_html/osCommerce/catalog/pear" folder. I did check the "CallerServices.php" but could not find the setopt() function, I did notice that it is being used in there...(I am not fimiliar with php/curl so I must be missing something)...

Link to comment
Share on other sites

Thanks Glen for your response,

The pears have been installed at "/public_html/osCommerce/catalog/pear" and also the path is pointing to "/../../public_html/osCommerce/catalog/pear" folder. I did check the "CallerServices.php" but could not find the setopt() function, I did notice that it is being used in there...(I am not fimiliar with php/curl so I must be missing something)...

 

My mistake; it is defined in pear/Services/SOAP/Client.php at line 333. Client.php is loaded by CallerServices.php at line 14.

 

In any case, your Pear path looks wrong. There shouldn't be any parent directory references in the path, especially one that is absolute (leading slash). Go into your osCommerce admin panel and select File Manager under Tools. You will find the full path of the osCommerce installation directory above the file list. Copy that path, navigate to Modules->Payment->[your WPP module name], then paste it into the Pear Modules parameter and append 'pear/' to the end. In my case, the result looks like '/servername/homepages/xx/dxxxxxxxx/htdocs/catalog/pear/'. I think that the trailing slash is required.

 

--Glen

Link to comment
Share on other sites

My mistake; it is defined in pear/Services/SOAP/Client.php at line 333. Client.php is loaded by CallerServices.php at line 14.

 

In any case, your Pear path looks wrong. There shouldn't be any parent directory references in the path, especially one that is absolute (leading slash). Go into your osCommerce admin panel and select File Manager under Tools. You will find the full path of the osCommerce installation directory above the file list. Copy that path, navigate to Modules->Payment->[your WPP module name], then paste it into the Pear Modules parameter and append 'pear/' to the end. In my case, the result looks like '/servername/homepages/xx/dxxxxxxxx/htdocs/catalog/pear/'. I think that the trailing slash is required.

 

--Glen

 

Thanks again Glen...

 

I did find the function and also checked the path in the File manager and it looks like '/Home/homepage/public_html/catalog/' with 'pear/' already added.

 

I did try to remove the $caller-> variable and then it finds setOpt() but get some other error due to that...

 

 

$caller =& Services_PayPal::getCallerServices($profile); //Create a caller object. Ring ring, who's there?

if (trim(MODULE_PAYMENT_PAYPAL_DP_PROXY) != '') {

$caller->setOpt('curl', CURLOPT_PROXYTYPE, CURLPROXY_HTTP);

$caller->setOpt('curl', CURLOPT_PROXY, MODULE_PAYMENT_PAYPAL_DP_PROXY);

}

$caller->setOpt('curl', CURLOPT_SSL_VERIFYPEER, 0);

$caller->setOpt('curl', CURLOPT_TIMEOUT, 180);

$caller->setOpt('curl', CURLOPT_SSL_VERIFYHOST, 0);

Link to comment
Share on other sites

Second Address Line question

 

Does anyone know if there is a conflict with this module adding a second address line? I often have customers outside the US that need more room to add their info. I see there is a contrubution to add one, but don't want to mess anything up.

 

thank you,

Leslie

Link to comment
Share on other sites

Second Address Line question

 

Does anyone know if there is a conflict with this module adding a second address line? I often have customers outside the US that need more room to add their info. I see there is a contrubution to add one, but don't want to mess anything up.

 

thank you,

Leslie

I have changed the "Suburb" to "Street Address 2" and that is working fine with PayPal WPP for me. I think that is the best way to add a second line for customer address.

Good luck

Regards,

Link to comment
Share on other sites

Thanks again Glen...

 

I did find the function and also checked the path in the File manager and it looks like '/Home/homepage/public_html/catalog/' with 'pear/' already added.

 

Make sure that the value in the configuration page for the WPP payment module looks identical.

Link to comment
Share on other sites

I have changed the "Suburb" to "Street Address 2" and that is working fine with PayPal WPP for me. I think that is the best way to add a second line for customer address.

Good luck

 

Great! thank you Omid.

Link to comment
Share on other sites

Great Contribution! Thanks for all your hard work! :thumbsup: I have everything installed and seems to be working well except for one peice. When I use the Express Checkout button, it takes me to PayPal (sandbox) and I login with my test personal account and it brings up my payment type and verified address... Once I click on Continue, it takes me back to the PayPal login screen. I login again and it is a loop back to the login screen once I click on Continue...

 

Has anyone seen this? I do not have a live WPP to test as of yet so I do not know if it is a sandbox problem, paypal problem, or my osC installation...

 

Direct Payments work great!

 

Thanks in advance!

 

Chad

Link to comment
Share on other sites

That's a new one. *If* everything's installed correctly, sounds like you're having a problem with sessions. Recheck your installation and make sure everything got installed.

Please use the forums for support! I am happy to help you here, but I am unable to offer free technical support over instant messenger or e-mail.

Link to comment
Share on other sites

Great Contribution! Thanks for all your hard work! :thumbsup: I have everything installed and seems to be working well except for one peice. When I use the Express Checkout button, it takes me to PayPal (sandbox) and I login with my test personal account and it brings up my payment type and verified address... Once I click on Continue, it takes me back to the PayPal login screen. I login again and it is a loop back to the login screen once I click on Continue...

 

Has anyone seen this? I do not have a live WPP to test as of yet so I do not know if it is a sandbox problem, paypal problem, or my osC installation...

 

Direct Payments work great!

 

Thanks in advance!

 

Chad

 

 

That's a new one. *If* everything's installed correctly, sounds like you're having a problem with sessions. Recheck your installation and make sure everything got installed.

 

One thing I forgot to ask, is what is supposed to happen when I click the continue button in PayPal? I assume it is supposted to take me back to the osC store or something?

 

Thanks!!!

Chad

Link to comment
Share on other sites

One thing I forgot to ask, is what is supposed to happen when I click the continue button in PayPal? I assume it is supposted to take me back to the osC store or something?

 

Thanks!!!

Chad

 

Yes, you should land on the checkout_success.php page. It says something like "Congratulations, your order has been placed."

 

--Glen

Link to comment
Share on other sites

Can someone please help, I'm really stuck. I keep getting the same error message, I have tried everything.

 

Warning: main(PEAR.php): failed to open stream: No such file or directory in /usr/local/psa/home/vhosts/sublimegolf.com/httpsdocs/catalog/pear/Services/PayPal.php on line 11

 

Fatal error: main(): Failed opening required 'PEAR.php' (include_path='.:/usr/local/psa/apache/lib/php:/usr/local/psa/home/vhosts/sublimegolf.com/httpsdocs/catalog/pear/') in /usr/local/psa/home/vhosts/sublimegolf.com/httpsdocs/catalog/pear/Services/PayPal.php on line 11

 

 

Please help. Thanks.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...