Transaction OrderPay
Authentication mode: Checked (known user, must have the privilege)
Database access mode: updating
pay for an order with money/credit card/...; see UseVoucher for using a voucher to pay
Inputs:
- orderid: int
The order to be paid
- amount: int
amount offered, it must be positive
- paytype: string
the type of payment
- paydata: string
additional data, like card number or date of bank transaction
Outputs:
- order: Order
fresh copy of the order
- amount: int
the amount actually taken, it is between 0 and at maximum the amount due for the order, it is never above the offered amount