anon.pay
Interface IPaymentListener

All Superinterfaces:
java.util.EventListener

public interface IPaymentListener
extends java.util.EventListener

GUI classes can implement this interface and register with the Payment library to be notified about payment specific events

Version:
1.0
Author:
Bastian Voigt, Tobias Bayer

Method Summary
 void accountActivated(PayAccount acc)
          The active account changed.
 void accountAdded(PayAccount acc)
          An account was added
 boolean accountCertRequested(boolean usingCurrentAccount)
          The AI has signaled that the current cascade has to be payed for.
 void accountError(XMLErrorMessage msg)
          The AI has signaled an error.
 void accountRemoved(PayAccount acc)
          An account was removed
 void creditChanged(PayAccount acc)
          The credit changed for the given account.
 void gotCaptcha(ICaptchaSender a_source, IImageEncodedCaptcha a_captcha)
          Captcha retrieved
 

Method Detail

accountCertRequested

boolean accountCertRequested(boolean usingCurrentAccount)
The AI has signaled that the current cascade has to be payed for.

Parameters:
acc - PayAccount

accountError

void accountError(XMLErrorMessage msg)
The AI has signaled an error.

Parameters:
acc - PayAccount

accountActivated

void accountActivated(PayAccount acc)
The active account changed.

Parameters:
acc - PayAccount the account which is becoming active

accountRemoved

void accountRemoved(PayAccount acc)
An account was removed

Parameters:
acc - PayAccount the account which was removed

accountAdded

void accountAdded(PayAccount acc)
An account was added

Parameters:
acc - PayAccount the new Account

creditChanged

void creditChanged(PayAccount acc)
The credit changed for the given account.

Parameters:
acc - PayAccount

gotCaptcha

void gotCaptcha(ICaptchaSender a_source,
                IImageEncodedCaptcha a_captcha)
Captcha retrieved