예제 #1
0
        /// <inheritdoc/>
        public async Task <PaymentRequestResult> CreatePaymentAsync(PaymentRequest request)
        {
            request.CheckArgumentIsNull("[PaymentRequest] cannot be null.");

            var response = await _client.bpPayRequestAsync(
                terminalId : TerminalId,
                userName : Username,
                userPassword : Password,
                orderId : request.OrderId,
                amount : request.Amount,
                localDate : getLocalDate(),
                localTime : getLocalTime(),
                additionalData : string.Empty,
                callBackUrl : request.CallbackUrl,
                payerId : "0",
                mobileNo : request.Mobile,
                encPan : string.Empty,
                panHiddenMode : string.Empty,
                cartItem : string.Empty,
                enc : string.Empty);


            var mellatResult = [email protected]();

            return(await Task.FromResult(
                       mellatResult.ToPaymentResult()
                       ));
        }