|
||||||||||
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 |
transactPayment(Payment payment)
|
Method Detail |
---|
void alterEnrolment(Payment payment, UserEnrolment newForm) throws UnsupportedCurrencyException, NotFoundException, UnsupportedCredentialException, IOException, RetryPaymentException, GameLogicException
payment
- newForm
-
UnsupportedCurrencyException
NotFoundException
UnsupportedCredentialException
IOException
RetryPaymentException
GameLogicException
void endEnrolment(Payment payment) throws UnsupportedCurrencyException, NotFoundException, UnsupportedCredentialException, IOException, RetryPaymentException, GameLogicException
payment
-
UnsupportedCurrencyException
NotFoundException
UnsupportedCredentialException
IOException
RetryPaymentException
GameLogicException
List<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
-
UnsupportedCurrencyException
NotFoundException
UnsupportedCredentialException
IOException
RetryPaymentException
GameLogicException
AlreadyUsedException
void transactPayment(Payment payment) throws UnsupportedCurrencyException, NotFoundException, UnsupportedCredentialException, IOException, RetryPaymentException, GameLogicException, AlreadyUsedException
payment
-
UnsupportedCurrencyException
NotFoundException
UnsupportedCredentialException
IOException
RetryPaymentException
GameLogicException
AlreadyUsedException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |