open-pay / openpay-python

Openpay Python Bindings
19 stars 32 forks source link

Refund method #4

Closed jimlu10 closed 3 years ago

jimlu10 commented 7 years ago

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. seleccion_170

jemy-dasm-openpay commented 3 years ago

We are closing this issue because there have been many updates since it was opened.

If there are problems still happening please let us know and we'll open this issue again.

Cheers!