Latest News: (loading..)
Harald Ponce de Leon

PayPal App for osCommerce Online Merchant

149 posts in this topic

@@greasemonkey @@mattjt83 could you please confirm if the following fixes the positioning for you:

 

in catalog/includes/modules/payment/paypal_express.php, on line 207 change from:

 

 

<span id="ppECButton"></span>

 

to:

 

 

<span id="ppECButton" style="display: inline-block;"></span>

 

(A better approach is to add a custom css file to the PayPal App)

frankl likes this

Share this post


Link to post
Share on other sites

@@greasemonkey @@mattjt83 could you please confirm if the following fixes the positioning for you:

 

in catalog/includes/modules/payment/paypal_express.php, on line 207 change from:

<span id="ppECButton"></span>

to:

<span id="ppECButton" style="display: inline-block;"></span>

(A better approach is to add a custom css file to the PayPal App)

 

yep that works....

Share this post


Link to post
Share on other sites

v5.018 has just been pushed out with the support for a custom stylesheet file to be loaded on the shopping cart page. This will only be loaded if the file exists (it does not as part of the PayPal App package) and will never be modified by the App's online update routine.

 

Documentation for the available id's and the location and filename for the custom stylesheet file can be found at:

 

https://library.oscommerce.com/Package&en&paypal&oscom23&express_checkout

Share this post


Link to post
Share on other sites

@@Harald Ponce de Leon

 

Lately, I've had two instances of an order being placed, and it shows up at paypal as a paid order, but there's no record of the order in the store.

 

If I look at the PP logs (in the app) I see the '_notify-synch' for the order with "VERIFIED" in the response...shows the cart items...amount, etc.  Any idea why the order is getting deleted by the store??  I haven't updated the app because it's been working ok - still at 4.039.  Any ideas?

Share this post


Link to post
Share on other sites

 

@@headline-dbs It seems to be a bug! Can you please make a change in the following file:
 
catalog/includes/modules/payment/paypal_standard.php
 
line 599, change the PS in:
 
