Jump to content



Photo
- - - - -

PayPal App for osCommerce Online Merchant


  • Please log in to reply
130 replies to this topic

#21   Mort-lemur

Mort-lemur
  • Members
  • 2,387 posts
  • Real Name:Heather
  • Gender:Female
  • Location:UK

Posted 13 December 2014 - 20:30

Started new thread here: http://forums.oscomm...adminordersphp/

once I can get back on desktop pc I will post the changes I have made so far

Now running on a fully modded, Mobile Friendly 2.3.4 Store with the Excellent MTS installed - See my profile for the mods installed ..... So much thanks for all the help given along the way by forum members.


#22   bobbee

bobbee
  • Members
  • 2 posts
  • Real Name:bobbee bourke

Posted 15 December 2014 - 21:30

Hello to all,

 

Having installed the App on a new v 2.3.4 store I get the following warning :

 

Call to a member function register() on a non-object in /homex/xxx/public_html/admin/orders.php on line 15

 

Used the legacy docs supplied for v234 and did the other modifications as outlined... Uploaded the appropriate files... Paypal set up correctly but trying to see the order page this warning is thrown. Have no modifications to order.php. Can no longer access orders.

 

Perplexed. Shop is live so need help.

 

Thank you in advance for your help.

 

Barbara

 

  •  

 



#23   greasemonkey

greasemonkey
  • Members
  • 1,053 posts
  • Real Name:Scott
  • Gender:Male

Posted 16 December 2014 - 21:32

@Harald Ponce de Leon ... ok so I'm doing some testing to see if the new app fixes my issue with shipping (the customers chosen shipping rate at checkout_shipping changing back to the "cheapest" option at checkout_confirmation.php).

 

It would seem my issue is still there.

 

So, I proceed to the demo site to confirm and it would seem your checkout_shipping is performing differently than mine.

 

When I log into an account at the http://demo.oscommerce.com add something to my cart and proceed to checkout_shipping the cheapest (best way $2.50) option is NOT selected (by includes/classes/shipping.php). Best way $5.00 is selected... I have confirmed my includes/classes/shipping.php is the same as github....

 

What am I missing??????

 

Why is Oscommerce demo store not per-selecting the cheapest?



#24   greasemonkey

greasemonkey
  • Members
  • 1,053 posts
  • Real Name:Scott
  • Gender:Male

Posted 17 December 2014 - 14:27

Just a follow up my above post - I can confirm on my fresh 2.3.4bs store PP express is NOT changing the shipping selection from the chosen option to the cheapest option as described.

 

This (obviously... its me... lol) leads me to believe its "something" in my store - causing includes/classes/order.php to re-run between PayPal and the order checkout_confirmation.php.

 

Any have a clue how I can narrow this down further to see what is causing this?



#25   greasemonkey

greasemonkey
  • Members
  • 1,053 posts
  • Real Name:Scott
  • Gender:Male

Posted 17 December 2014 - 15:13

Just a follow up my above post - I can confirm on my fresh 2.3.4bs store PP express is NOT changing the shipping selection from the chosen option to the cheapest option as described.

 

This (obviously... its me... lol) leads me to believe its "something" in my store - causing includes/classes/order.php to re-run between PayPal and the order checkout_confirmation.php.

 

Any have a clue how I can narrow this down further to see what is causing this?

Sorry, its includes/classes/shipping.php that is re-running (this is where the function for cheapest shipping is) not include/classes.order.php as mentioned above.

 

So, my question is - under what condition is includes/classes/shipping/php (in particular the function for cheapest shipping) re-run between paypal and checkout_confirmation.php?

 

I'm a little lost - here.... any help would be greatly appreciated.

 

BTW, the good news about the app - I can now turn my checkout with PayPal button back on... because shipping selection drop down at PayPal is no longer available (for it to ignore....lol).



#26   altoid

altoid
  • Members
  • 1,406 posts
  • Real Name:Steve
  • Gender:Male
  • Location:Hollidaysburg, Pennsylvania

Posted 03 January 2015 - 22:33

Couple of things that may be bugs

 

Only the item title is being carried into PayPal, not the attribute (such as size) for the item

 

It doesn't appear stock is being deducted using PayPal standard.

 

I am going to enable Express and see how that works.

 

Thanks


I am not a professional webmaster or PHP coder by background or training but I will try to help as best I can.
I remember what it was like when I first started with osC. It can be overwhelming.
However, I strongly recommend considering hiring a professional for extensive site modifications, site cleaning, etc.
There are several good pros here on osCommerce. Look around, you'll figure out who they are.

#27   greasemonkey

greasemonkey
  • Members
  • 1,053 posts
  • Real Name:Scott
  • Gender:Male

Posted 17 January 2015 - 15:17

@Harald Ponce de Leon I hope all is well. I've been working with the Paypal app for several weeks now ... I'm loving it.

 

One small issue I have - which I'm suggesting as an improvement for the next update????

 

In the PayPal app log you have a "hover" view button in the css;

.pp-table tbody tr td.pp-table-action {
  text-align: right;
  visibility: hidden;
  display: block;
}

