Example #1
0
        public TokenResponse GetInfo(string Token)
        {
            var request = new TokenRequest(this)
            {
              Method = PayU.Token.TokenRequest.MethodType.TOKEN_GETINFO,
              Merchant = Merchant,
              ReferenceNumber = Token,
            };

              return request.SendRequest(EndpointUrl, SignatureKey);
        }
Example #2
0
        public TokenResponse GetInfo(string Token)
        {
            var request = new TokenRequest(this)
            {
                Method          = PayU.Token.TokenRequest.MethodType.TOKEN_GETINFO,
                Merchant        = Merchant,
                ReferenceNumber = Token,
            };

            return(request.SendRequest(EndpointUrl, SignatureKey));
        }
Example #3
0
        public TokenResponse Cancel(string Token, string Reason = null)
        {
            var request = new TokenRequest(this)
            {
              Method = PayU.Token.TokenRequest.MethodType.TOKEN_CANCEL,
              Merchant = Merchant,
              ReferenceNumber = Token,
              CancelReason = Reason
            };

              return request.SendRequest(EndpointUrl, SignatureKey);
        }
Example #4
0
        public TokenResponse Cancel(string Token, string Reason = null)
        {
            var request = new TokenRequest(this)
            {
                Method          = PayU.Token.TokenRequest.MethodType.TOKEN_CANCEL,
                Merchant        = Merchant,
                ReferenceNumber = Token,
                CancelReason    = Reason
            };

            return(request.SendRequest(EndpointUrl, SignatureKey));
        }
Example #5
0
        public TokenResponse NewSale(string Token, string OrderRef, decimal Amount, string Currency = null)
        {
            var request = new TokenRequest(this)
            {
                Method            = PayU.Token.TokenRequest.MethodType.TOKEN_NEWSALE,
                Merchant          = Merchant,
                ReferenceNumber   = Token,
                ExternalReference = OrderRef,
                Amount            = Amount,
                Currency          = Currency ?? "TRY"
            };

            return(request.SendRequest(EndpointUrl, SignatureKey));
        }
Example #6
0
        public TokenResponse NewSale(string Token, string OrderRef, decimal Amount, string Currency = null)
        {
            var request = new TokenRequest(this)
            {
              Method = PayU.Token.TokenRequest.MethodType.TOKEN_NEWSALE,
              Merchant = Merchant,
              ReferenceNumber = Token,
              ExternalReference = OrderRef,
              Amount = Amount,
              Currency = Currency ?? "TRY"
            };

              return request.SendRequest(EndpointUrl, SignatureKey);
        }