als_insert_payments.cgi

Top  Previous  Next

Description

The als_insert_payment.cgi interface inserts a payment onto a reservation. The call requires a reservation:integer. This method is used when you are processing credit cards without using the AL-Pro credit card processing module. When using als_process_credit_card.cgi an entry to als_insert_payment is done automatically.

 

 

Inputs

Parameter

Description

Required

Example

Data Type

Reservation

Code of the Reservation

Required

reservation=54232

Integer

Amount

Amount of the Payment

 

Required

Amount=150.33

Currency

PayType

Code of the Paytype

 

If a default paytype is defined for the website then this parameter is not required

 

Optional

paytype=7

Integer

Reference

Optional String Value

Optional

reference=some text

String

ShowAll

If set will show all payments for the reservation

Optional

showall=true

Boolean

 

 

 

Upon an successful call to als_insert_payment.cgi the actual inserted row is returned that will include the generated unique identifier as paycode. If the showall parameter is set all payments for the reservation will be returned, the same as calling als_get_payments.cgi

 

 

<root>

<payment>

<row paycode="378479" reservation="333075" base="1" amount="1" paytype="7" referencevalue="internet" datevalue="9/18/2007" timevalue="05:25" voucheramount="" basename="Las Vegas" paytypename="Internet Prepaid"/>

</payment>

</root>