public override PostAuthResponse PostAuth(PostAuthRequest request) { return new PostAuthResponse() { Approved = true, ApprovalCode = "asdf" }; }
public PostAuthResponse PostAuth(PostAuthRequest postAuthRequest, string apiUrl, string secretKey) { postAuthRequest.SetSignature(secretKey); var response = RestCall <PostAuthResponse>(apiUrl, postAuthRequest, secretKey); if (response.Success) { response.ControlSignature(secretKey); } return(response); }
// Ön Provizyon Kapama public ActionResult PostAuth() { var request = new PostAuthRequest { Version = "1.0", ApiKey = _apiKey, TransactionId = "TestPostAuth00005", TransactionTime = "1443600845", Amount = 5499, Currency = "TRY", Installment = 2, Customer = new Customer { Name = "Ahmet", Surname = "Mehmet", Email = "*****@*****.**", PhoneNumber = "5337654321", Code = "7cefdf61-38cd-4b35-b5f0-4c98c5805d41", IpAddress = "127.0.0.1" }, ReferenceTransactionId = "TestPreAuth00006", HashVersion = _hashVersion }; var apiUrl = _apiUrl + "/payments/postauth"; var response = _paymentProcessor.PostAuth(request, apiUrl, _secretKey); return(View(new ResultModel { Amount = response.Amount, ApiKey = response.ApiKey, Currency = response.Currency, Installment = response.Installment, Success = response.Success, MessageCode = response.MessageCode, Message = response.Message, UserMessage = response.UserMessage, TransactionId = response.TransactionId, TransactionTime = response.TransactionTime })); }
/// <summary> /// Point Sale /// Puanlı Satış /// </summary> public async Task <ConnectionResponse <PaymentResponse <PostAuthResponse> > > PostAuth(PostAuthRequest requestModel) { return(await PaymentOperation <PostAuthResponse>(PaymentOptions, requestModel, "/api/v1/NonSecure/PostAuth")); }