public class PaymentResponse extends BaseResponse
| Constructor and Description |
|---|
PaymentResponse(boolean success,
ResultCode result)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
com.clover.sdk.v3.payments.Payment |
getPayment()
Get the field value
|
com.clover.common2.Signature2 |
getSignature()
Get the field value
|
boolean |
isAuth()
Check to see if the payment was processed as an auth
|
boolean |
isPreAuth()
Check to see if the payment was processed as a pre-auth
|
boolean |
isSale()
Check to see if the payment was processed as a sale
|
void |
setPayment(com.clover.sdk.v3.payments.Payment payment)
Set the field value
|
void |
setSignature(com.clover.common2.Signature2 signature)
Set the field value
|
getMessage, getReason, getResult, isSuccess, setMessage, setReason, setResult, setSuccesspublic PaymentResponse(boolean success,
ResultCode result)
success - If true then the requested operation succeededresult - The result of the requested operationpublic void setPayment(com.clover.sdk.v3.payments.Payment payment)
payment - The payment from the salepublic com.clover.sdk.v3.payments.Payment getPayment()
public boolean isSale()
public boolean isAuth()
public boolean isPreAuth()
public void setSignature(com.clover.common2.Signature2 signature)
signature - signature collected for the paymentpublic com.clover.common2.Signature2 getSignature()