Class: Payment

Payment()

new Payment()

Class for representing and processing a payment transaction.

Source:

Classes

Payment

Methods

getPaymentId() → {boolean}

Attempts to process the payment and updates the status.

Source:
Returns:

True if the payment was processed, False if it was already paid.

Type
boolean

isCardPayment() → {boolean}

Checks if the chosen method is card payment.

Source:
Returns:

True if the method is 'card'.

Type
boolean