public class PaymentFormatter extends Object
Constructor and Description |
---|
PaymentFormatter(Payment payment)
Create a PaymentFormatter object
|
Modifier and Type | Method and Description |
---|---|
Double |
getAmount()
Retrieve the amount of the payment.
|
String |
getAuthCode()
Return the authorization code as returned by the gateway
|
Double |
getCardBalance()
Get the amount of the current closing balance.
|
String |
getCardNumber()
Return the holder name as returned by the gateway
|
String |
getComment()
Return the comment.
|
String |
getHolderName()
Return the holder name as returned by the gateway
|
String |
getMethod()
Convenience method to directly retrieve the payment method (i.e."
|
String |
getName()
Return the payment name.
|
PaymentInfo |
getPaymentInfo()
Retrieve the original PaymentInfo object.
|
Integer |
getSerial()
Return the serial number.
|
String |
printAmount()
Print the amount of the payment.
|
String |
printCardBalance()
Print the amount of the current closing balance.
|
String |
printCreditBarcode()
Print the barcode for a credit receipt
|
String |
printsAmount()
Print the amount of the payment.
|
String |
printsCardBalance()
Print the amount of the current closing balance.
|
public PaymentFormatter(Payment payment)
payment
- public PaymentInfo getPaymentInfo()
public String getMethod()
public Double getAmount()
public String printAmount()
public String printsAmount()
public String printCardBalance()
public String printsCardBalance()
public Double getCardBalance()
public String getComment()
public String getName()
public Integer getSerial()
public String getAuthCode()
public String printCreditBarcode()
public String getHolderName()
public String getCardNumber()
Copyright © 2021. All rights reserved.