Constants

TX_CREATE

TX_CREATE

TX_CHARGE

TX_CHARGE

TX_AUTHORIZATION

TX_AUTHORIZATION

TX_CAPTURE

TX_CAPTURE

TX_FUND

TX_FUND

CURRENCY_USD

CURRENCY_USD

LOCALE_ES

LOCALE_ES

LOCALE_EN

LOCALE_EN

LOCALE_PT

LOCALE_PT

Properties

$callback_urls

$callback_urls : array

Type

array — urls para notificaciones.

$type

$type : string

Type

string — El tipo de la transacción.

$id

$id : array

Type

array — urls para notificaciones.

$internal_id

$internal_id : string

Type

string — El ID o código interno utilizado por el sistema interno de la agencia.

$currency

$currency : string

Type

string — La moneda en la cual se realiza la transacción (ISO 4217). Código de tres letras.

$invoicing_items

$invoicing_items : array

Type

array — Los items de facturación asociados a la transacción.

$subtotal

$subtotal : \AluPays\Entity\mixed.

Type

\AluPays\Entity\mixed. — float o decimal en formato string. Representa el subtotal de la transacción.

$booking

$booking : \AluPays\Entity\AluPays\Entity\Booking

Type

\AluPays\Entity\AluPays\Entity\Booking — los datos de la reserva asociada a la transacción.

$listing

$listing : \AluPays\Entity\AluPays\Entity\Listing

Type

\AluPays\Entity\AluPays\Entity\Listing — los datos del anuncio asociado a la transacción.

$nonce

$nonce : 

Type

$locale

$locale : 

Type

Methods

__construct()

__construct(string  $internal_id, string  $currency, mixed  $subtotal, string  $locale = self::LOCALE_ES) 

Parameters

string $internal_id
string $currency
mixed $subtotal
string $locale

validCurrencies()

validCurrencies() 

setId()

setId(  $id) 

Parameters

$id

getId()

getId() 

setType()

setType(  $type) 

Parameters

$type

getType()

getType() 

getCurrency()

getCurrency() 

getLocale()

getLocale() 

getSubtotal()

getSubtotal() 

setInternalId()

setInternalId(  $id) 

Parameters

$id

getInternalId()

getInternalId() 

setNonce()

setNonce(  $nonce) 

Parameters

$nonce

getNonce()

getNonce() 

setCallbackUrls()

setCallbackUrls(array  $callback_urls) 

Parameters

array $callback_urls

getCallbakUrls()

getCallbakUrls() 

addInvoiceItem()

addInvoiceItem(\AluPays\Entity\AluPays\Entity\InvoiceItem  $invoice_item) 

Parameters

\AluPays\Entity\AluPays\Entity\InvoiceItem $invoice_item

getInvoiceItems()

getInvoiceItems() 

setBooking()

setBooking(\AluPays\Entity\AluPays\Entity\Booking  $booking) 

Parameters

\AluPays\Entity\AluPays\Entity\Booking $booking

getBooking()

getBooking() 

setListing()

setListing(\AluPays\Entity\AluPays\Entity\Listing  $listing) 

Parameters

\AluPays\Entity\AluPays\Entity\Listing $listing

getListing()

getListing() 

toArray()

toArray() 

toJSON()

toJSON() 

validateType()

validateType(  $type) 

Parameters

$type

validateCurrency()

validateCurrency(  $currency) 

Parameters

$currency

validateLocale()

validateLocale(  $locale) 

Parameters

$locale