Jump to content
Sign in to follow this  
dynamoeffects

PayPal WPP Direct Payments & Express Checkout Support

Recommended Posts

HI Brian,

 

Installed the contribution without a hitch and got everything up and working,

 

I'm sure you may have covered this point before in previous posts, but after reading for a while decided to ask,

 

I have this mod installed, and wish to have the facility to have the express checkout option installed, however we have our own credit/debit card merchant service & paypal now charge for the direct payment option in the UK.

 

as we have our own merchant processing for credit/debit cards is there any way to disable / remove the Paypal Direct payment option from the catalog/checkout_payment.php page? but still allow for the express checkout option?

 

Many thanks for a great mod.

 

Brian,

 

Thanks for all your hard work. I also have this great module up and running on my site. It's a heavily modified RC1 site and with the use of WinMerge (free version) I was able to get this module installed.

 

I would like to know if you were able to get a mod for this. I also would like to remove the Credit Card Direct Payment option from the checkout_payment.php file. I have found that I can remove the button for express checkout from the admin side by setting "Express Checkout: Button Placement" to NO.

 

I think it would be a great feature to add the ability to remove PayPal Direct Payement from the checkout_payment.php page by setting it to yes or no. I have been looking through the code, but I'm not nearly knowledgeable enough to figure out how to accomplish this task.

 

Any help would be greatly appreciated.

 

Thanks in advance,

Jim Ellis

Share this post


Link to post
Share on other sites

@graysonhobby: That means that your server is not receiving a response from PayPal fast enough, so your mysql server stops listening to your requests. It's either a problem with PayPal or your server doesn't allow incoming connections on that port. You should ask your web host.

 

@webskipper: You must be using PayPal's version because the admin is not referenced in this module.

 

@phi148: This module saves the information sent back to it from PayPal. Unless the numbers are coming back in some strange form, I'm not sure why it's happening. It's one of the things I will test throughly, though.

 

@virtualbum: I suggest you instead install the PayPal Express Checkout contribution maintained by AlexStudio if you don't need Direct Payment. It's based off of this contribution, so the functionality is similar, but he's added many new features.


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.

Share this post


Link to post
Share on other sites

payments shouldn't be accepted if customers don't insert the CVC code for their credit card correct (no matter what type of card it is)? i have two transactions recently where they didn't insert the CVC code (or at least it doesn't show up on the paypal transaction), and it went through.

Share this post


Link to post
Share on other sites

Not all cards have CVV2 numbers, which is why this module doesn't force the user to enter one. However, to require customers to enter their CVV2, you need to up your risk controls within your PayPal account.


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.

Share this post


Link to post
Share on other sites
@virtualbum: I suggest you instead install the PayPal Express Checkout contribution maintained by AlexStudio if you don't need Direct Payment. It's based off of this contribution, so the functionality is similar, but he's added many new features.

 

 

Brian,

 

Thanks for the input. I have used the PayPal IPN by AlexStudio in the past and have not been happy with the results. I have learned that the 'Official PayPal Version' of this module has the ability to turn off Direct Pay in the admin side. I know that this module has the ability to turn off the Express Checkout button from the payment page. I have had nothing but issues for the last 30+ hours with the "Official" version screwing up the USPS Methods and UPSXML shipping modules. Including trying to install on a vanilla RC1 install.

 

Any help removing the Direct Payment option from the payment page would be greatly appreciated. I think that this module has the other 'PayPal' modules beat hands down and is the easiest one to implement with the fewest conflicts with the other modules.

 

-Jim

Share this post


Link to post
Share on other sites
Not all cards have CVV2 numbers, which is why this module doesn't force the user to enter one. However, to require customers to enter their CVV2, you need to up your risk controls within your PayPal account.

 

Okay thank you dynamo :)

Share this post


Link to post
Share on other sites

okay i have another question. for express checkout i have it so that people only with VERIFIED accounts are able to use this option. I want to stick a notice that says "only verified accounts are able to use this" .. preferably where it has the button and says "Save time. Checkout securely. Pay without sharing your financial information." .. where do I go to edit this?

 

reason why: supposedly a customer tried to use express checkout .. he went to paypal .. logged in .. but was sent back to our website .. that is because it's not verified correct?

Edited by jasyn

Share this post


Link to post
Share on other sites

I just installed this module, and it is working perfectly with one exception. when I go to checkout, I get my checkout_shipping.php. confirm that, and then it goes to checkout_paymnt.php. fill in the credit card numbers, hit continue and it blows right by checkout_confirmation.php to checkout_success. The customer is never given an actual complete total before the card is charged. I have a low order fee in place that is a complete surprise to them. Is there a way to not bypass checkout_confirmation.php? Thanks in advance for your help. Love the module except for this one thing.

 