.... $this->_app->getApiResult('PS', 'GetTran....
 
to APP, so it becomes:
 
.... $this->_app->getApiResult('APP', 'GetTran....
 
Could you confirm if that works for you? It will be fixed in the next version.

 

 

Coming from

 

http://forums.oscommerce.com/topic/410952-paypal-sandard-customer-receives-message-could-not-verify-paypal-trans/page-2

 

Jim,

 

thank you very much for your assistance.

 

Meanwhile I found this:

 

http://forums.oscomm...-4#entry1750358

 

Did what Harald suggested.

 

Customer has been redirected to the shop. Shopping cart is empty. Customer received an email of the order with all details. Shop-owner received all information about the deal. In the PP-account the deal was confirmed and all right.

 

Seems to work now. Would be nice to get some confirmation of other users. I don't want anybody to get me wrong, but IMVHO this should be fixed soon. It's all about money...

 

Regards,

stefan

Share this post


Link to post
Share on other sites

Posted (edited)

@@Harald Ponce de Leon,

 

I'm receiving a message from PP about the instant payment verification:

 

Could you tell me what this is about? The PDT is set, also the notification in the PP account settings, transaction and all notifications seems to be o.k. afaik...

 

Regards,

stefan

 

 

PayPal-Warnung "Sofortige Zahlungsbestätigung"
Von:
    service@@paypal.de
Datum:
    18.04.2017 (07:13:02 CEST)
An:
    XXX
[text/plain] Text (1 KB)
Guten Tag XXX !

Bitte überprüfen Sie den Server, der für sofortige Zahlungsbestätigungen von PayPal zuständig ist. Sofortige Zahlungsbestätigungen an den/die folgende(n) URL(s) sind fehlgeschlagen:

https://www.XXX.de/ext/modules/payment/paypal/standard_ipn.php

Wenn Sie diese URL nicht erkennen, nutzen Sie vielleicht einen Serviceprovider, der die sofortige Zahlungsbestätigung in Ihrem Namen verwendet. Bitte wenden Sie sich mit den oben genannten Informationen an Ihren Serviceprovider. Wenn dieses Problem weiterhin besteht, könnten die sofortigen Zahlungsbestätigungen für Ihr Konto deaktiviert werden.

Wir bedanken uns für die rasche Erledigung dieser Angelegenheit.

Herzliche Grüße

Ihr PayPal-Team

SCHÜTZEN SIE IHR PASSWORT

Geben Sie Ihr Passwort NIEMALS an andere Personen weiter, auch nicht an Mitarbeiter von PayPal. Schützen Sie sich vor betrügerischen Websites, indem Sie ein neues Browserfenster (z.B. in Internet Explorer oder Netscape) öffnen und die PayPal-URL jedes Mal eingeben, wenn Sie sich in Ihr Konto einloggen.

Bitte antworten Sie nicht auf diese E-Mail. Um mit einem Mitarbeiter unseres Kundenservice zu sprechen, klicken Sie auf "
Hilfe und Kontakt
https://www.paypal.com/selfhelp/home ".

Copyright © 1999–2017 PayPal. Alle Rechte vorbehalten.

PayPal (Europe) S.à r.l. et Cie, S.C.A., Société en Commandite par Actions. Eingetragener Firmensitz: 22-24 Boulevard Royal, L-2449 Luxembourg, RCS Luxembourg B 118 349

Edited by stefan21

Share this post


Link to post
Share on other sites

Additional information:

 

The log in the PP app shows:

 

PS _notify-validate [iPN] 173.0.81.1 Guest 18/04/2017 08:35:33   PS _notify-validate [iPN] 173.0.81.1 Guest 18/04/2017 08:25:11   PS _notify-validate [iPN] 173.0.81.1 Guest 18/04/2017 07:48:50   PS _notify-validate [iPN] 173.0.81.1 Guest 18/04/2017 07:36:19   PS _notify-validate [iPN] 173.0.81.1 Guest 17/04/2017 22:09:00   PS _notify-validate [iPN] 173.0.81.1 Guest 17/04/2017 22:08:25   PS _notify-validate [iPN] 173.0.81.1 Guest 17/04/2017 22:07:38   PS _notify-validate [iPN] 173.0.81.1 Guest 17/04/2017 22:07:03   PS _notify-validate [iPN] 173.0.81.1 Guest 17/04/2017 22:05:56   PS _notify-validate [iPN] 173.0.81.1 Guest 17/04/2017 21:12:51   PS _notify-validate [iPN] 173.0.81.1 Guest 17/04/2017 21:02:29

 

Is this normal behaviour?

 

Regards.

stefan

Share this post


Link to post
Share on other sites

I have to push this up again. Coming up once per day:

 

Guten Tag xxx!

Bitte überprüfen Sie den Server, der für sofortige Zahlungsbestätigungen von PayPal zuständig ist. Sofortige Zahlungsbestätigungen an den/die folgende(n) URL(s) sind fehlgeschlagen:

https://www.XXX.de/ext/modules/payment/paypal/standard_ipn.php

Wenn Sie diese URL nicht erkennen, nutzen Sie vielleicht einen Serviceprovider, der die sofortige Zahlungsbestätigung in Ihrem Namen verwendet. Bitte wenden Sie sich mit den oben genannten Informationen an Ihren Serviceprovider. Wenn dieses Problem weiterhin besteht, könnten die sofortigen Zahlungsbestätigungen für Ihr Konto deaktiviert werden.

Wir bedanken uns für die rasche Erledigung dieser Angelegenheit.

Herzliche Grüße

Ihr PayPal-Team

SCHÜTZEN SIE IHR PASSWORT

Geben Sie Ihr Passwort NIEMALS an andere Personen weiter, auch nicht an Mitarbeiter von PayPal. Schützen Sie sich vor betrügerischen Websites, indem Sie ein neues Browserfenster (z.B. in Internet Explorer oder Netscape) öffnen und die PayPal-URL jedes Mal eingeben, wenn Sie sich in Ihr Konto einloggen.

Bitte antworten Sie nicht auf diese E-Mail. Um mit einem Mitarbeiter unseres Kundenservice zu sprechen, klicken Sie auf "
Hilfe und Kontakt
https://www.paypal.com/selfhelp/home ".

Copyright © 1999–2017 PayPal. Alle Rechte vorbehalten. 

PayPal (Europe) S.à r.l. et Cie, S.C.A., Société en Commandite par Actions. Eingetragener Firmensitz: 22-24 Boulevard Royal, L-2449 Luxembourg, RCS Luxembourg B 118 349

PayPal PPX000686:d556522dea6d9

 

Any explanations?

Share this post


Link to post
Share on other sites

Posted (edited)

Some more info from apache:

 

URL Requested  Referrer  IP Number  User Agent  HTTP Error

 /ext/modules/payment/paypal/standard_ipn.php   173.0.81.1 PayPal IPN ( https://www.paypal.com/ipn ) 503

 

503 Service Unavailable

The server is currently unavailable (overloaded or down)

 

Anybody? Harald?

 

Regards,

stefan

Edited by stefan21

Share this post


Link to post
Share on other sites

@Harald Ponce de Leon:

for Paypal App (contribution http://addons.oscommerce.com/info/9184) version PayPal App v5.018

in catalog/includes/apps/paypal/admin/actions/balance/retrieve.php

line 34: add utf8-encode: $ppBalanceResult['balance'][$ppBalanceResponse['L_CURRENCYCODE' . $counter]] = utf8_encode($balance);

 
Otherwise there is no result at all as the resulting json is bad formatted and generates empty list.
OSC 2.2RC2a, default charset=iso-8859-1, PHP 7.0.10
 
Also the updates don't work on fresh install, the code still use deprecated syntax: Still old constructor syntax is used (juste generate warning for now) and $HTTP_POST_VARS/$HTTP_GET_VARS instead of $_POST/$_GET (this syntax doesn't work anymore in PHP 7, not allowing updates and code to run at all).

 

Regards

Share this post


Link to post
Share on other sites

Noticed that if the browser is zoomed in to 120% the PayPal Iframe checkout button, in shopping cart, is distorted.  Any suggestions on how to correct?

Share this post


Link to post
Share on other sites

@Harald Ponce de Leon

Hi,

I am having some issues when using PayPal Standard with the latest PayPal APP.

I am running osC BS Edge and have recently upgraded PayPal APP from v4.039 to v5.018.  Because my server is on PHP v7.0.14 so I had to modify the following 19 files to make the "deprecated constructor" warning message go away in PayPal APP:

includes\apps\paypal\cfg_params\ssl_version.php
includes\apps\paypal\cfg_params\transactions_order_status_id.php
includes\apps\paypal\hooks\admin\orders\tab.php
includes\apps\paypal\modules\DP\DP.php
includes\apps\paypal\modules\EC\cfg_params\checkout_flow.php
includes\apps\paypal\modules\EC\cfg_params\incontext_button_color.php
includes\apps\paypal\modules\EC\cfg_params\incontext_button_shape.php
includes\apps\paypal\modules\EC\cfg_params\incontext_button_size.php
includes\apps\paypal\modules\EC\cfg_params\transaction_method.php
includes\apps\paypal\modules\EC\EC.php
includes\apps\paypal\modules\HS\HS.php
includes\apps\paypal\modules\LOGIN\LOGIN.php
includes\apps\paypal\modules\PS\cfg_params\prepare_order_status_id.php
includes\apps\paypal\modules\PS\PS.php
includes\modules\content\login\cm_paypal_login.php
includes\modules\payment\paypal_express.php
includes\modules\payment\paypal_pro_dp.php
includes\modules\payment\paypal_pro_hs.php
includes\modules\payment\paypal_standard.php

All test purchases went through.  Payments were received OK.  However, I always received TWO confirmation e-mails with two different, continuous order IDs for each order.  Only the smaller order ID number would be registered in admin/order.  The customer's comments would only show in the e-mail with larger order ID number, but disappeared in admin/order.  This phenomenon occurred either when only IPN or PDT was enabled, or both IPN and PDT were enabled.

It looks to me the following two files are both sending out order confirmation e-mails:

ext\modules\payment\paypal\standard_ipn.php
includes\modules\payment\paypal_standard.php

It would be great if anyone can give me a direction on how to fix this issue of mine.  Thanks in advance for your time and help.

Cheers, Eddy

frankl likes this

Share this post


Link to post
Share on other sites

Hi,

Is 3D secure catered for on the Hosted Solution?

If not is there an amendment available?

Not sure if its dealt with by simply using the hosted solution process or not!

Thanks very much!
Cheers

Rob

 

Share this post


Link to post
Share on other sites

@Moxamint

Comments fix:
includes/modules/payment/paypal_standard.php

Find:
 

            tep_db_perform(TABLE_ORDERS_TOTAL, $sql_data_array);
          }

 

after insert:

//comment fix?
          $sql_data_array = array('orders_id' => $insert_id,
                                  'orders_status_id' => $order->info['order_status'],
                                  'date_added' => 'now()',
                                  'customer_notified' => 0,  // is it from session? $customer_notification = 1;
                                  'comments' => $order->info['comments']);
          tep_db_perform(TABLE_ORDERS_STATUS_HISTORY, $sql_data_array);
// comment fix?



Higher status update could be an issue with order_status number. Could you check is it registered in orders table with order_status = 0?

Share this post


Link to post
Share on other sites

I'm testing Paypal Standard, and I it seems that if the PDT is setup then it does not use IPN. Is that true? Thx for your help! Tim

Share this post


Link to post
Share on other sites

@Gergely Thanks I'll give it a try and report back. I have a new finding, though, that anything I changed in PayPal website would take a while to kick in. I'll try turn off PDT again and see what's gonna happen. Also @clustersolutions by looking at the code in <<paypal_standard.php>> IPN seems to be loaded anyway regardless the setting in your PayPal account - can anyone advise on this?

Cheers, Eddy

Share this post


Link to post
Share on other sites

@moxamint, I think its the other way around, the IPN "requires" the paypal_standard.php. I actually disabled IPN in my sandbox facilitator account, and is now using only the PDT post back. I think this helps bound the problem that I am working on solving. Also, it kinda goes like this if you are using Paypal  Standard. 

1) Paypal redirects to checkout_process.php after successful payment completion.

2) Checkout_process.php execute couple Paypal Standard Methods and it will finish/branch off at the before_process() method. Now, I have no idea where the process() method went but we do have a before_process() and after_process() methods. 

