|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
All CreditCardAuthoriser implementations must be able to
authorise a credit card payment and return a response code.
| Method Summary | |
int |
authorisePayment(ShoppingOrder order,
User user,
CreditCard card,
Merchant merchant)
authorise payment of the given money from the given card, to the given merchant ID and return a response code. |
boolean |
responseIsAuthorised(int code)
Different response codes mean different things, and this method lets you confirm that the response provided to any authorisation is actually 'authorised' and not some other response. |
| Method Detail |
public int authorisePayment(ShoppingOrder order,
User user,
CreditCard card,
Merchant merchant)
order - The order being paid for.user - The User making the payment.card - The CreditCard to take payment from.merchant - The Merchant requesting the authorisation.
public boolean responseIsAuthorised(int code)
code - The response code to check.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||