Ejemplo n.º 1
0
 private Task <InitializeResponse> CreateInitialization(ISaferPayClient client)
 {
     return(client.InitializeAsync(new InitializeRequest {
         TerminalId = "17812438",
         Payment = new InitializationPayment {
             Amount = new Amount {
                 CurrencyCode = "EUR",
                 Value = "100"
             },
         },
         PaymentMeans = new InitializationPaymentMeans {
             Card = new InitializationCard {
                 Number = "9070101052000009",
                 ExpYear = 2031,
                 ExpMonth = 2,
                 HolderName = "DURANGO",
                 VerificationCode = "1111"
             }
         },
         ReturnUrls = new ReturnUrls {
             Success = new Uri("http://localhost/success"),
             Fail = new Uri("http://localhost/fail"),
             Abort = new Uri("http://localhost/abort")
         }
     }));
 }
 public static Task <AuthorizeResponse> AuthorizeAsync(this ISaferPayClient client, AuthorizeRequest request)
 => client.SendAsync <AuthorizeResponse, AuthorizeRequest>(SaferPayEndpointConstants.TransactionEndpoint + "/Authorize", request);
 public static Task <InitializeResponse> InitializeAsync(this ISaferPayClient client, InitializeRequest request)
 => client.SendAsync <InitializeResponse, InitializeRequest>(SaferPayEndpointConstants.TransactionEndpoint + "/Initialize", request);
 public static Task <RefundResponse> RefundAsync(this ISaferPayClient client, RefundRequest request)
 => client.SendAsync <RefundResponse, RefundRequest>(SaferPayEndpointConstants.TransactionEndpoint + "/Refund", request);
 public static Task <CancelResponse> CancelAsync(this ISaferPayClient client, CancelRequest request)
 => client.SendAsync <CancelResponse, CancelRequest>(SaferPayEndpointConstants.TransactionEndpoint + "/Cancel", request);
Ejemplo n.º 6
0
 public static Task <PaymentPageAssertResponse> PaymentPageAssertAsync(this ISaferPayClient client, PaymentPageAssertRequest request)
 => client.SendAsync <PaymentPageAssertResponse, PaymentPageAssertRequest>(SaferPayEndpointConstants.PaymentPageEndpoint + "/Assert", request);
Ejemplo n.º 7
0
 public static Task <PaymentPageInitializeResponse> PaymentPageInitializeAsync(this ISaferPayClient client, PaymentPageInitializeRequest request)
 => client.SendAsync <PaymentPageInitializeResponse, PaymentPageInitializeRequest>(SaferPayEndpointConstants.PaymentPageEndpoint + "/Initialize", request);