Class: Payment

Payment

Payment information


new Payment()

Properties:
Name Type Argument Default Description
type string <optional>
payOnSite

Method

  • payOnSite Pay at hotel
  • prepay Prepay. Paid by user or channel in advance.
status string <optional>

Status. Required when type is prepay:

  • toBePaid To be paid, awaiting user payment. Calling book in this status will not generate a confirmation number until status updates to paid.
  • paid Paid, user has paid.
  • pendingRefund Pending refund
  • refunded Refunded
  • expired Expired
Since:
  • 1.0.0