.pp-table tbody tr:hover td.pp-table-action {
  visibility: visible;
}

.pp-table.pp-table-hover tbody tr:hover:not(.pp-table-header) {
  background-color: #fff;
}

I've found the view button impossible to access via touch screen.

 

Although touch screens are not typically used to manage a shop - I often use mine when sitting at home in the evenings and on weekends if I see (when looking at who's on line) issues with people checking out.

 

For myself I've removed line 280 from admin/paypal.php

 visibility: hidden;


#28   altoid

altoid
  • Members
  • 1,406 posts
  • Real Name:Steve
  • Gender:Male
  • Location:Hollidaysburg, Pennsylvania

Posted 31 January 2015 - 14:45

The Notification of Payment Received from PayPal is missing certain information.  Item name.  

 

As well the cost of the item and the shipping is being combined, not broken out separately.

 

This is with the PP App, using the PP express module, in osC 2.3.4

 

Here's what is on the email from PayPal.

 

 

Attached File  paypalemail.jpg   10.46KB   7 downloads


I am not a professional webmaster or PHP coder by background or training but I will try to help as best I can.
I remember what it was like when I first started with osC. It can be overwhelming.
However, I strongly recommend considering hiring a professional for extensive site modifications, site cleaning, etc.
There are several good pros here on osCommerce. Look around, you'll figure out who they are.

#29   altoid

altoid
  • Members
  • 1,406 posts
  • Real Name:Steve
  • Gender:Male
  • Location:Hollidaysburg, Pennsylvania

Posted 09 February 2015 - 14:14

Just handled a refund through the PayPal app.  Very easy and efficient.  Big  :thumbsup: on that.


I am not a professional webmaster or PHP coder by background or training but I will try to help as best I can.
I remember what it was like when I first started with osC. It can be overwhelming.
However, I strongly recommend considering hiring a professional for extensive site modifications, site cleaning, etc.
There are several good pros here on osCommerce. Look around, you'll figure out who they are.

#30   trier

trier
  • Members
  • 70 posts
  • Real Name:Jimbo
  • Gender:Male

Posted 11 February 2015 - 12:35

Sorry for the waffle following. Hopefully I’m not talking total pooh, hopefully I will explain myself. This relates to the PayPal Standard option in the new PayPal App:-
  1. Even with auto-return set in the PayPal account a customer may not return to site.
     
  2. The IPN call-back can occasionally be delayed by as much as 24 hours, occasionally it may go walkabout and not happen at all.
     
  3. Presumably because neither of the above can be relied on, post payment processing (i.e. tables updating and email) is present in both the main paypal standard and the IPN script.
    Both scripts check the order status (for OSCOM_APP_PAYPAL_PS_PREPARE_ORDER_STATUS_ID) and continue or not.
    Both scripts communicate with PayPal and both always update the status history (with OSCOM_APP_PAYPAL_TRANSACTIONS_ORDER_STATUS_ID). Is this necessary/recommended or can the second communication/update be prevented?
     
  4.  If the IPN call-back is first, it updates the status history to show payment complete (OSCOM_APP_PAYPAL_PS_ORDER_STATUS_ID). 
    If comments have been added to an order, paypal standard also updates the status history table with the comments and the same status.
    Both of these entries can be seen by the customer in the account order history, can one of them be prevented?
    Currently the comments are not available to the IPN. Comments can be available to the IPN if either they are stored in the order table, or they are passed through PayPal using the ‘custom’ data item which is currently used to hold customer_id.
    On return from PayPal ‘custom’ (i.e. customer_id) is used with order_id when accessing the order tables. Is order_id on it’s own sufficient thus releasing ‘custom’ to carry the comments?
     
  5. A bit extreme, but in theory, with perfect timing, I guess it is possible for both paypal standard and IPN to go through the post payment motions?
    Maybe a bit OTT, not worth the effort, or not possible, but is it possible to ‘lock’ the order table record when it is first checked until it is updated?
     
  6. Paypal standard and the IPN have the post payment coding included. Is it possible to ‘commonise’ this so that any changes (e.g. I like to update the item status and email myself if an item goes out of stock) are only necessary in one place?
    It would be good if eventually all payment routines used the same piece of code, it should be quite easy to cater for any minor differences? (Common order create script would be good too).
     
  7. Am I right in thinking that although a Refund option now available from admin, updating the order status and sending emails has to be done manually?
    Currently, when checking the returned value a ‘Total Mismatch’ error is recorded in the status history because of comparing –ve against +ve.
   
If you are still reading, thank you for your patience.
 

 



#31   bevilleliam

bevilleliam
  • Members
  • 23 posts
  • Real Name:Liam Beville

Posted 15 February 2015 - 13:26

Hi.

 

I have PayPal Express Checkout installed as payment option in payment modules of oscommerce shop. I entered API details and have sandbox ticked so as to test. When I test by clicking on the PayPal button on front end shop then its giving an error page (url is: http://newcastlewest...aypal/login.php ) can anyone inform me as to what to do to resolve?



#32   breakbred101

breakbred101
  • Members
  • 75 posts
  • Real Name:Eric

Posted 03 March 2015 - 18:26

So paypal express app is throwing a fatal error when transferring from website to paypal. The exact error is

 

Fatal error: Call to a member function formatCurrencyRaw() on a non-object in /........../htdocs/mywebsite/ext/modules/payment/paypal/express.php on line 725

 

Line 725 specifically is the else execution below

      foreach ( $order->products as $product ) {
        if ( DISPLAY_PRICE_WITH_TAX == 'true' ) {
          $product_price = $paypal_express->_app->formatCurrencyRaw($product['final_price'] + tep_calculate_tax($product['final_price'], $product['tax']));
        } else {
          $product_price = $paypal_express->_app->formatCurrencyRaw($product['final_price']);
        }

Edited by breakbred101, 03 March 2015 - 18:27.


#33   drillsar

drillsar
  • Members
  • 470 posts
  • Real Name:thomas mccaffery

Posted 09 March 2015 - 06:56

Here is a weird thing. When I go to configure Paypal Standard and save page it says I You don't have permission to access paypal.php on this server. However, everything else is fine accept I cant save standard settings strange.



#34   drillsar

drillsar
  • Members
  • 470 posts
  • Real Name:thomas mccaffery

Posted 10 March 2015 - 05:33

@Harald Ponce de Leon @greasemonkey I am thinking it's a bug this error. You shouldnt have to remove the

// Set the level of error reporting
  error_reporting(E_ALL & ~E_NOTICE) to fix it

Warning: constant() [function.constant]: Couldn't find constant OSCOM_APP_PAYPAL_PS_STATUS in /home/*****/public_html/sandbox/includes/apps/paypal/OSCOM_PayPal.php on line 200

Edited by drillsar, 10 March 2015 - 05:34.


#35   Rudges

Rudges
  • Members
  • 1 posts
  • Real Name:Stephen Rudge

Posted 31 March 2015 - 08:09

Hi

You refer to upcoming 2.3.5 in this announcement and my website developer has suggested we wait for this version before upgrading my 2.3.3.4 site. Can you give me any idea when this new version will be launched?

 

Thanks



#36   headline-dbs

headline-dbs
  • Members
  • 20 posts
  • Real Name:Frank
  • Gender:Male

Posted 31 March 2015 - 18:26

Warning: constant() [function.constant]: Couldn't find constant OSCOM_APP_PAYPAL_PS_STATUS in /home/*****/public_html/sandbox/includes/apps/paypal/OSCOM_PayPal.php on line 200

I have the same error.
How can I fix this?



#37   Supertex

Supertex
  • Members
  • 274 posts
  • Real Name:Shawn
  • Gender:Male
  • Location:Wichita Falls, Texas

Posted 03 April 2015 - 13:46

@trier

 

 

 

A bit extreme, but in theory, with perfect timing, I guess it is possible for both paypal standard and IPN to go through the post payment motions?

 

This is absolutely possible, and in fact, more probable than you might think.  It's happened to me twice now, and my stock was hit for double both times - in some cases, I ended up with negative quantities.  When I go back through the transactions...I see MANY times it was within 1 second of happening again.  I'm very concerned about this.

 

See here: http://forums.oscomm...tock-decrement/


Edited by Supertex, 03 April 2015 - 13:48.


#38   sanctuarybookshop

sanctuarybookshop
  • Members
  • 42 posts
  • Real Name:paul

Posted 18 April 2015 - 17:51

I installed the PayPal app on a stock install, everything works but I'd like to customise the email sent to the customer, but when I find the code in /includes/modules/payment/PayPal_standard.php that deals with sending the email but when I make a change to the layiut, the changes aren't reflected in the customer email. Any suggestions

#39   trier

trier
  • Members
  • 70 posts
  • Real Name:Jimbo
  • Gender:Male

Posted 20 April 2015 - 12:16

@sanctuarybookshop

 

Don't know if this will help -

 

Confirmation emails for paypal standard payments are sent from /includes/modules/payment/paypal_standard.php and also from  ext/modules/payment/paypal/standard_ipn.php. Both modules can complete the order process and send confirmation emails. paypal_standard.php completes the order from checkout_process.php when the customer returns to site. standard_ipn.php reacts to a PayPal communication 'behind the scenes'.

 

In theory(???) completion will be by one or the other never both(???), there is processing in place which tries to prevent duplication. The sequence of these cannot be controlled/dictated. Sometimes a customer may not return to site. The IPN callback can occasionally go walkabout. Either can happen first.

 

The email changes you made in paypal_standard.php need to be replicated in standard_ipn.php.

 

You may have already found that some of the confirmation emails do reflect the changes you've made.



#40   oldcelt

oldcelt
  • Members
  • 198 posts
  • Real Name:Ken Wheeler
  • Gender:Male
  • Location:Herefordshire, UK

Posted 23 July 2015 - 08:15

There appears to have been a number of bugs identified since this app was released.

 

Any chance of an update to the app in order to incorporate the fixes suggested?

 

Also, I noticed someone ask earlier in the thread when 2.3.5 would be available.   Any news on this?