コード例 #1
0
 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
     }));
 }
コード例 #2
0
ファイル: BillsApi.cs プロジェクト: propenster/AllPaySDK
 /// <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);
コード例 #3
0
 /// <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));
 }
コード例 #4
0
ファイル: MiscApi.cs プロジェクト: propenster/AllPaySDK
 public ResolveAccountDetailsResponse ResolveAccountDetails(ResolveAccountDetailsRequest resolveAccountDetailsRequest) => _api.Post <ResolveAccountDetailsResponse>("accounts/resolve", resolveAccountDetailsRequest);
コード例 #5
0
 public TransactionRefundResponse TransactionRefund(int id, int?amount = null)
 => _api.Post <TransactionRefundResponse>($"transactions/{id}/refund", new { amount });
コード例 #6
0
 public ChargeCardResponse ValidateCardCharge(ValidateCardChargeRequest validateCardChargeRequest) => _api.Post <ChargeCardResponse>("validate-charge", validateCardChargeRequest);
コード例 #7
0
 public VerifyBankAccountResponse VerifyBankAccount(VerifyBankAccountRequest verifyBankAccountRequest) => _api.Post <VerifyBankAccountResponse>("accounts/resolve", verifyBankAccountRequest);
コード例 #8
0
ファイル: OtpsApi.cs プロジェクト: propenster/AllPaySDK
 /// <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);