Jump to content


Corporate Sponsors


Latest News: (loading..)

* * * * * 12 votes

PayPal WPP Direct Payments & Express Checkout Support


4281 replies to this topic

#4221 babyblues30

  • Community Member
  • 4 posts
  • Real Name:Jodie Hodgkins

Posted 24 August 2010, 13:56

hi

i had installed this payment module by dynamoeffects on my website, but then thought that i needed to install the official module instead, so i did but now have a few problems and no one has responded on the forum for the official paypal module since may? even though paypal have said that it is the only module that they provide tech support for?

my two problems are:

1. customers can checkout without entering any credit card details, meaning they can checkout for free, because the store owner then gets an email suggesting they have paid, so would proceed to send off what they ordered, so BIG problem

2. when paypal express checkout is selected, either by clicking the button or selecting it as the payment method, it says register_globals is disabled, but in my catalog/php.ini file, register_globals is on?

but have had no reply so far so wondered if any one had any suggestions as to who i could get help from? when card details are entered, there is no record in paypal, so paypal doesnt seem to know anything about the payment module?



i like the official paypal module because the customer doesnt have to enter any card details until the confirmation page, so they know what they are ordering, etc.

please help as im very stuck and confused :(

#4222 cclayton

  • Community Member
  • 108 posts
  • Real Name:Chris C
  • Gender:Male
  • Location:Devon

Posted 27 August 2010, 12:48

Does anyone know how long the session stays open using dynamo checkout? I appear to have a lot of customers that get to the one page basket and then leave it a while then attempt payment and no order data is transferred due to session timeout. I cant work out how long the session lasts and where I can change this to see if this makes a difference.

Thanks!!
Founder & Director at CSC Tours Ltd
Supplier of great London Tours and Australia Tours and also Pet Friendly Cottages.

#4223 vponce

  • Community Member
  • 2 posts
  • Real Name:Victor

Posted 31 August 2010, 20:03

Hi everyone. I hope you can help me, or give me some hints so I can solve the problem myself.


1.- it seems like the IPN is not working. When I change something on paypal (like refund from paypal.com) the order status doesn't change. it works if I do everything from my osc admin.

2.- When I place an order (the checkout process is completed successfully), the order is saved and is marked as "Completed" even when paypal shows the transaction as "under review"
I've been trying to solve this on \includes\modules\payment\paypal_wpp.php around line 1517, playing with the status, but haven't found a way to pass the right status.

//ORIGINAL CODE
if (strtoupper($this->transaction_log['payment_status']) == 'PENDING') {
            if (MODULE_PAYMENT_PAYPAL_DP_PENDING_ORDER_STATUS_ID > 0) {
              $order->info['order_status'] = MODULE_PAYMENT_PAYPAL_DP_PENDING_ORDER_STATUS_ID;
            }
          } elseif (strtoupper($this->transaction_log['payment_status']) == 'COMPLETED') {
            if (MODULE_PAYMENT_PAYPAL_DP_COMPLETED_ORDER_STATUS_ID > 0) {
              $order->info['order_status'] = MODULE_PAYMENT_PAYPAL_DP_COMPLETED_ORDER_STATUS_ID;
            }
          }

3.- When the user is using express checkout he can change his shipping address, so, is there a way to pull the billing AND shipping address from paypal instead of only the shipping address?

Thanks

#4224 vponce

  • Community Member
  • 2 posts
  • Real Name:Victor

Posted 31 August 2010, 20:13

View Postnotubes_pete, on 05 August 2010, 12:44, said:

I still have not had luck locating the code.

I'm no expert, but I think you can check the

/checkout_payment.php
/checkout_shipping.php
/login.php

OR, if you have a setup like me, where I'm encapsulating all my checkout pages on the template, you will have to check the files:

/templates/content/checkout_payment.tpl.php
and so on... or something like
/templates/mytemplate/content/checkout_payment.tpl.php
and so on...

I hope this helps

#4225 SteveDallas

  • Community Member
  • 719 posts
  • Real Name:Glen
  • Gender:Male
  • Location:Alabama, US

Posted 31 August 2010, 20:38

View Postvponce, on 31 August 2010, 20:03, said:

Hi everyone. I hope you can help me, or give me some hints so I can solve the problem myself.


1.- it seems like the IPN is not working. When I change something on paypal (like refund from paypal.com) the order status doesn't change. it works if I do everything from my osc admin.
This is true. I last mentioned it in post 4198 of 2 July. I still haven't had brain cycles to spend on it. It is still on my list of things to do, (It's also listed as an issue at Github.)

Quote

2.- When I place an order (the checkout process is completed successfully), the order is saved and is marked as "Completed" even when paypal shows the transaction as "under review"
I've been trying to solve this on \includes\modules\payment\paypal_wpp.php around line 1517, playing with the status, but haven't found a way to pass the right status.

//ORIGINAL CODE
if (strtoupper($this->transaction_log['payment_status']) == 'PENDING') {
            if (MODULE_PAYMENT_PAYPAL_DP_PENDING_ORDER_STATUS_ID > 0) {
              $order->info['order_status'] = MODULE_PAYMENT_PAYPAL_DP_PENDING_ORDER_STATUS_ID;
            }
          } elseif (strtoupper($this->transaction_log['payment_status']) == 'COMPLETED') {
            if (MODULE_PAYMENT_PAYPAL_DP_COMPLETED_ORDER_STATUS_ID > 0) {
              $order->info['order_status'] = MODULE_PAYMENT_PAYPAL_DP_COMPLETED_ORDER_STATUS_ID;
            }
          }
I don't know what an "under review" payment looks like, possibly because I use "Authorization and Capture" in my shop. However, I also use the osC PayPal IPN payment module and uncleared checks go into my osC "Pending" order status, which is where all unreviewed orders go. I manually move those to a new status that I created called "Uncleared", and ship them once the customer's echeck clears. This also works for payments from countries, such as Germany, where the customer must send funds to PayPal from their bank after making a purchase.

Quote

3.- When the user is using express checkout he can change his shipping address, so, is there a way to pull the billing AND shipping address from paypal instead of only the shipping address?

Thanks
PayPal made a number of changes to Express Checkout after this module was developed. Some of them will allow us to streamline the Express Checkout process further, but will require additional development. Again, some of this is on my "to do" list, but I believe that PayPal only returns one address in Express Checkout. However, I'll have to look at the API and the code to verify that.

--Glen

#4226 asim_nazir1

  • Community Member
  • 13 posts
  • Real Name:asim

Posted 05 September 2010, 15:11

Hi,

I bought a template from template monster and I am trying to install this module, but I just cant seem to find the code mentioned in:

Step #6 - Modify checkout_shipping.php of the installation

Im using version v2.2 RC2a

Why is my coding so different from that in the installation ?

Thanks

#4227 SteveDallas

  • Community Member
  • 719 posts
  • Real Name:Glen
  • Gender:Male
  • Location:Alabama, US

Posted 05 September 2010, 15:36

View Postasim_nazir1, on 05 September 2010, 15:11, said:

Hi,

I bought a template from template monster and I am trying to install this module, but I just cant seem to find the code mentioned in:

Step #6 - Modify checkout_shipping.php of the installation

Im using version v2.2 RC2a

Why is my coding so different from that in the installation ?

Thanks

It shouldn't be different, unless the template modifies the checkout flow. Compare checkout_shipping.php from the RC2a distribution and compare it to the one supplied with your template.

--Glen

#4228 Dangermouse

  • Community Member
  • 19 posts
  • Real Name:Tony
  • Gender:Male

Posted 16 September 2010, 10:16

Hi

Is it possible (I imagine so - just not sure how to do it safely) to turn off the 3DS feature temporarily if using the Add Charge feature in admin?

Its a chore to go to modules > payment > paypal_wpp to disable 3DS for a few moments whilst taking a card payment over the phone to then go back and enable it again afterwards... would be much neater if we could do this with php when the button is clicked for instance.

Many thanks

#4229 bellabacci

  • Community Member
  • 13 posts
  • Real Name:Frank

Posted 16 September 2010, 22:03

Does this work with coupons?

#4230 clavid

  • Community Member
  • 10 posts
  • Real Name:Phil Robinson

Posted 18 September 2010, 15:47

Hi All

I am trying to upgrade from version 1.0.7a to the latest version (so I can upgrade to Dynamo Effects one page checkout) on my test server, but am having problems getting it to work

I am using the Github version because of Cardinal and the comment in post 4202

When a transaction goes via paypal I get the following errors on returning from paypal

Warning: preg_match() [function.preg-match]: Unknown modifier '-' in /home/content/44/5660644/html/catalog23052010/includes/modules/payment/paypal_wpp.php on line 777

Warning: Cannot modify header information - headers already sent by (output started at /home/content/44/5660644/html/catalog23052010/includes/modules/payment/paypal_wpp.php:777) in /home/content/44/5660644/html/catalog23052010/includes/functions/general.php on line 33

Also

When a CC transaction goes through and Cardinal is not active it is processed Ok

but when Cardinal is active the user gets the errors

Error Processing Lookup Request Message (Error 1002)
Merchant Profile is not configured with a Transaction Password (Error 2021

(I have configured the Transaction password in Cardinal)

Help

Thanks in Advance

Philip

#4231 bellabacci

  • Community Member
  • 13 posts
  • Real Name:Frank

Posted 18 September 2010, 21:02

I have installed the original direct paypment implementation by paypal.

What are the steps to overwrite this installation?

Anything different?

Also does this fix the paypal_express problem of losing the customer information and tax when it returns from paypal.

thanks

#4232 clavid

  • Community Member
  • 10 posts
  • Real Name:Phil Robinson

Posted 19 September 2010, 08:02

View Postclavid, on 18 September 2010, 15:47, said:

Hi All

I am trying to upgrade from version 1.0.7a to the latest version (so I can upgrade to Dynamo Effects one page checkout) on my test server, but am having problems getting it to work

I am using the Github version because of Cardinal and the comment in post 4202

When a transaction goes via paypal I get the following errors on returning from paypal

Warning: preg_match() [function.preg-match]: Unknown modifier '-' in /home/content/44/5660644/html/catalog23052010/includes/modules/payment/paypal_wpp.php on line 777

Warning: Cannot modify header information - headers already sent by (output started at /home/content/44/5660644/html/catalog23052010/includes/modules/payment/paypal_wpp.php:777) in /home/content/44/5660644/html/catalog23052010/includes/functions/general.php on line 33

Also

When a CC transaction goes through and Cardinal is not active it is processed Ok

but when Cardinal is active the user gets the errors

Error Processing Lookup Request Message (Error 1002)
Merchant Profile is not configured with a Transaction Password (Error 2021

(I have configured the Transaction password in Cardinal)

Help

Thanks in Advance

Philip


I have now got the credit Card side working OK but am still having the problems with the paypal errors does anyone have any suggestions?

Regards

Philip

#4233 fuzioneer

  • Community Member
  • 136 posts
  • Real Name:Dave
  • Gender:Male

Posted 21 September 2010, 09:28

Just installed this and I get an error when I click any of the Express checkout buttons as follows:-

It appears that you are missing modifications within /includes/classes/payment.php. Please reference the installation guide for assistance.

I have verified the required mods are in place, I can see the check that is causing the error in includes/paypal_wpp/paypal_wpp_include.php as follows:-

    case 'express_checkout':
      require_once(DIR_WS_CLASSES . 'payment.php');

      if (tep_session_is_registered('paypal_error')) tep_session_unregister('paypal_error');

      if (isset($_GET['clearSess'])) {
        tep_session_unregister('paypal_ec_temp');
    		tep_session_unregister('paypal_ec_token');
    		tep_session_unregister('paypal_ec_payer_id');
    		tep_session_unregister('paypal_ec_payer_info');
      }
      
      if ($ec_enabled) {
      
        $payment_modules = new payment('paypal_wpp');
        
        if (!method_exists($payment_modules, 'ec_step1') || !method_exists($payment_modules, 'ec_step2')) {
          die(TEXT_PAYPALWPP_ERROR_PAYMENT_CLASS);
        }
        
        if(!tep_session_is_registered('paypal_ec_token')) {
          $payment_modules->ec_step1($_GET['return_to']);
        } else {
          $payment_modules->ec_step2();
        }
      }
      break;

and the code of
    //---PayPal WPP Modification START ---//
    function ec_step1() {
      if (is_array($this->modules)) {
        if (is_object($GLOBALS[$this->selected_module]) && ($GLOBALS[$this->selected_module]->enabled) ) {
          return $GLOBALS[$this->selected_module]->ec_step1();
        }
      }
    }

    function ec_step2() {
      if (is_array($this->modules)) {
        if (is_object($GLOBALS[$this->selected_module]) && ($GLOBALS[$this->selected_module]->enabled) ) {
          return $GLOBALS[$this->selected_module]->ec_step2();
        }
      }
    }
    //---PayPal WPP Modification END---//  

is in place so what gives ?

#4234 Dangermouse

  • Community Member
  • 19 posts
  • Real Name:Tony
  • Gender:Male

Posted 21 September 2010, 10:25

For anybody that wants to disable the 3DS (Cardinal) pages when doing an add charge from the admin side as I did all you need to do is the following:-

Open Catalog > includes > modules > payment > paypal_wpp.php

search for:-
    function cardinal_centinel_enabled($cc_type = '') {
      if (MODULE_PAYMENT_PAYPAL_DP_CC_ENABLE != 'Yes') return false;
and replace with:-
    function cardinal_centinel_enabled($cc_type = '') {
      if ($this->is_admin) return false;
      if (MODULE_PAYMENT_PAYPAL_DP_CC_ENABLE != 'Yes') return false;
Then open catalog > admin > includes > paypal_wpp > paypal_wpp_include.php

Search for:-
          if (MODULE_PAYMENT_PAYPAL_DP_CC_ENABLE == 'Yes') {
             echo 'alert("This feature is unavailable with the Cardinal Commerce 3D Secure feature enabled.");';
             echo 'return false;';
          }
and replace with:-
          if (MODULE_PAYMENT_PAYPAL_DP_CC_ENABLE == 'Yes') {
             // echo 'alert("This feature is unavailable with the Cardinal Commerce 3D Secure feature enabled.");';
             // echo 'return false;';
          }
Hope this helps someone else.

Edited by Dangermouse, 21 September 2010, 10:27.


#4235 fuzioneer

  • Community Member
  • 136 posts
  • Real Name:Dave
  • Gender:Male

Posted 21 September 2010, 10:52

my error of "missing modifications etc" was caused by something to do with the certificate I believe, I removed and recreated certificate and all ok now

Now I have other issues though :(

I get to the checkout page and it shows the fields for Direct Payment via Paypal, I enter in card details and click Continue and the page just refreshes on same page ? I have one page checkout facility on our site would it be anything to do with this ?

Also if i click Express checkout and go to paypal site, select option to say "dont have a paypal account" and enter in card details manually on paypal site, and then checkout and comes back to my site to the same checkout page with nothing changed

#4236 gotkube

  • Community Member
  • 7 posts
  • Real Name:Shawn
  • Gender:Male
  • Location:Calgary, Canada

Posted 21 September 2010, 23:30

I'm encountering a problem that was previously discussed: the "Unfortunately the country of the address you selected is not currently one that we offer service to. If you have any questions, please feel free to contact us." error when using Paypal Express.

I've installed the latest commit of the Paypal WPP module from github, which appears to be v1.1.2 according to paypal_wpp.php. Everything seems to be configured properly. The site has a valid SSL certificate & the IPN URL is set to https://www.mysite.com/buy/checkout_process.php.

I've examined the response array returned from wpp_execute_transaction around line 799 and it is only returning the customer name, no shipping address information is being returned at all, which is subsequently causing the error.

Any thoughts what may be causing this problem?

Edited by gotkube, 21 September 2010, 23:31.


#4237 longhorn1999

  • Community Member
  • 309 posts
  • Real Name:Nick
  • Gender:Male
  • Location:Texas

Posted 23 September 2010, 20:13

http://github.com/DynamoEffects/paypal-pro-for-oscommerce/commit/55b0100d73ee5fa19c84fc8b1040e4c61aa8d057

Hi,

Sorry if this has been answered before, but is the code in this github update OK to install? I'm hoping to get my site ready
for PHP 5.3 in case my host requires it, but I'm not of the status of this update since the comment says that it's not
complete.

Thanks

#4238 gotkube

  • Community Member
  • 7 posts
  • Real Name:Shawn
  • Gender:Male
  • Location:Calgary, Canada

Posted 24 September 2010, 18:55

View Postlonghorn1999, on 23 September 2010, 20:13, said:

http://github.com/DynamoEffects/paypal-pro-for-oscommerce/commit/55b0100d73ee5fa19c84fc8b1040e4c61aa8d057

Hi,

Sorry if this has been answered before, but is the code in this github update OK to install? I'm hoping to get my site ready
for PHP 5.3 in case my host requires it, but I'm not of the status of this update since the comment says that it's not
complete.

Thanks

I've installed the commit even more recent than the one you linked to and it's worked well, 'cept I'm encountering a problem with Paypal Express Checkout payments (see posting before yours). I've been actively combing through the code to ensure the module itself is working; assuming the problem is with my configuration and not the module itself.

#4239 rcbro

  • Community Member
  • 7 posts

Posted 28 September 2010, 03:35

Hey Guys, I have had this module installed for many months with great success. No all the sudden the checkout system does not work. When a customer attempts to complete the checkout via paypal express or the cart itself, when they go to submit the information it immediately redirects them to the cart contents never finishing payment.

I have talked with paypal and they show no records of the api credentials ever being sent. So its something with my site, but nothings been changed so I'm stumped.

Any ideas?

#4240 gotkube

  • Community Member
  • 7 posts
  • Real Name:Shawn
  • Gender:Male
  • Location:Calgary, Canada

Posted 29 September 2010, 23:22

Utterly lost with this module. Paypal Express Checkout simply refuses to work. Finally hacked my way around enough to 'resolve' the "Unfortunately the country of the address you selected is not currently one that we offer service to. If you have any questions, please feel free to contact us." error (by forcing $payer_info['PayerCountry'] into both ship_country & bill_country if they do not exist, which they never do).
So supposedly the transaction goes through, but all I'm left with is a screen that reads "You're currently checking out with PayPal Express Checkout! Click Here to choose another payment method." Nothing more, nothing is debited from my Paypal account, the item is still in the shopping cart, literally /nothing/ is happening when using Paypal Express Checkout with this module.

Either something is really broken, or I'm totally missing something here.
Thoughts? Anyone?