Chris M

http://pinchnpaw.com

Share this post


Link to post
Share on other sites
Brian,

 

Thanks for the input. I have used the PayPal IPN by AlexStudio in the past and have not been happy with the results. I have learned that the 'Official PayPal Version' of this module has the ability to turn off Direct Pay in the admin side. I know that this module has the ability to turn off the Express Checkout button from the payment page. I have had nothing but issues for the last 30+ hours with the "Official" version screwing up the USPS Methods and UPSXML shipping modules. Including trying to install on a vanilla RC1 install.

 

Any help removing the Direct Payment option from the payment page would be greatly appreciated. I think that this module has the other 'PayPal' modules beat hands down and is the easiest one to implement with the fewest conflicts with the other modules.

 

-Jim

 

 

OK... So, after many (8+ just today >_< ) hours of poking around (what I do best) I have found the answer to what I am attmepting to do. I don't know if it's the correct way to do it, but it seems to work in the sandbox and live environments.

 

To Remove the Direct Payment option from checkout_payment.php :)

 

Find this code in catalog\includes\modules\payment\paypal_wpp.php around line 149

 

      if (MODULE_PAYMENT_PAYPAL_DP_BUTTON_PAYMENT_PAGE == 'Yes') {
       $selection['fields'][] = array('title' => '<b>' . MODULE_PAYMENT_PAYPAL_DP_TEXT_EC_HEADER . '</b>',
                                      'field' => '<a href="' . tep_href_link('ec_process.php', '', 'SSL') . '"><img src="https://www.paypal.com/en_US/i/btn/btn_xpressCheckout.gif" border=0 style="padding-right:10px;padding-bottom:10px"></a><br><span style="font-size:11px; font-family: Arial, Verdana;">' . MODULE_PAYMENT_PAYPAL_DP_TEXT_BUTTON_TEXT . '</span></td>');
     }

     return $selection;
   }

 

And replace it with this

 

      if (MODULE_PAYMENT_PAYPAL_DP_BUTTON_PAYMENT_PAGE == 'Yes') {
       $selection['fields'][] = array('title' => '<b>' . MODULE_PAYMENT_PAYPAL_DP_TEXT_EC_HEADER . '</b>',
                                      'field' => '<a href="' . tep_href_link('ec_process.php', '', 'SSL') . '"><img src="https://www.paypal.com/en_US/i/btn/btn_xpressCheckout.gif" border=0 style="padding-right:10px;padding-bottom:10px"></a><br><span style="font-size:11px; font-family: Arial, Verdana;">' . MODULE_PAYMENT_PAYPAL_DP_TEXT_BUTTON_TEXT . '</span></td>');
     }

   }

 

 

All I can figure is that I am telling it not to return the selection it created for the page.

 

If someone (because I could not figure out how) could write a simple if statement and install it into the admin portion, you could remove that with a radio button choice.

 

Hope this helps. :thumbsup:

 

-Jim

Share this post


Link to post
Share on other sites

Brian -

 

Take a look at this thread (translated from dutch)

http://translate.google.com/translate?hl=e...2003-40,GGLD:en

 

do you think this is a solution workaround) to the RC1 messagestack problem, and why we are not seeing error messages during credit card checkout... perhaps it will give you some insight and you can post a fix for us with this method?

 

Hoping

 

Thanks!


-Dave

Share this post


Link to post
Share on other sites

Hi All,

 

I have installed a fresh oscommerce, after that I installed this Paypal Website Pro, and have filled in the required information in the admin section.

 

Whenever I click on checkout with Paypal button it gives me the following error:

 

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

 

Security error

Security header is not valid (10002)

 

I am running it in sandbox mode.

Share this post


Link to post
Share on other sites
Does someone happen to have a live site that I could look at with this installed?

I can give you the code in asp if you want as I used it in one of my sites

Share this post


Link to post
Share on other sites

Ok from what I have read on here this could be a great mod if I could just get it to work. Here are my problems:

 

PROBLEM 1:

According to the contribution I should be able to see the following:

-If a visitor without an account, or someone who isn't logged in, clicks on "Checkout," they'll be taken to the login page where there are now three boxes. They can either use express pay, create an account, or login. If they use express pay, they'll be taken to Paypal where they'll choose a shipping address, then be sent back following the process above. If they're not a current customer, based on the information returned from Paypal, an account will automatically be created for them and the account details emailed to their email address. If they're an existing customer, they'll be logged in and their order will be added to their account.

 

