Page 35 of 38 FirstFirst ... 253334353637 ... LastLast
Results 341 to 350 of 375
  1. #341
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,667
    Plugin Contributions
    95

    Default Re: PayPal RESTful API Payment Module

    Further inspection of the way that PayPal wants the phone number to be submitted (country-code separated from phone number) makes it "not that easy" to submit phone numbers ... especially since an improperly-formatted one will result in PayPal's rejection of a to-be-placed order.

  2. #342
    Join Date
    Jun 2008
    Location
    Japan
    Posts
    259
    Plugin Contributions
    7

    Default Re: PayPal RESTful API Payment Module

    Did anybody notice that when PayPal Restfull payment module is installed, the payment module page becomes sluggish?
    Normally, when selecting a new line by clicking on it, it takes like half a second, but when PayPal module is installed (sandbox mode on a test cart, last git version) it takes between 2 or 3 seconds!
    Uninstalling the module will makes things goback to normal.

  3. #343
    Join Date
    Jun 2008
    Location
    Japan
    Posts
    259
    Plugin Contributions
    7

    Default Re: PayPal RESTful API Payment Module

    Forgot to say that I used PayPal RESTful v1.2.1.

  4. #344
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,667
    Plugin Contributions
    95

    Default Re: PayPal RESTful API Payment Module

    Quote Originally Posted by pilou2 View Post
    Forgot to say that I used PayPal RESTful v1.2.1.
    Quote Originally Posted by pilou2 View Post
    Did anybody notice that when PayPal Restfull payment module is installed, the payment module page becomes sluggish?
    Normally, when selecting a new line by clicking on it, it takes like half a second, but when PayPal module is installed (sandbox mode on a test cart, last git version) it takes between 2 or 3 seconds!
    Uninstalling the module will makes things goback to normal.
    What other payment modules are enabled?

  5. #345
    Join Date
    Jun 2008
    Location
    Japan
    Posts
    259
    Plugin Contributions
    7

    Default Re: PayPal RESTful API Payment Module

    Quote Originally Posted by lat9 View Post
    What other payment modules are enabled?
    Freecharger.
    I uninstalled it but nothing change, I know have PayPalRESTful only.
    Does the module try to communicate with a particular PayPal server each time the page is reloaded?
    Last edited by pilou2; 8 Oct 2025 at 03:27 PM.

  6. #346
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,667
    Plugin Contributions
    95

    Default Re: PayPal RESTful API Payment Module

    Quote Originally Posted by pilou2 View Post
    Freecharger.
    I uninstalled it but nothing change, I know have PayPalRESTful only.
    Does the module try to communicate with a particular PayPal server each time the page is reloaded?
    If you're adding PayPal/RESTful to a site that previously has only non-API-using payment methods, then you'll see a delay in the page-load since paypalr communicates with the PayPal server to make sure that it's got a valid order to be processed.

  7. #347
    Join Date
    Jun 2008
    Location
    Japan
    Posts
    259
    Plugin Contributions
    7

    Default Re: PayPal RESTful API Payment Module

    I am speaking of admin modules page for payment, not on catalog side cart. Just clicking on another module line (installed or not) to select it and I have to wait 2-3s before the new line/module is actualy selected and this only when PayPalr is installed!
    It seems some access to distant server is done on each new line selection (page refresh) which is not normal. There is nothing to process and a server response over 2 seconds is too much especially if its with PayPal network that should be fast.
    There might be two problems here:
    1 - When just selecting other modules, PayPalr module should not have to communicate with PayPal network.
    2 - If PayPalr module communicates with PayPal network it should be with a local (country, Japan in my case) server (mirror?), not with a distant (US?) server.

    Or it might be something completly different... I actually have no idea.

  8. #348
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,667
    Plugin Contributions
    95

    Default Re: PayPal RESTful API Payment Module

    Quote Originally Posted by pilou2 View Post
    I am speaking of admin modules page for payment, not on catalog side cart. Just clicking on another module line (installed or not) to select it and I have to wait 2-3s before the new line/module is actualy selected and this only when PayPalr is installed!
    It seems some access to distant server is done on each new line selection (page refresh) which is not normal. There is nothing to process and a server response over 2 seconds is too much especially if its with PayPal network that should be fast.
    There might be two problems here:
    1 - When just selecting other modules, PayPalr module should not have to communicate with PayPal network.
    2 - If PayPalr module communicates with PayPal network it should be with a local (country, Japan in my case) server (mirror?), not with a distant (US?) server.

    Or it might be something completly different... I actually have no idea.
    During the admin's Modules processing, the paypalr payment module verifies that any PayPal credentials entered are valid and auto-disables itself if not.

  9. #349
    Join Date
    Jun 2008
    Location
    Japan
    Posts
    259
    Plugin Contributions
    7

    Default Re: PayPal RESTful API Payment Module

    Quote Originally Posted by lat9 View Post
    During the admin's Modules processing, the paypalr payment module verifies that any PayPal credentials entered are valid and auto-disables itself if not.
    That's it! When setting or testing other modules for me maybe it is better to set PayPalr enable option to false? On a live site it should not be too much of a problem as you don't go there very often.
    When I was counting 1 2 3 after each click before clicking on something else, it felt like ZC wanted to waltz!
    1 2 3 click ... 1 2 3 click ... 1 2 3 clcik ... click, oh sh...t never been good at dansing...
    Last edited by pilou2; 9 Oct 2025 at 04:45 AM.

  10. #350
    Join Date
    Jun 2008
    Location
    Japan
    Posts
    259
    Plugin Contributions
    7

    Default Re: PayPal RESTful API Payment Module

    I did some quick fix so that PayPalr module does not do its checking every time you want to do some setting on other modules.
    But I think a more efficient approach would be to do the API checking only when PayPalr module is installed or one of its settings is modified, and at most when it is selected. More than that and it is useless and just add a time penalty on all your other actions. Two or three modules doing this could render the admin modules page nearly unusable.
    Here is the code I changed in
    Code:
    includes/modules/payment/paypalr.php
    after line 293:
    PHP Code:
            $this->enabled = ($this->enabled === true && $this->validateConfiguration($curl_installed));
            if (
    $this->enabled && IS_ADMIN_FLAG === true) {
                
    // register/update known webhooks
                
    $this->ppr->registerAndUpdateSubscribedWebhooks();
            } 
    to this:
    PHP Code:
            if (IS_ADMIN_FLAG === false || ($this->enabled === true && $_GET['module'] === 'paypalr')) {
                
    $this->enabled = ($this->enabled === true && $this->validateConfiguration($curl_installed));
                if (
    $this->enabled && IS_ADMIN_FLAG === true) {
                    
    // register/update known webhooks
                    
    $this->ppr->registerAndUpdateSubscribedWebhooks();
                }
            } 
    This just a quick fix for those who might have the same problem.

 

 
Page 35 of 38 FirstFirst ... 253334353637 ... LastLast

Similar Threads

  1. v158 UPS Shipping using RESTful/OAuth API [Support Thread]
    By lat9 in forum Addon Shipping Modules
    Replies: 175
    Last Post: 5 Nov 2025, 12:19 AM
  2. IPower & FirstData API Payment Module
    By spence in forum Addon Payment Modules
    Replies: 6
    Last Post: 7 Jul 2011, 06:33 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg