public MobileMoneyTransferResponse FrancophoneMobileMoneyTransfer(MobileMoneyTransferRequest request) { return(_api.Post <MobileMoneyTransferResponse>("transfers", new MobileMoneyTransferRequest { account_bank = string.IsNullOrWhiteSpace(request.account_bank) ? "FMM" : request.account_bank, account_number = request.account_number, amount = request.amount, narration = request.narration, currency = string.IsNullOrWhiteSpace(request.currency) ? "XAF" : request.account_bank, reference = request.reference, beneficiary_name = request.beneficiary_name })); }
/// <summary> /// This utility shows you how to create bill payments /// </summary> /// <param name="createBillPaymentRequest">Contains the following fields: string country, string customer, string amount, string type, string recurrence = null, string reference = null, string biller_name = null</param> /// <returns>success if bill payment was successful or failed if it wasn't successful</returns> public CreateBillPaymentResponse CreateBillPayment(CreateBillPaymentRequest createBillPaymentRequest) => _api.Post <CreateBillPaymentResponse>("bills", createBillPaymentRequest);
/// <summary> /// This document shows you how to initiate a bulk transfer /// </summary> /// <param name="request"></param> /// <returns></returns> public CreateBulkTransferResponse CreateBulkTransfer(CreateBulkTransferRequest request) { return(_api.Post <CreateBulkTransferResponse>("bulk-transfers", request)); }
public ResolveAccountDetailsResponse ResolveAccountDetails(ResolveAccountDetailsRequest resolveAccountDetailsRequest) => _api.Post <ResolveAccountDetailsResponse>("accounts/resolve", resolveAccountDetailsRequest);
public TransactionRefundResponse TransactionRefund(int id, int?amount = null) => _api.Post <TransactionRefundResponse>($"transactions/{id}/refund", new { amount });
public ChargeCardResponse ValidateCardCharge(ValidateCardChargeRequest validateCardChargeRequest) => _api.Post <ChargeCardResponse>("validate-charge", validateCardChargeRequest);
public VerifyBankAccountResponse VerifyBankAccount(VerifyBankAccountRequest verifyBankAccountRequest) => _api.Post <VerifyBankAccountResponse>("accounts/resolve", verifyBankAccountRequest);
/// <summary> /// This utility shows you how to create an otp on flutterwave /// </summary> /// <param name="createOtpRequest">otp request object</param> /// <returns></returns> public CreateOtpResponse CreateOtp(CreateOtpRequest createOtpRequest) => _api.Post <CreateOtpResponse>("otps", createOtpRequest);