• Resolved chillout

    (@hyrenv)


    I tried inputting FedEx tracking number to PayPal Actions in order details. It shows error “Authorization failed due to insufficient permissions” after I click submit.
    PayPal API is properly linked.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Payment Plugins

    (@mrclayton)

    Hi @hyrenv

    Navigate to the WooCommerce > Status > Logs page and take a look at the wc-ppcp log file. What does that log file say about the failed request?

    It appears that PayPal is restricting your account from that particular API request which is odd.

    Kind Regards

    Thread Starter chillout

    (@hyrenv)

    2023-06-13T09:36:47+00:00 ERROR API error: Array
    (
        [url] => https://api-m.paypal.com/v1/shipping/trackers-batch
        [method] => POST
        [http_status] => 403
        [request] => Array
    (
        [trackers] => Array
            (
                [0] => PaymentPlugins\PayPalSDK\V1\Tracker Object
                    (
                        [_values:protected] => Array
                            (
                                [transaction_id] => 7GE66063TJ807643K
                                [tracking_number] => 3xxxx953xxx6
                                [status] => SHIPPED
                                [carrier] => FEDEX
                            )
    
                        [mappings:protected] => Array
                            (
                            )
    
                        [index:PaymentPlugins\PayPalSDK\AbstractObject:private] => 
                        [patchRequest:PaymentPlugins\PayPalSDK\AbstractObject:private] => 
                    )
    
            )
    
    )
    
        [error] => Array
            (
                [errors] => Array
                    (
                        [0] => Array
                            (
                                [name] => NOT_AUTHORIZED
                                [message] => Authorization failed due to insufficient permissions
                                [debug_id] => e4648c027d24
                                [details] => Array
                                    (
                                        [0] => Array
                                            (
                                                [location] => body
                                            )
    
                                    )
    
                            )
    
                    )
    
            )
    
    )
    

    removed some tracking numbers. But here’s the debug log.

    Plugin Author Payment Plugins

    (@mrclayton)

    Hi @hyrenv

    We’re also receiving this error when trying to update the tracking info. I have sent a support request to the PayPal development team as the issue is on their end.

    Kind Regards

    Thread Starter chillout

    (@hyrenv)

    We also enter the shipping tracking details to the Woocommerce official shipment tracking plugin: https://woocommerce.com/products/shipment-tracking/

    It would be nice if I can enter it once in the woo plugin and the paymentplugins paypal plugin automatically take the tracking details.

    Anyway, I look forward to the fix. Thank you Mr Clayton.

    Plugin Author Payment Plugins

    (@mrclayton)

    Hi @hyrenv

    We’re still waiting on an update from the PayPal engineering team.

    If you create a support ticket on our site and we can go over your requirements for automatically adding the tracking to PayPal when you add it to your tracking plugin.

    Kind Regards

    Plugin Author Payment Plugins

    (@mrclayton)

    @hyrenv

    We heard back from PayPal. It looks like they have changed their internal code to now require an additional permission when connecting the PayPal plugin to your PayPal account.

    We’re working with them to determine if we need to release an update that accounts for that permission or if they can automatically add it to existing accounts.

    Kind Regards,

    Plugin Author Payment Plugins

    (@mrclayton)

    Version 1.0.35 released which includes the tracking scope that PayPal now requires.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Shipment Tracking’ is closed to new replies.