C# Class Acid.PuntoPagos.Sdk.Transaction

Class defining communications puntopagos
Mostrar archivo Open project: acidlabs/puntopagos-sdk

Public Methods

Method Description
CheckStatusTransaction ( CheckTransactionRequestDto checkTransaction ) : CheckTransactionResponseDto

Verify if the result of payment process was successful or not in any time.

CreateTransaction ( CreateTransactionRequestDto transactionDto ) : CreateTransactionResponseDto

Create the transaction in puntopago

NotificationTransaction ( NameValueCollection headers, NameValueCollection @params ) : NotificationTransactionDto

Verify if the result of payment process was successful or not.

Transaction ( IConfiguration configuration, IAuthorization authorization, IExecutorWeb webExecute, ILog logger ) : System

Private Methods

Method Description
NotificationTransaction ( WebRequest request ) : NotificationTransactionDto

Method Details

CheckStatusTransaction() public method

Verify if the result of payment process was successful or not in any time.
public CheckStatusTransaction ( CheckTransactionRequestDto checkTransaction ) : CheckTransactionResponseDto
checkTransaction Acid.PuntoPagos.Sdk.Dtos.CheckTransactionRequestDto To query data, necessitating the token, transaction client id and amount.
return Acid.PuntoPagos.Sdk.Dtos.CheckTransactionResponseDto

CreateTransaction() public method

Create the transaction in puntopago
public CreateTransaction ( CreateTransactionRequestDto transactionDto ) : CreateTransactionResponseDto
transactionDto Acid.PuntoPagos.Sdk.Dtos.CreateTransactionRequestDto Data for the token that begins the payment process.
return Acid.PuntoPagos.Sdk.Dtos.CreateTransactionResponseDto

NotificationTransaction() public method

Verify if the result of payment process was successful or not.
Can throw the exception if there headers "fecha" or "Autorizacion", or if the request does not contain the variables "token", "trx_id" or "monto"
public NotificationTransaction ( NameValueCollection headers, NameValueCollection @params ) : NotificationTransactionDto
headers System.Collections.Specialized.NameValueCollection Headers of Request
@params System.Collections.Specialized.NameValueCollection
return Acid.PuntoPagos.Sdk.Dtos.NotificationTransactionDto

Transaction() public method

public Transaction ( IConfiguration configuration, IAuthorization authorization, IExecutorWeb webExecute, ILog logger ) : System
configuration IConfiguration
authorization IAuthorization
webExecute IExecutorWeb
logger ILog
return System