public interface TokenizationHandler
| Modifier and Type | Method and Description |
|---|---|
void |
onError(PaymentInfo paymentInfo,
Error error)
Gets called when a tokenization call fails.
|
void |
onSuccess(PaymentInfo paymentInfo,
PaymentToken token)
Gets called when a tokenization calls succeeds.
|
void onSuccess(PaymentInfo paymentInfo, PaymentToken token)
paymentInfo - the payment info passed to the tokenization call.token - the token representing the payment info.void onError(PaymentInfo paymentInfo, Error error)
paymentInfo - the payment info.error - the error due to which tokenization failed.