I need to hack in CCVG's coupon code and store credit, and I think I am just gonna pass the whole order_total_module object as json data through the pass through variable for the final update. 

Keeping things simple. Oh, I think Paypal prefer the use of PDT instead of IPN....I think.

Moxamint likes this

Share this post


Link to post
Share on other sites
On 2017/7/24 at 1:42 AM, Gergely said:

Comments fix:
includes/modules/payment/paypal_standard.php

Find:
 


            tep_db_perform(TABLE_ORDERS_TOTAL, $sql_data_array);
          }

 

after insert:


//comment fix?
          $sql_data_array = array('orders_id' => $insert_id,
                                  'orders_status_id' => $order->info['order_status'],
                                  'date_added' => 'now()',
                                  'customer_notified' => 0,  // is it from session? $customer_notification = 1;
                                  'comments' => $order->info['comments']);
          tep_db_perform(TABLE_ORDERS_STATUS_HISTORY, $sql_data_array);
// comment fix?



Higher status update could be an issue with order_status number. Could you check is it registered in orders table with order_status = 0?

@Gergely I placed an order after added the above code, and the order_status in orders table was 5, of which number is assigned to "Verified [PayPal]"

Thanks, Eddy

Share this post


Link to post
Share on other sites

@Moxamint

Look after in admin orders status menu. There are the status list with status id numbers. Have you solved the two email problem?

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