Page 48 of 49 FirstFirst ... 3846474849 LastLast
Results 471 to 480 of 482
  1. #471
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,706
    Plugin Contributions
    12

    Default Re: PayPal RESTful API Payment Module

    Give this a try:

    Add to includes/modules/payment/paypal/PayPalRestful/jquery.paypalr.checkout.js after line 20 (a blank line):

    Code:
    // --- MODIFIED INITIALIZATION LOGIC START ---    // MSC1 Force the 'Credit Card' option to be checked by default, 
        // ensuring the main payment method ('pmt-paypalr') is also checked if it's a radio button.
        
        // Select the main PayPal payment gateway radio/checkbox
        if (jQuery('#pmt-paypalr').length) {
            jQuery('#pmt-paypalr').prop('checked', true);
        }
    
    
        // Select the specific 'Credit Card' sub-option
        jQuery('#ppr-card').prop('checked', true);
    
    
        // Explicitly show the CC fields immediately on load
        showPprCcFields();
        // --- MODIFIED INITIALIZATION LOGIC END ---
    Adjust comments as you will.
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

  2. #472
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,706
    Plugin Contributions
    12

    Default Re: PayPal RESTful API Payment Module

    Also made the following changes to includes/languages/english/modules/payment/YOUR_TEMPLATE/lang.paypalr.php for clarity.

    Line # 8-9 :
    Code:
    'MODULE_PAYMENT_PAYPALR_TEXT_TITLE' => '<b>PayPal Checkout:</b><br>',
    'MODULE_PAYMENT_PAYPALR_SUBTITLE' => '(Select <b>PayPal Wallet</b> → <b>Confirm Order</b>)<br>(Select <b>Credit Card</b> → enter details → <b>Confirm Order</b>)',
    Optional is changing the following around line 138:

    Code:
    'MODULE_PAYMENT_PAYPALR_BUTTON_COLOR' => 'WHITE',   //- One of WHITE, YELLOW, GREY or BLUE; defaults to YELLOW.
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

  3. #473
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,970
    Plugin Contributions
    96

    Default Re: PayPal RESTful API Payment Module

    Quote Originally Posted by swguy View Post
    Questions:

    a) Would it be possible to have the credit card fields open by default?

    b) Would it be possible to move the PayPal Wallet button below the credit card fields?

    Happy to create a Github issue if these are features you would consider. Thanks.
    Feel free to create those GitHub issues for feature updates at https://github.com/zencart/paypalr. That's the "source of truth" for the payment module.

  4. #474
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,539
    Plugin Contributions
    127

    Default Re: PayPal RESTful API Payment Module

    Thank you - issues 39 and 40 created.
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  5. #475
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,706
    Plugin Contributions
    12

    Default Re: PayPal RESTful API Payment Module

    The suggestions above were for the non-encapsulated version of PayPal RESTful.
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

  6. #476
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,970
    Plugin Contributions
    96

    Default Re: PayPal RESTful API Payment Module

    v1.3.3 of the non-encapsulated version of the PayPal RESTful payment module is now available for download: https://www.zen-cart.com/downloads.php?do=file&id=2382

    This release contains various sanitizations (GitHub issues #123, #122 and #121), ported from the encapsulated version (https://github.com/zencart/paypalr).

  7. #477
    Join Date
    Apr 2009
    Posts
    125
    Plugin Contributions
    0

    Default Re: PayPal RESTful API Payment Module

    Got error logs on v1.5.8:
    Code:
    [14-Jul-2026 17:05:15 Canada/Pacific] PHP Fatal error:  Uncaught Error: Call to undefined method sniffer::indexExists() in /zc158/includes/modules/payment/paypalr.php:483
    Stack trace:
    #0 /zc158/includes/modules/payment/paypalr.php(237): paypalr->tableCheckup()
    #1 /zc158/admin/modules.php(187): paypalr->__construct()
    #2 /zc158/admin/index.php(11): require('/zc...')
    #3 {main}
      thrown in /zc158/includes/modules/payment/paypalr.php on line 483
    
    [14-Jul-2026 17:05:15 Canada/Pacific] Request URI: /admin/index.php?cmd=modules&set=payment, IP address: x.x.x.x
    --> PHP Fatal error: Uncaught Error: Call to undefined method sniffer::indexExists() in /zc158/includes/modules/payment/paypalr.php:483
    Stack trace:
    #0 /zc158/includes/modules/payment/paypalr.php(237): paypalr->tableCheckup()
    #1 /zc158/admin/modules.php(187): paypalr->__construct()
    #2 /zc158/admin/index.php(11): require('/zc...')
    #3 {main}
      thrown in /zc158/includes/modules/payment/paypalr.php on line 483.
    Last edited by siliconbug; 15 Jul 2026 at 01:16 AM.

  8. #478
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,916
    Plugin Contributions
    13

    Default Re: PayPal RESTful API Payment Module

    Quote Originally Posted by siliconbug View Post
    Got error logs on v1.5.8:
    Code:
    [14-Jul-2026 17:05:15 Canada/Pacific] PHP Fatal error:  Uncaught Error: Call to undefined method sniffer::indexExists() in /zc158/includes/modules/payment/paypalr.php:483
    Stack trace:
    #0 /zc158/includes/modules/payment/paypalr.php(237): paypalr->tableCheckup()
    #1 /zc158/admin/modules.php(187): paypalr->__construct()
    #2 /zc158/admin/index.php(11): require('/zc...')
    #3 {main}
      thrown in /zc158/includes/modules/payment/paypalr.php on line 483
    
    [14-Jul-2026 17:05:15 Canada/Pacific] Request URI: /admin/index.php?cmd=modules&set=payment, IP address: x.x.x.x
    --> PHP Fatal error: Uncaught Error: Call to undefined method sniffer::indexExists() in /zc158/includes/modules/payment/paypalr.php:483
    Stack trace:
    #0 /zc158/includes/modules/payment/paypalr.php(237): paypalr->tableCheckup()
    #1 /zc158/admin/modules.php(187): paypalr->__construct()
    #2 /zc158/admin/index.php(11): require('/zc...')
    #3 {main}
      thrown in /zc158/includes/modules/payment/paypalr.php on line 483.
    despite the plugin page, v1.3.3 does not seem compatible with zc 1.5.8.

    the missing method is not in zc 1.5.8.

    i would downgrade to v1.3.2.

    best.
    author of square Webpay.
    mxWorks now has Apple Pay and Google Pay. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  9. #479
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,970
    Plugin Contributions
    96

    Default Re: PayPal RESTful API Payment Module

    Yes, for now you'll need to use the non-encapsulated v1.3.2 for Zen Cart versions < 2.1.0; I'll have a 1.3.4 posted shortly to correct the issue.

  10. #480
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,970
    Plugin Contributions
    96

    Default Re: PayPal RESTful API Payment Module

    v1.3.4 of the non-encapsulated version of the PayPal RESTful payment module is now available for download: https://www.zen-cart.com/downloads.php?do=file&id=2382

    This version adds a local method to emulate $sniffer->indexExists, which isn't provided by the base Zen Cart until zc210.

 

 
Page 48 of 49 FirstFirst ... 3846474849 LastLast

Similar Threads

  1. v158 UPS Shipping using RESTful/OAuth API [Support Thread]
    By lat9 in forum Addon Shipping Modules
    Replies: 206
    Last Post: 17 Jul 2026, 04:27 PM
  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