But when I go to the checkout as someone with out an account and go to the login page I don't see the 3 boxes. How do I track this down to find out what happen to the third box.

 

PROBLEM 2:

 

When I do try to use this mod as a logged in customer I get the following error message at the top of the screen:

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

 

 

()

 

Please help I have no idea how to find out what is wrong.


Site is underconstruction I am always looking for good advice on how to improve my site fill free to comment.

Thanks! ATise

Share this post


Link to post
Share on other sites
Guest

I installed WPP..and I am pretty sure I installed it correctly, but I'm getting a timeout error when I goto Express Checkout...and I get the followed error when I tried to test the Direct Payment:

 

Warning: Invalid argument supplied for foreach() in /home/content/o/r/e/orehek/html/osc/includes/modules/payment/paypal_wpp.php on line 979

 

Warning: Invalid argument supplied for foreach() in /home/content/o/r/e/orehek/html/osc/includes/modules/payment/paypal_wpp.php on line 887

 

I could really use some help. Thanks.

Share this post


Link to post
Share on other sites
Guest

okay, so I got the express checkout working..I realized on GoDaddy I had to insert a proxy address in the admin. However, with the Direct Payment I'm still getting the same error..but with this one added to it:

 

Warning: Cannot modify header information - headers already sent by (output started at /home/content/o/r/e/orehek/html/osc/includes/modules/payment/paypal_wpp.php:979) in /home/content/o/r/e/orehek/html/osc/includes/functions/general.php on line 33

Share this post


Link to post
Share on other sites
Guest
I installed WPP..and I am pretty sure I installed it correctly, but I'm getting a timeout error when I goto Express Checkout...and I get the followed error when I tried to test the Direct Payment:

 

Warning: Invalid argument supplied for foreach() in /home/content/o/r/e/orehek/html/osc/includes/modules/payment/paypal_wpp.php on line 979

 

Warning: Invalid argument supplied for foreach() in /home/content/o/r/e/orehek/html/osc/includes/modules/payment/paypal_wpp.php on line 887

 

I could really use some help. Thanks.

 

 

okay, so I got the express checkout working..I realized on GoDaddy I had to insert a proxy address in the admin. However, with the Direct Payment I'm still getting the same error..but with this one added to it:

 

Warning: Cannot modify header information - headers already sent by (output started at /home/content/o/r/e/orehek/html/osc/includes/modules/payment/paypal_wpp.php:979) in /home/content/o/r/e/orehek/html/osc/includes/functions/general.php on line 33

Share this post


Link to post
Share on other sites
Guest

anyone have any idea what those errors are about?..

Share this post


Link to post
Share on other sites

Show us what lines 29 - 35 look like in general.php. That seems to be the root cause of your problem.


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.

Share this post


Link to post
Share on other sites
Guest
Show us what lines 29 - 35 look like in general.php. That seems to be the root cause of your problem.

 

 

Hi, thanks for responding.. Here are lines 27-35:

---------------------------------------------------------------------

 

if ( (ENABLE_SSL == true) && (getenv('HTTPS') == 'on') ) { // We are loading an SSL page

if (substr($url, 0, strlen(HTTP_SERVER)) == HTTP_SERVER) { // NONSSL url

$url = HTTPS_SERVER . substr($url, strlen(HTTP_SERVER)); // Change it to SSL

}

}

 

header('Location: ' . $url);

 

tep_exit();

}

---------------------------------------------------------------------

Share this post


Link to post
Share on other sites

Hi,

 

First, congrats for this contribution.

Second, I have unfortunatly some errors after installing the 0.9.2 version on oscmax 2.0 RC3:

 

Your credit card was declined. Please try another card or contact your bank for more info.

No response from PayPal

No response was received from PayPal. Please contact the store owner for assistance.

 

error dump:

In function: before_process() - Direct Payment
Did first contact attempt return error? Nope 
---------------------------------------------------------------------
-------------------------------DP_DUMP-------------------------------
------------This is the information that was sent to PayPal----------
---------------------------------------------------------------------
[?xml version="1.0" encoding="utf-8"?]
[soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"]
[soap:Header]
 [RequesterCredentials xmlns="urn:ebay:api:PayPalAPI"]
   [Credentials xmlns="urn:ebay:apis:eBLBaseComponents"]
     [username]antoinebp************[/username]
     [Password]UA3*********G8WR[/Password]
   [/Credentials]
 [/RequesterCredentials]
[/soap:Header]
[soap:Body]
 [TransactionSearchReq xmlns="urn:ebay:api:PayPalAPI"]
   [TransactionSearchRequest]
     [Version xmlns="urn:ebay:apis:eBLBaseComponents"]2.0[/Version]
     [startDate]2007-12-20T00:00:00-0700[/startDate]
     [Payer]rendeles@varazskert.com[/Payer]
     [Amount currencyID="EUR"]4.00[/Amount]
   [/TransactionSearchRequest]
 [/TransactionSearchReq]
[/soap:Body]
[/soap:Envelope]---------------------------------------------------------------------
-------------------------------FINAL_REQ-----------------------------
-------------------This is the response from PayPal------------------
---------------------------------------------------------------------
Array
(
   [security] => 
   [RequesterCredentials] => Array
       (
           [0] => Array
               (
                   [Credentials] => Array
                       (
                           [0] => Array
                               (
                                   [username] => antoinebp***********
                                   [Password] => UA3*******G8WR
                                   [subject] => 
                               )

                       )

               )

       )

   [faultcode] => SOAP-ENV:Server
   [faultstring] => Internal error
   [detail] => Timeout processing request
)


---------------------------------------------------------------------
---------------------------------TS_REQ------------------------------
--------Results of the transaction search if it was executed---------
---------------------------------------------------------------------
Array
(
   [security] => 
   [RequesterCredentials] => Array
       (
           [0] => Array
               (
                   [Credentials] => Array
                       (
                           [0] => Array
                               (
                                   [username] => 
                                   [Password] => 
                                   [subject] => 
                               )

                       )

               )

       )

   [TransactionSearchResponse] => Array
       (
           [0] => Array
               (
                   [Timestamp] => 2007-12-21T08:05:09Z
                   [Ack] => Success
                   [CorrelationID] => fdf107b7be10e
                   [Version] => 2.000000
                   [build] => 1.0006
               )

       )

)

 

Here is the settings:

Credit Card Test Info:

CC#: 4111111111111111
Expiry: Any 

Enable this Payment Module
True

Debug Mode
True

Payment Action
Sale

Live or Sandbox API
live

API Certificate
/home/dreambox/public_html/hashbag/includes/modules/payment/wpp_cert/cert_key_pem.txt

API Username
antoinebp**********

API Password
UA3*******G8WR

Proxy Address


UK Functionality
No

Express Checkout: Address Override
No

Express Checkout: Button Placement
No

Express Checkout: Verified Accounts Only
Yes

Express Checkout: Confirmed Address
Yes

Express Checkout: Display Payment Page
Yes

Express Checkout: Automatic Account Creation
Yes

Express Checkout: Page Style


Transaction Currency
EUR

Sort order of display.
9

Payment Zone
--aucun--

Set Order Status
défaut 

I tried this contribution with 2 valid cc with the same error.

cURL and openssl are set up on my server

If there is no communication with Paypal, do I need a proxy? My host is a friend of mine, what shall I say to him if I need a proxy?

 

What do "Internal error" and 'Timeout processing request' mean?

 

Thank you for your help!

 

My website: http://hashbag.com


OSCmax 2.0 RC3

Contribs : COD, A Emporter (Take away), ultimate SEO URLs 2.2, google XML sitemap 2.2, visible countries, categoriesFrontPage2-3c.

Share this post


Link to post
Share on other sites

I've had the UK version of this contribution added today but there appears to be a problem. The express option works fine but when the direct payment is enabled it allows customers to check out without selecting a shipping method and therefore they get free shipping.

 

Can anyone help please?

Share this post


Link to post
Share on other sites
Guest

any ideas?

Edited by mycaptainkite

Share this post


Link to post
Share on other sites

i have a question. people who use Express Checkout Payment show a "Order Total Discrepancy".

 

on the paypal payment invoice, underneath the item I get a:

 

Order Total Discrepancy

Item # NA

 

i've gotten complaints from people asking back for their $0.66 USD back just because of this.

i know the Order Total Discrepancy is there so that the PayPal Total = the Website Total .. however how can I get it to not show up at all, or change what it says so that people do not complain for their $0.66 USD back?

Edited by jasyn

Share this post


Link to post
Share on other sites
i have a question. people who use Express Checkout Payment show a "Order Total Discrepancy".

 

on the paypal payment invoice, underneath the item I get a:

i've gotten complaints from people asking back for their $0.66 USD back just because of this.

i know the Order Total Discrepancy is there so that the PayPal Total = the Website Total .. however how can I get it to not show up at all, or change what it says so that people do not complain for their $0.66 USD back?

 

actually i think i'm totally wrong .. what the heck is this x_X

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×