from paystackapi.refund import Refund
response = Refund.create(**kwargs)Arguments
transaction: Transaction reference or idamount: Amount in kobo to be refunded to the customer (optional).currency: Three-letter ISO currency (Optional)customer_note: Customer reason (Optional)merchant_note: Merchant reason (Optional)
Returns
JSON data from paystack API.
from paystackapi.refund import Refund
response = Refund.list(**kwargs)Arguments
reference: Identifier for transaction to be refunded (Optional)currency: Three-letter ISO currency - (Optional)
Returns
JSON data from paystack API.
from paystackapi.refund import Refund
response = Refund.fetch(refund_id=1234)Arguments
refund_id: Refund ID
Returns
JSON data from paystack API.