Forces Payout Role Required
Closed this issue · 1 comments
Python version: 3.7.2
Library version: 2.1.0
Description
When using the checkout API, making a payment, and attempting to store the payment details, an error is raised:
File "/Users/x/Documents/x/payments/service-payments/venv/lib/python3.7/site-packages/Adyen/services.py", line 320, in payments
return self.client.call_checkout_api(request, action, **kwargs)
File "/Users/x/Documents/x/payments/service-payments/venv/lib/python3.7/site-packages/Adyen/client.py", line 459, in call_checkout_api
request_data)
File "/Users/x/Documents/x/payments/service-payments/venv/lib/python3.7/site-packages/Adyen/client.py", line 528, in _handle_response
headers, request_dict)
File "/Users/x/Documents/x/payments/service-payments/venv/lib/python3.7/site-packages/Adyen/client.py", line 653, in _handle_http_error
"errorCode"))
Adyen.exceptions.AdyenAPIInvalidPermission: 'AdyenAPIInvalidPermission:Unable to perform the requested action. message: Not allowed to store Payout Details. If you think your webservice user: xxxx@Company.xxxx might not have the necessary permissions to perform this request. Please reach out to support@adyen.com, providing the PSP reference: xxxx'
I am not trying to use Payout, and have enablePayout set to False.
If I make the same request using requests directly, the payment works as expected.
I confirmed with Adyen support that when the backend receives my request enablePayout is set to true
This turned out not to be an issue with the python client, and customer service emailed me stating the issue has been resolved.