Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

PayPal App v5.000


mcmannehan

Recommended Posts

The update today not working with PHP7. There still used the old class style. I did change to the new class style (__construct), now working with PHP7.

If some one need help for that, PM me. Thanks.

Edited by mcmannehan
  • The clever one learn from everything and from everybody
  • The normal one learn from his experience
  • The silly one knows everything better

[socrates, 412 before Christ]

Computers help us with the problems we wouldn't have without them!
99.9% of the bugs sit in front of the computer!
My programmed add-ons: WDW EasyTabs 1.0.3, WDW Facebook Like 1.0.0

if(isset($this) || !isset($this)){ // that's the question...

 

Link to comment
Share on other sites

For those upgrading, if v4.039 worked, then v5.000 will also work fine.

 

For new installations that are getting deprecated notices, use the following error reporting level in includes/application_top.php and admin/includes/application_top.php:

 

 

// set the level of error reporting
  error_reporting(E_ALL & ~E_NOTICE);
 
  if (defined('E_DEPRECATED')) {
    error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED);
  }

 

The error reporting is set at the top of those files. The code block above will be present in v2.3.5 onwards.

:heart:, osCommerce

Link to comment
Share on other sites

For those upgrading, if v4.039 worked, then v5.000 will also work fine.

 

For new installations that are getting deprecated notices, use the following error reporting level in includes/application_top.php and admin/includes/application_top.php:

// set the level of error reporting
  error_reporting(E_ALL & ~E_NOTICE);
 
  if (defined('E_DEPRECATED')) {
    error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED);
  }

The error reporting is set at the top of those files. The code block above will be present in v2.3.5 onwards.

 

i know, but i like to have clean PHP7 code. Thats why i change and it's working fine with PHP7.0 and PHP7.1.1

  • The clever one learn from everything and from everybody
  • The normal one learn from his experience
  • The silly one knows everything better

[socrates, 412 before Christ]

Computers help us with the problems we wouldn't have without them!
99.9% of the bugs sit in front of the computer!
My programmed add-ons: WDW EasyTabs 1.0.3, WDW Facebook Like 1.0.0

