コード例 #1
0
        public PaymentInformationResult GetPaymentInfo(long transactionId)
        {
            var result = new PaymentInformationResult();
            var info   = modClient.GetPaymentInfo(this.clientId, this.clientCode, transactionId);

            result.Paid   = info.paid == 1;
            result.Active = info.active == 1;

            //if we weren't paid and the payment is no longer pending,
            //something bad happened
            if (info.paid == 0 && info.pending == 0)
            {
                result.ErrorMessage = info.errorMessage;
            }

            return(result);
        }
コード例 #2
0
        public PaymentInformationResult GetPaymentInfo(long transactionId)
        {
            var result = new PaymentInformationResult();
            var info = modClient.GetPaymentInfo(this.clientId, this.clientCode, transactionId);

            result.Paid = info.paid == 1;
            result.Active = info.active == 1;

            //if we weren't paid and the payment is no longer pending,
            //something bad happened
            if(info.paid == 0 && info.pending == 0)
                result.ErrorMessage = info.errorMessage;

            return result;
        }