Skip to content

Instantly share code, notes, and snippets.

@frogermcs
Created April 2, 2019 16:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save frogermcs/7f3922bca30a0f15748665938f7a52d4 to your computer and use it in GitHub Desktop.
Save frogermcs/7f3922bca30a0f15748665938f7a52d4 to your computer and use it in GitHub Desktop.
@AutoHandler
public interface PaymentErrorListener {
@ErrorCode(CODE_UNSUPPORTED_PREPAID_CARD)
void onUnsupportedPrepaidCardError();
@ErrorCode(CODE_UNSUPPORTED_CONSUMER_CARD)
void onUnsupportedConsumerCardError();
@ErrorCode(CODE_INSUFFICIENT_FUNDS)
void onInsufficientFundsError();
@ErrorCode(CODE_EXPIRED_CARD)
void onExpiredCardError();
@ErrorCode(codes = {
CODE_UNHANDLED_ERROR,
CODE_INTERNAL_ERROR
})
void onUnhandledError();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment