Page 33 of 46 FirstFirst ... 23313233343543 ... LastLast
Results 321 to 330 of 454
  1. #321
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,911
    Plugin Contributions
    96

    Default Re: Refunds not being recognized? + 1 Additional Question

    Quote Originally Posted by siliconbug View Post
    New error log after removing the comma (,) :
    Code:
    [20-Sep-2025 08:55:25 Canada/Pacific] PHP Parse error: syntax error, unexpected '|', expecting ';' or '{' in /includes/modules/payment/paypal/PayPalRestful/Api/PayPalRestfulApi.php on line 367
    
    [20-Sep-2025 08:55:25 Canada/Pacific] Request URI: /index.php?main_page=checkout_shipping, IP address: x.x.x.x
    --> PHP Parse error: syntax error, unexpected '|', expecting ';' or '{' in /includes/modules/payment/paypal/PayPalRestful/Api/PayPalRestfulApi.php on line 367.
    I kinda figured that that would happen. Try removing the "return type hint" on line 367, so that the code block above now reads
    PHP Code:
        public function updatePackageTracking(
            
    string $paypal_txnid,
            
    string $tracking_number,
            
    string $carrier_code,
            
    string $action 'ADD',
            
    bool $email_buyer false
        
    ) { 

  2. #322
    Join Date
    Apr 2009
    Posts
    122
    Plugin Contributions
    0

    Default Re: Refunds not being recognized? + 1 Additional Question

    New errors after removing the "return type hint" on line 367:
    Code:
    [20-Sep-2025 20:32:49 Canada/Pacific] PHP Parse error:  syntax error, unexpected '|', expecting ';' or '{' in /zc/includes/modules/payment/paypal/PayPalRestful/Api/PayPalRestfulApi.php on line 588
    
    [20-Sep-2025 20:32:49 Canada/Pacific] Request URI: /index.php?main_page=checkout_shipping, IP address: x.x.x.x
    --> PHP Parse error: syntax error, unexpected '|', expecting ';' or '{' in /zc/includes/modules/payment/paypal/PayPalRestful/Api/PayPalRestfulApi.php on line 588.

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

    Default Re: Refunds not being recognized? + 1 Additional Question

    Quote Originally Posted by siliconbug View Post
    New errors after removing the "return type hint" on line 367:
    Code:
    [20-Sep-2025 20:32:49 Canada/Pacific] PHP Parse error:  syntax error, unexpected '|', expecting ';' or '{' in /zc/includes/modules/payment/paypal/PayPalRestful/Api/PayPalRestfulApi.php on line 588
    
    [20-Sep-2025 20:32:49 Canada/Pacific] Request URI: /index.php?main_page=checkout_shipping, IP address: x.x.x.x
    --> PHP Parse error: syntax error, unexpected '|', expecting ';' or '{' in /zc/includes/modules/payment/paypal/PayPalRestful/Api/PayPalRestfulApi.php on line 588.
    Change line 588 of the file highlighted above from
    PHP Code:
        public function webhookVerifyByPostback($parameters): bool|null 
    to
    PHP Code:
        public function webhookVerifyByPostback($parameters

  4. #324
    Join Date
    Apr 2009
    Posts
    122
    Plugin Contributions
    0

    Default Re: Refunds not being recognized? + 1 Additional Question

    It works now, thanks!

    Looks like my site doesn't like '|'

  5. #325
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,911
    Plugin Contributions
    96

    Default Re: Refunds not being recognized? + 1 Additional Question

    Quote Originally Posted by siliconbug View Post
    It works now, thanks!

    Looks like my site doesn't like '|'
    Yep, that's PHP 7.4 that's "not liking it". Those corrections (and other downward-compatible PHP/Zen Cart changes) will be part of v1.3.0.

  6. #326
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,691
    Plugin Contributions
    11

    Default Re: PayPal RESTful API Payment Module

    Sorry,
    from iPad
    zc 2.0.1

    [26-Sep-2025 17:50:44 UTC] PHP Fatal error: Uncaught Error: Call to undefined method zcObserverPaypalrestful::notify() in /includes/classes/observers/auto.paypalrestful.php:313
    Stack trace:
    #0 /includes/classes/observers/auto.paypalrestful.php(130): zcObserverPaypalrestful->outputJsFooter('products_all')
    #1 /includes/classes/traits/NotifierManager.php(87): zcObserverPaypalrestful->updateNotifyFooterEnd(Object(notifier), 'NOTIFY_FOOTER_E...', 'products_all', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
    #2 /includes/templates/jays_resp/common/tpl_main_page.php(267): base->notify('NOTIFY_FOOTER_E...', 'products_all')
    #3 /index.php(94): require('/home/jaysmode/...')
    #4 {main}
    thrown in /includes/classes/observers/auto.paypalrestful.php on line 313

    [26-Sep-2025 17:50:44 UTC] Request URI: /index.php?main_page=products_all&disp_order=5&page=75, IP address: 114.119.153.16
    --> PHP Fatal error: Uncaught Error: Call to undefined method zcObserverPaypalrestful::notify() in /includes/classes/observers/auto.paypalrestful.php:313
    Stack trace:
    #0 /includes/classes/observers/auto.paypalrestful.php(130): zcObserverPaypalrestful->outputJsFooter('products_all')
    #1 /includes/classes/traits/NotifierManager.php(87): zcObserverPaypalrestful->updateNotifyFooterEnd(Object(notifier), 'NOTIFY_FOOTER_E...', 'products_all', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
    #2 /includes/templates/jays_resp/common/tpl_main_page.php(267): base->notify('NOTIFY_FOOTER_E...', 'products_all')
    #3 /index.php(94): require('/home/jaysmode/...')
    #4 {main}
    thrown in /includes/classes/observers/auto.paypalrestful.php on line 313.

    [26-Sep-2025 17:50:44 UTC] Request URI: /index.php?main_page=products_all&disp_order=5&page=75, IP address: 114.119.153.16
    --> PHP Fatal error: Uncaught Error: Call to undefined method zcObserverPaypalrestful::notify() in /includes/classes/observers/auto.paypalrestful.php:313
    Stack trace:
    #0 /includes/classes/observers/auto.paypalrestful.php(130): zcObserverPaypalrestful->outputJsFooter('products_all')
    #1 /includes/classes/traits/NotifierManager.php(87): zcObserverPaypalrestful->updateNotifyFooterEnd(Object(notifier), 'NOTIFY_FOOTER_E...', 'products_all', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
    #2 /includes/templates/jays_resp/common/tpl_main_page.php(267): base->notify('NOTIFY_FOOTER_E...', 'products_all')
    #3 /index.php(94): require('/home/jaysmode/...')
    #4 {main}
    thrown in /includes/classes/observers/auto.paypalrestful.php on line 313.

    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.

  7. #327
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,911
    Plugin Contributions
    96

    Default Re: PayPal RESTful API Payment Module

    You don't say what version of PayPal/RESTful you're running, but the file /includes/classes/auto.paypalrestful.php for v1.2.0+ has only 220 lines and that error's coming from line 313.

  8. #328
    Join Date
    Jun 2012
    Location
    California
    Posts
    259
    Plugin Contributions
    0

    Default Re: PayPal RESTful API Payment Module

    Apologies if this question has been asked before but the plug in is creating logs for every transaction. Is this normal behavior? I have the debug turned off in the plug in.

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

    Default Re: PayPal RESTful API Payment Module

    Quote Originally Posted by wsworx View Post
    Apologies if this question has been asked before but the plug in is creating logs for every transaction. Is this normal behavior? I have the debug turned off in the plug in.
    An example of such a log would help greatly in diagnosing the issue.

  10. #330
    Join Date
    Jun 2012
    Location
    California
    Posts
    259
    Plugin Contributions
    0

    Default Re: PayPal RESTful API Payment Module

    Certainly, is there anything that could show up in the log that could be a security risk as the log has some customer information in it as well?

    They start at the top with the following:

    Code:
    2025-09-25 11:35:35: (ppr_webhook) ppr_webhook (PAYMENT.CAPTURE.COMPLETED, PayPal/AUHD-1.0-1, POST) starts.
    Here is one that started indicating a declined transaction:

    Code:
    2025-09-22 20:51:46: (ppr_webhook) ppr_webhook (PAYMENT.CAPTURE.DECLINED, PayPal/AUHD-1.0-1, POST) starts.

 

 
Page 33 of 46 FirstFirst ... 23313233343543 ... LastLast

Similar Threads

  1. v158 UPS Shipping using RESTful/OAuth API [Support Thread]
    By lat9 in forum Addon Shipping Modules
    Replies: 187
    Last Post: 20 Apr 2026, 09:15 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