C# Class Acid.PuntoPagos.Sdk.PuntoPago

Entry point to begin the payment process
Exibir arquivo Open project: acidlabs/puntopagos-sdk

Public Methods

Method Description
CreateTransaction ( ) : Transaction

Create a new instance to generate a transaction to Punto Pagos

PuntoPago ( ) : System

Constructor

SetEnvironment ( EnvironmentForPuntoPago environment ) : PuntoPago

Set the Environment of Punto Pagos.

The possibilities are:

Sandbox: For the testing

Production: For the production

SetKey ( string key ) : PuntoPago

Set the Client Key of Punto Pagos. By default this sdk use log4net with name "PuntoPagos-sdk"

SetLog ( ILog logger ) : PuntoPago

Set the logger.

SetSecretCode ( string secretCode ) : PuntoPago

Set the Client Secret Code of Punto Pagos

Method Details

CreateTransaction() public method

Create a new instance to generate a transaction to Punto Pagos
public CreateTransaction ( ) : Transaction
return Transaction

PuntoPago() public method

Constructor
public PuntoPago ( ) : System
return System

SetEnvironment() public method

Set the Environment of Punto Pagos.

The possibilities are:

Sandbox: For the testing

Production: For the production

public SetEnvironment ( EnvironmentForPuntoPago environment ) : PuntoPago
environment EnvironmentForPuntoPago
return PuntoPago

SetKey() public method

Set the Client Key of Punto Pagos. By default this sdk use log4net with name "PuntoPagos-sdk"
public SetKey ( string key ) : PuntoPago
key string
return PuntoPago

SetLog() public method

Set the logger.
public SetLog ( ILog logger ) : PuntoPago
logger ILog
return PuntoPago

SetSecretCode() public method

Set the Client Secret Code of Punto Pagos
public SetSecretCode ( string secretCode ) : PuntoPago
secretCode string
return PuntoPago