if(isset($this) || !isset($this)){ // that's the question...

 

Link to comment
Share on other sites

:thumbsup:  Another update to the PayPal App will be pushed out soon that adds an option to force TLS v1.2 connections.

 

Cool, than i change the class files again and will check it's work or not.

  • The clever one learn from everything and from everybody
  • The normal one learn from his experience
  • The silly one knows everything better

[socrates, 412 before Christ]

Computers help us with the problems we wouldn't have without them!
99.9% of the bugs sit in front of the computer!
My programmed add-ons: WDW EasyTabs 1.0.3, WDW Facebook Like 1.0.0

if(isset($this) || !isset($this)){ // that's the question...

 

Link to comment
Share on other sites

Harald, does the auto update change anything with regards to the Street2 part of the address being captured? It's just that I vaguely remember Jack altering our installation to make sure we got the second line in the address (often when Aussies put their town/suburb name).

 

Also, I wonder if you are able to comment on my recent post in the PayPal forum re: a customer being fed the incorrect shipping rates?

Link to comment
Share on other sites

Harald, does the auto update change anything with regards to the Street2 part of the address being captured? It's just that I vaguely remember Jack altering our installation to make sure we got the second line in the address (often when Aussies put their town/suburb name).

 

It will overwrite files that have been modified. Here is a list of changes that will be performed:

 

https://github.com/haraldpdl/oscom2_app_paypal/compare/23-4.039...23-5.000

 

Click on the Files Changed tab and then the "40 changed files" link to view the file listing.

 

I'll look at adding the suburb into SHIPTOSTREET2 in the upcoming update - this won't break existing installations. Could you get Jack to email me so we can go over the changes?

:heart:, osCommerce

Link to comment
Share on other sites

@@Harald Ponce de Leon The changes @@Sam-AUST mentioned are in the thread she posted. There was also a fix for a missing DB, or something like that, but I see that fix is already in the new version.

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

It's a one click procedure. The App checks once every 24 hours if an update is available and displays a notice. A check is always performed on the Help/Info page.

 

The update procedure makes sure the file and directory permissions are sufficient for all files being updated before the files are overwritten.

 

Feel free to try on a backup beforehand.

:heart:, osCommerce

Link to comment
Share on other sites

@@Harald Ponce de Leon The changes @@Sam-AUST mentioned are in the thread she posted. There was also a fix for a missing DB, or something like that, but I see that fix is already in the new version.

Perfect! I'll send you a PM when the changes have been pushed out to review. Thanks!

:heart:, osCommerce

Link to comment
Share on other sites

/catalog///includes/modules/payment/paypal_standard.php

 

Fatal error: Uncaught Error: Call to undefined method OSCOM_PayPal::getIdentifier() in catalog/includes/modules/payment/paypal_standard.php:363 Stack trace: #0 catalog/includes/classes/payment.php(173): paypal_standard->process_button() #1 /catalog/checkout_confirmation.php(292): payment->process_button() #2 {main} thrown in catalog/includes/modules/payment/paypal_standard.php on line 363

function paypal_standard() {
      global $PHP_SELF, $payment, $order;

      $this->_app = new OSCOM_PayPal(); <--- HERE
.................

and about line 363

      $parameters = array('cmd' => '_cart',
                          'upload' => '1',
                          'item_name_1' => STORE_NAME,
                          'shipping_1' => $this->_app->formatCurrencyRaw($order->info['shipping_cost']),
                          'business' => $this->_app->getCredentials('PS', 'email'),
                          'amount_1' => $this->_app->formatCurrencyRaw($order->info['total'] - $order->info['shipping_cost'] - $total_tax),
                          'currency_code' => $currency,
                          'invoice' => substr($cart_PayPal_Standard_ID, strpos($cart_PayPal_Standard_ID, '-')+1),
                          'custom' => $customer_id,
                          'no_note' => '1',
                          'notify_url' => tep_href_link('ext/modules/payment/paypal/standard_ipn.php', (isset($ipn_language) ? 'language=' . $ipn_language : ''), 'SSL', false, false),
                          'rm' => '2',
                          'return' => tep_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL'),
                          'cancel_return' => tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'),
                          'bn' => $OSCOM_PayPal->getIdentifier(), <--- ????
                          'paymentaction' => (OSCOM_APP_PAYPAL_PS_TRANSACTION_METHOD == '1') ? 'sale' : 'authorization');

Any ideas?

Edited by mcmannehan
  • The clever one learn from everything and from everybody
  • The normal one learn from his experience
  • The silly one knows everything better

[socrates, 412 before Christ]

Computers help us with the problems we wouldn't have without them!
99.9% of the bugs sit in front of the computer!
My programmed add-ons: WDW EasyTabs 1.0.3, WDW Facebook Like 1.0.0

if(isset($this) || !isset($this)){ // that's the question...

 

Link to comment
Share on other sites

i did change back to PayPal App v4.039 because this work very well under php5.6 and php 7.0 and php 7.1.1 in sandbox mode

the PayPal App v5.000 is not working well in php5.6 and php 7.0 and php 7.1.1 in sandbox mode

 

i use flat shipping and the shipping rates are okay, but it's in sandbox mode

Edited by mcmannehan
  • The clever one learn from everything and from everybody
  • The normal one learn from his experience
  • The silly one knows everything better

[socrates, 412 before Christ]

Computers help us with the problems we wouldn't have without them!
99.9% of the bugs sit in front of the computer!
My programmed add-ons: WDW EasyTabs 1.0.3, WDW Facebook Like 1.0.0

if(isset($this) || !isset($this)){ // that's the question...

 

Link to comment
Share on other sites

i did check again at my test shop with the flat shiping all is working well in sandbox mode

where you get the "ship in cart modul"? I think this modul is the problem.

  • The clever one learn from everything and from everybody
  • The normal one learn from his experience
  • The silly one knows everything better

[socrates, 412 before Christ]

Computers help us with the problems we wouldn't have without them!
99.9% of the bugs sit in front of the computer!
My programmed add-ons: WDW EasyTabs 1.0.3, WDW Facebook Like 1.0.0

if(isset($this) || !isset($this)){ // that's the question...

 

Link to comment
Share on other sites

I try the follow resolution for the Paypal Api 5.000

 

find in /catalog//includes/modules/payment/paypal_standard.php

      $parameters = array('cmd' => '_cart',
                          'upload' => '1',
                          'item_name_1' => STORE_NAME,
                          'shipping_1' => $this->_app->formatCurrencyRaw($order->info['shipping_cost']),
                          'business' => $this->_app->getCredentials('PS', 'email'),
                          'amount_1' => $this->_app->formatCurrencyRaw($order->info['total'] - $order->info['shipping_cost'] - $total_tax),
                          'currency_code' => $currency,
                          'invoice' => substr($cart_PayPal_Standard_ID, strpos($cart_PayPal_Standard_ID, '-')+1),
                          'custom' => $customer_id,
                          'no_note' => '1',
                          'notify_url' => tep_href_link('ext/modules/payment/paypal/standard_ipn.php', (isset($ipn_language) ? 'language=' . $ipn_language : ''), 'SSL', false, false),
                          'rm' => '2',
                          'return' => tep_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL'),
                          'cancel_return' => tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'),
                          'bn' => $OSCOM_PayPal->getIdentifier(),
                          'paymentaction' => (OSCOM_APP_PAYPAL_PS_TRANSACTION_METHOD == '1') ? 'sale' : 'authorization');

and change to

      $parameters = array('cmd' => '_cart',
                          'upload' => '1',
                          'item_name_1' => STORE_NAME,
                          'shipping_1' => $this->_app->formatCurrencyRaw($order->info['shipping_cost']),
                          'business' => $this->_app->getCredentials('PS', 'email'),
                          'amount_1' => $this->_app->formatCurrencyRaw($order->info['total'] - $order->info['shipping_cost'] - $total_tax),
                          'currency_code' => $currency,
                          'invoice' => substr($cart_PayPal_Standard_ID, strpos($cart_PayPal_Standard_ID, '-')+1),
                          'custom' => $customer_id,
                          'no_note' => '1',
                          'notify_url' => tep_href_link('ext/modules/payment/paypal/standard_ipn.php', (isset($ipn_language) ? 'language=' . $ipn_language : ''), 'SSL', false, false),
                          'rm' => '2',
                          'return' => tep_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL'),
                          'cancel_return' => tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'),
                          //'bn' => $OSCOM_PayPal->getIdentifier(),
                          'bn' => 'osCommerce_PPapp_v5',
                          'paymentaction' => (OSCOM_APP_PAYPAL_PS_TRANSACTION_METHOD == '1') ? 'sale' : 'authorization');

I did test with PHP5.6 and PHP7.1.1 and it's not working in sandbox mode

Paypaly said you paid already and if i go back to the shop, the shop show a message:

 

Could not verify the PayPal transaction. Please try again.

 

The /catalog/includes/apps/paypal/OSCOM_PayPal.php isn't included and if you check the path, than there show you

/catalog/includes/modules/payment/OSCOM_PayPal.php

 

There is some issue to load the OSCOM_PayPal.php from the correct path.

 

I think the Paypal Api 5.000 isn't ready for production shop, so i still use the v4.039 because its working very well

 

Devlopment of osC please check it and fix it. Thank you!

Edited by mcmannehan
  • The clever one learn from everything and from everybody
  • The normal one learn from his experience
  • The silly one knows everything better

[socrates, 412 before Christ]

Computers help us with the problems we wouldn't have without them!
99.9% of the bugs sit in front of the computer!
My programmed add-ons: WDW EasyTabs 1.0.3, WDW Facebook Like 1.0.0

if(isset($this) || !isset($this)){ // that's the question...

 

Link to comment
Share on other sites

@@Harald Ponce de Leon sorry to put this here but all my Pay Pal EC transactions are starting to log callbackresponses in the log immediately after them. This was never happening before, just started happening and some customers are abandoning carts. I haven't updated to this latest version as I'm waiting for the street2 thing to happen.

Link to comment
Share on other sites

While all product costs, taxes, shipping etc. are displayed correctly in OSC, the VAT is missing (sales tax: 0.00€) on the Paypal site (order details). Both in the customer's and seller's Paypal account !!?? The total paid and received is correct..

Link to comment
Share on other sites

/catalog///includes/modules/payment/paypal_standard.php

 

Fatal error: Uncaught Error: Call to undefined method OSCOM_PayPal::getIdentifier() in catalog/includes/modules/payment/paypal_standard.php:363 Stack trace: #0 catalog/includes/classes/payment.php(173): paypal_standard->process_button() #1 /catalog/checkout_confirmation.php(292): payment->process_button() #2 {main} thrown in catalog/includes/modules/payment/paypal_standard.php on line 363

Thanks for pointing this out! This has been fixed in v5.0.1 - to apply it, visit the Info/Help page and the update notice should appear.

:heart:, osCommerce

Link to comment
Share on other sites

Thanks for pointing this out! This has been fixed in v5.0.1 - to apply it, visit the Info/Help page and the update notice should appear.

 

Harald, you are very welcome!!! I hope the other issue will fixed too.

  • The clever one learn from everything and from everybody
  • The normal one learn from his experience
  • The silly one knows everything better

[socrates, 412 before Christ]

Computers help us with the problems we wouldn't have without them!
99.9% of the bugs sit in front of the computer!
My programmed add-ons: WDW EasyTabs 1.0.3, WDW Facebook Like 1.0.0

if(isset($this) || !isset($this)){ // that's the question...

 

Link to comment
Share on other sites

While all product costs, taxes, shipping etc. are displayed correctly in OSC, the VAT is missing (sales tax: 0.00€) on the Paypal site (order details). Both in the customer's and seller's Paypal account !!?? The total paid and received is correct..

 

your "ship in cart modul" is the problem.

  • The clever one learn from everything and from everybody
  • The normal one learn from his experience
  • The silly one knows everything better

[socrates, 412 before Christ]

Computers help us with the problems we wouldn't have without them!
99.9% of the bugs sit in front of the computer!
My programmed add-ons: WDW EasyTabs 1.0.3, WDW Facebook Like 1.0.0

if(isset($this) || !isset($this)){ // that's the question...

 

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...