Woocommerce Paypal Refund denied (Permission problem) (Error Code 10007)

downandout
Contributor
Contributor

Hi there,

Process:
Buy product in Woocommerce Store --> Make Paypal Transaction via Sandbox --> Success --> WooCommerce Order --> Automatic Refund --> Error Permission denied.

maybe you can give me a clue how I can solve the problem?
You think I have to make any settings in the Woocommerce API? Or are there settings inside Paypal itself?

The account type is irreleavant.

I get the error code 10007:
You do not have permission to refund this transaction

https://developer.paypal.com/docs/classic/api/errors/

 Many thanks in advance!!

 

2018-06-13T10:03:51+00:00 INFO Refund Response: Array
(
    [headers] => Requests_Utility_CaseInsensitiveDictionary Object
        (
            [data:protected] => Array
                (
                    [date] => Wed, 13 Jun 2018 08:03:50 GMT
                    [server] => Apache
                    [x-slr-retry-api] => RefundTransaction
                    [x-paypal-operation-name] => RefundTransaction
                    [x-paypal-api-rc] => 10007
                    [x-pad] => avoid browser bug
                    [http_x_pp_az_locator] => sandbox.slc
                    [paypal-debug-id] => 536d891585cfb
                    [set-cookie] => Array
                        (
                            [0] => X-PP-SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D1880%26app%3Dappdispatcher_apit%26TIME%3D3872333915%26HTTP_X_PP_AZ_LOCATOR%3Dsandbox.slc; Expires=Wed, 13 Jun 2018 08:33:51 GMT; domain=.paypal.com; path=/; Secure; HttpOnly
                            [1] => X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT
                        )

                    [content-length] => 268
                    [content-type] => text/plain; charset=utf-8
                )

        )

    [body] => TIMESTAMP=2018%2d06%2d13T08%3a03%3a51Z&CORRELATIONID=536d891585cfb&ACK=Failure&VERSION=84%2e0&BUILD=000000&L_ERRORCODE0=10007&L_SHORTMESSAGE0=Permission%20denied&L_LONGMESSAGE0=You%20do%20not%20have%20permission%20to%20refund%20this%20transaction&L_SEVERITYCODE0=Error
    [response] => Array
        (
            [code] => 200
            [message] => OK
        )

    [cookies] => Array
        (
            [0] => WP_Http_Cookie Object
                (
                    [name] => X-PP-SILOVER
                    [value] => 
                    [expires] => 1
                    [path] => /
                    [domain] => api-3t.sandbox.paypal.com
                )

        )

    [filename] => 
    [http_response] => WP_HTTP_Requests_Response Object
        (
            [response:protected] => Requests_Response Object
                (
                    [body] => TIMESTAMP=2018%2d06%2d13T08%3a03%3a51Z&CORRELATIONID=536d891585cfb&ACK=Failure&VERSION=84%2e0&BUILD=000000&L_ERRORCODE0=10007&L_SHORTMESSAGE0=Permission%20denied&L_LONGMESSAGE0=You%20do%20not%20have%20permission%20to%20refund%20this%20transaction&L_SEVERITYCODE0=Error
                    [raw] => HTTP/1.1 200 OK
Date: Wed, 13 Jun 2018 08:03:50 GMT
Server: Apache
X-SLR-RETRY-API: RefundTransaction
X-PAYPAL-OPERATION-NAME: RefundTransaction
X-PAYPAL-API-RC: 10007
Connection: close
X-Pad: avoid browser bug
HTTP_X_PP_AZ_LOCATOR: sandbox.slc
Paypal-Debug-Id: 536d891585cfb
Set-Cookie: X-PP-SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D1880%26app%3Dappdispatcher_apit%26TIME%3D3872333915%26HTTP_X_PP_AZ_LOCATOR%3Dsandbox.slc; Expires=Wed, 13 Jun 2018 08:33:51 GMT; domain=.paypal.com; path=/; Secure; HttpOnly
Set-Cookie: X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT
Content-Length: 268
Content-Type: text/plain; charset=utf-8

TIMESTAMP=2018%2d06%2d13T08%3a03%3a51Z&CORRELATIONID=536d891585cfb&ACK=Failure&VERSION=84%2e0&BUILD=000000&L_ERRORCODE0=10007&L_SHORTMESSAGE0=Permission%20denied&L_LONGMESSAGE0=You%20do%20not%20have%20permission%20to%20refund%20this%20transaction&L_SEVERITYCODE0=Error
                    [headers] => Requests_Response_Headers Object
                        (
                            [data:protected] => Array
                                (
                                    [date] => Array
                                        (
                                            [0] => Wed, 13 Jun 2018 08:03:50 GMT
                                        )

                                    [server] => Array
                                        (
                                            [0] => Apache
                                        )

                                    [x-slr-retry-api] => Array
                                        (
                                            [0] => RefundTransaction
                                        )

                                    [x-paypal-operation-name] => Array
                                        (
                                            [0] => RefundTransaction
                                        )

                                    [x-paypal-api-rc] => Array
                                        (
                                            [0] => 10007
                                        )

                                    [x-pad] => Array
                                        (
                                            [0] => avoid browser bug
                                        )

                                    [http_x_pp_az_locator] => Array
                                        (
                                            [0] => sandbox.slc
                                        )

                                    [paypal-debug-id] => Array
                                        (
                                            [0] => 536d891585cfb
                                        )

                                    [set-cookie] => Array
                                        (
                                            [0] => X-PP-SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D1880%26app%3Dappdispatcher_apit%26TIME%3D3872333915%26HTTP_X_PP_AZ_LOCATOR%3Dsandbox.slc; Expires=Wed, 13 Jun 2018 08:33:51 GMT; domain=.paypal.com; path=/; Secure; HttpOnly
                                            [1] => X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT
                                        )

                                    [content-length] => Array
                                        (
                                            [0] => 268
                                        )

                                    [content-type] => Array
                                        (
                                            [0] => text/plain; charset=utf-8
                                        )

                                )

                        )

                    [status_code] => 200
                    [protocol_version] => 1.1
                    [success] => 1
                    [redirects] => 0
                    [url] => https://api-3t.sandbox.paypal.com/nvp
                    [history] => Array
                        (
                        )

                    [cookies] => Requests_Cookie_Jar Object
                        (
                            [cookies:protected] => Array
                                (
                                    [X-PP-SILOVER] => Requests_Cookie Object
                                        (
                                            [name] => X-PP-SILOVER
                                            [value] => 
                                            [attributes] => Requests_Utility_CaseInsensitiveDictionary Object
                                                (
                                                    [data:protected] => Array
                                                        (
                                                            [expires] => 1
                                                            [domain] => api-3t.sandbox.paypal.com
                                                            [path] => /
                                                        )

                                                )

                                            [flags] => Array
                                                (
                                                    [creation] => 1528877031
                                                    [last-access] => 1528877031
                                                    [persistent] => 
                                                    [host-only] => 1
                                                )

                                            [reference_time] => 1528877031
                                        )

                                )

                        )

                )

            [filename:protected] => 
            [data] => 
            [headers] => 
            [status] => 
        )

)

2018-06-13T10:03:51+00:00 INFO Refund Result: stdClass Object
(
    [TIMESTAMP] => 2018-06-13T08:03:51Z
    [CORRELATIONID] => 536d891585cfb
    [ACK] => Failure
    [VERSION] => 84.0
    [BUILD] => 000000
    [L_ERRORCODE0] => 10007
    [L_SHORTMESSAGE0] => Permission denied
    [L_LONGMESSAGE0] => You do not have permission to refund this transaction
    [L_SEVERITYCODE0] => Error
)

 

Login to Me Too
0 REPLIES 0

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.