Results 1 to 10 of 456

Hybrid View

  1. #1
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,913
    Plugin Contributions
    96

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

    I'm having 'difficulties' moving this post to the payment module's support-thread: https://www.zen-cart.com/showthread....Payment-Module

    If you could re-post there,
    I'll be happy to investigate issue #1.

    For the 2nd question, it's still /ppr_webhook.php. That script is copied to the root when the payment module is installed. And is registered to PayPal webhooks automatically.
    Last edited by DrByte; 14 Sep 2025 at 07:28 PM. Reason: moved

  2. #2
    Join Date
    Jun 2007
    Location
    Bronx, New York, United States
    Posts
    934
    Plugin Contributions
    9

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

    Quote Originally Posted by lat9 View Post
    I'm having 'difficulties' moving this post to the payment module's support-thread: https://www.zen-cart.com/showthread....Payment-Module

    If you could re-post there,
    I'll be happy to investigate issue #1.

    For the 2nd question, it's still /ppr_webhook.php. That script is copied to the root when the payment module is installed. And is registered to PayPal webhooks automatically.
    Wait, so the file is copied to the root automatically on install? Should I reinstall the module if my root is missing this file?

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

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

    Quote Originally Posted by retched View Post
    Wait, so the file is copied to the root automatically on install? Should I reinstall the module if my root is missing this file?
    If you're running v1.2.0, there was an issue with the auto-update. Update to v1.2.1 to correct the issue.

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

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

    ZC 1.5.8a / php 7.4.33

    Running fine with v1.1.0, but error in 1.2.1:

    Code:
    [20-Sep-2025 02:00:06 Canada/Pacific] PHP Parse error:  syntax error, unexpected ')', expecting variable (T_VARIABLE) in /zc/includes/modules/payment/paypal/PayPalRestful/Api/PayPalRestfulApi.php on line 367
    
    [20-Sep-2025 02:00:06 Canada/Pacific] Request URI: /index.php?main_page=checkout_shipping, IP address: x.x.x.x
    --> PHP Parse error: syntax error, unexpected ')', expecting variable (T_VARIABLE) in /zc/includes/modules/payment/paypal/PayPalRestful/Api/PayPalRestfulApi.php on line 367.

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

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

    Quote Originally Posted by siliconbug View Post
    ZC 1.5.8a / php 7.4.33

    Running fine with v1.1.0, but error in 1.2.1:

    Code:
    [20-Sep-2025 02:00:06 Canada/Pacific] PHP Parse error:  syntax error, unexpected ')', expecting variable (T_VARIABLE) in /zc/includes/modules/payment/paypal/PayPalRestful/Api/PayPalRestfulApi.php on line 367
    
    [20-Sep-2025 02:00:06 Canada/Pacific] Request URI: /index.php?main_page=checkout_shipping, IP address: x.x.x.x
    --> PHP Parse error: syntax error, unexpected ')', expecting variable (T_VARIABLE) in /zc/includes/modules/payment/paypal/PayPalRestful/Api/PayPalRestfulApi.php on line 367.
    Hmm, I'm not seeing that with PHP 7.4.30 (don't currently have access to 7.4.33). Here are lines 361 to 367 of the PayPalRestfulApi.php module:
    PHP Code:
        public function updatePackageTracking(
            
    string $paypal_txnid,
            
    string $tracking_number,
            
    string $carrier_code,
            
    string $action 'ADD',
            
    bool $email_buyer false,
        ): 
    false|array { 
    If you remove the comma (,) after bool $email_buyer = false, does that correct the issue?

  6. #6
    Join Date
    Apr 2009
    Posts
    122
    Plugin Contributions
    0

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

    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.

  7. #7
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,913
    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
        
    ) { 

 

 

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