Exemplo n.º 1
0
        public TransactionDetailModel GetTransactionDetail(string transactionCode, string tokenKey, string checksumKey)
        {
            AlepayUltil            alepayUltil = new AlepayUltil();
            TransactionResultModel transaction = new TransactionResultModel();

            transaction.transactionCode = transactionCode;
            transaction.tokenKey        = tokenKey;
            transaction.signature       = alepayUltil.GetSignature(transaction, checksumKey);
            return(Anpero.HttpHelper <TransactionDetailModel> .PostJson(IsTest? "https://alepay-v3-sandbox.nganluong.vn/api/v3/checkout/get-transaction-info" : "https://alepay-v3.nganluong.vn/api/v3/checkout/get-transaction-info", transaction));
        }
Exemplo n.º 2
0
        public InstallmentModel GetInstallmentInfo(double amount, string tokenKey, string checksumKey)
        {
            AlepayUltil             alepayUltil = new AlepayUltil();
            InstallmentRequestModel model       = new InstallmentRequestModel();

            model.amount       = amount;
            model.tokenKey     = tokenKey;
            model.currencyCode = "vnd";
            model.signature    = alepayUltil.GetSignature(model, checksumKey);
            return(Anpero.HttpHelper <InstallmentModel> .PostJson(IsTest? "https://alepay-v3-sandbox.nganluong.vn/api/v3/checkout/get-installment-info" : "https://alepay-v3.nganluong.vn/api/v3/checkout/get-installment-info", model));
        }