|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PaymentGatewayReal
Method Summary | |
---|---|
void |
alterEnrolment(Payment payment,
UserEnrolment newForm)
|
void |
endEnrolment(Payment payment)
|
List<CredentialType> |
enumerateCredentialTypes()
Provides a list of all credential types supported by the given payment gateway. |
Payment |
getPayment(BigDecimal bigDecimal)
Get the status of a prior transaction from the gateway. |
boolean |
isAvailable()
|
void |
startEnrolment(Payment payment)
|
void |
startTransaction(Payment payment)
|
void |
transactPayment(Payment payment)
|
Method Detail |
---|
void alterEnrolment(Payment payment, UserEnrolment newForm) throws UnsupportedCurrencyException, NotFoundException, UnsupportedCredentialException, IOException, RetryPaymentException, GameLogicException
payment
- WRITEMEnewForm
- WRITEME
UnsupportedCurrencyException
- WRITEME
NotFoundException
- WRITEME
UnsupportedCredentialException
- WRITEME
IOException
- WRITEME
RetryPaymentException
- WRITEME
GameLogicException
- WRITEMEvoid endEnrolment(Payment payment) throws UnsupportedCurrencyException, NotFoundException, UnsupportedCredentialException, IOException, RetryPaymentException, GameLogicException
payment
- WRITEME
UnsupportedCurrencyException
- WRITEME
NotFoundException
- WRITEME
UnsupportedCredentialException
- WRITEME
IOException
- WRITEME
RetryPaymentException
- WRITEME
GameLogicException
- WRITEMEList<CredentialType> enumerateCredentialTypes()
CredentialType
:sPayment getPayment(BigDecimal bigDecimal)
Get the status of a prior transaction from the gateway. This method should not be based upon our internal database.
It is not necessary for every gateway to provide details of failed transactions. If possible, however, they should be returned as well.
It is an implementation requirement that all successful transactions must return valid results information. An auditing subsystem (TODO) should validate this information on a periodic basis (say, weekly?) against our internal database to ensure conformance.
bigDecimal
- The identifier used by the implementing payment
gateway to uniquely identify the transaction in question.
boolean isAvailable()
void startEnrolment(Payment payment) throws UnsupportedCurrencyException, NotFoundException, UnsupportedCredentialException, IOException, RetryPaymentException, GameLogicException, AlreadyUsedException
payment
- WRITEME
UnsupportedCurrencyException
- WRITEME
NotFoundException
- WRITEME
UnsupportedCredentialException
- WRITEME
IOException
- WRITEME
RetryPaymentException
- WRITEME
GameLogicException
- WRITEME
AlreadyUsedException
- WRITEMEvoid startTransaction(Payment payment) throws UnsupportedCurrencyException, NotFoundException, UnsupportedCredentialException, IOException, RetryPaymentException, GameLogicException, AlreadyUsedException, DataException
payment
- WRITEME
UnsupportedCurrencyException
- WRITEME
NotFoundException
- WRITEME
UnsupportedCredentialException
- WRITEME
IOException
- WRITEME
RetryPaymentException
- WRITEME
GameLogicException
- WRITEME
AlreadyUsedException
- WRITEME
DataException
- WRITEMEvoid transactPayment(Payment payment) throws UnsupportedCurrencyException, NotFoundException, UnsupportedCredentialException, IOException, RetryPaymentException, GameLogicException, AlreadyUsedException, DataException
payment
- WRITEME
UnsupportedCurrencyException
- WRITEME
NotFoundException
- WRITEME
UnsupportedCredentialException
- WRITEME
IOException
- WRITEME
RetryPaymentException
- WRITEME
GameLogicException
- WRITEME
AlreadyUsedException
- WRITEME
DataException
- WRITEME
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |