We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Payment.refund()
Hello,
Expected behavior
If you need to refund a payment, you can do this by calling the refund() method on your Payment instance: from payments import get_payment_model Payment = get_payment_model() payment = Payment.objects.get() payment.refund() By default, the total amount would be refunded.
If you need to refund a payment, you can do this by calling the refund() method on your Payment instance:
refund()
from payments import get_payment_model Payment = get_payment_model() payment = Payment.objects.get() payment.refund()
By default, the total amount would be refunded.
-- https://django-payments.readthedocs.io/en/latest/refund.html
Actual behavior
>>> from payments import get_payment_model >>> Payment = get_payment_model() >>> payment = Payment.objects.get() >>> payment.refund() >>> payment.captured_amount Decimal("2.00") >>> payment.status 'confirmed'
(Neither the captured_amount nor the status changes after a call to refund())
captured_amount
status
The text was updated successfully, but these errors were encountered:
Related to #399
Sorry, something went wrong.
Fix not refunding the total amount by default
e92a3ad
Fixes jazzband#401
0e527e1
0e88113
Here is my PR to fix the issue: #410
mariofix
Successfully merging a pull request may close this issue.
Hello,
Expected behavior
-- https://django-payments.readthedocs.io/en/latest/refund.html
Actual behavior
(Neither the
captured_amount
nor thestatus
changes after a call torefund()
)The text was updated successfully, but these errors were encountered: