There is a problem in the refund method, as the parameter "merchant" is optional, the line 439 in resources.py is trying to delete the key even if there is no a parameter with that name.
del params['merchant']
So, I had to always sent the "merchant" as a parameter to avoid the error, making the refund always as merchant=True.
Comparing with the function "capture", that line must be inside the previous if
There is a problem in the refund method, as the parameter "merchant" is optional, the line 439 in resources.py is trying to delete the key even if there is no a parameter with that name.
So, I had to always sent the "merchant" as a parameter to avoid the error, making the refund always as merchant=True.
Comparing with the function "capture", that line must be inside the previous if
Cheers.