public interface UnionPayListener extends BraintreeListener
| Modifier and Type | Method and Description |
|---|---|
void |
onCapabilitiesFetched(UnionPayCapabilities capabilities)
Will be called when
UnionPayCapabilities has been successfully fetched. |
void |
onSmsCodeSent(java.lang.String enrollmentId,
boolean smsCodeRequired)
Will be called when the customer has been enrolled.
|
void onCapabilitiesFetched(UnionPayCapabilities capabilities)
UnionPayCapabilities has been successfully fetched.void onSmsCodeSent(java.lang.String enrollmentId,
boolean smsCodeRequired)
true, a SMS code will be sent to the phone number provided during
UnionPay.enroll(BraintreeFragment, UnionPayCardBuilder).
This SMS code will need to be supplied in the UnionPayCardBuilder when calling
UnionPay.tokenize(BraintreeFragment, UnionPayCardBuilder).
If smsCodeRequired is false, enrollment is not required, and tokenization can be done immediately
without an SMS code.
The enrollment id and SMS code collected from the customer will need to be set on the
UnionPayCardBuilder before invoking
UnionPay.tokenize(BraintreeFragment, UnionPayCardBuilder)enrollmentId - returned from
UnionPay.enroll(BraintreeFragment, UnionPayCardBuilder).smsCodeRequired - return from
UnionPay.enroll(BraintreeFragment, UnionPayCardBuilder).