create method
Initiate a refund on your integration
Implementation
Future<Response> create(
String transaction, {
int? amount,
Currency? currency,
String? customerNote,
String? merchantNote,
}) async {
var data = {
'transaction': transaction,
'amount': amount,
'currency': currency?.paystackValue,
'customer_note': customerNote,
'merchant_note': merchantNote,
};
return await call(Uri.https(baseUrl, '/refund'), HttpMethod.post,
data: data);
}