public interface AuthorizationHandler
Modifier and Type | Method and Description |
---|---|
void |
onAuthorizationError(PaymentInfo paymentInfo,
Error error)
Called when an authorization call fails.
|
void |
onAuthorizationSuccess(PaymentInfo paymentInfo,
AuthorizationInfo authorizationInfo)
Called when an authorization call succeeds.
|
void onAuthorizationSuccess(PaymentInfo paymentInfo, AuthorizationInfo authorizationInfo)
paymentInfo
- the payment info for the card that was authorized.authorizationInfo
- the authorization info for the transaction that was authorized.void onAuthorizationError(PaymentInfo paymentInfo, Error error)
paymentInfo
- the payment info for the card that failed authorization.error
- the error which caused the failure.