|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.starhope.appius.pay.PayPalGateway
public class PayPalGateway
| Field Summary | |
|---|---|
private com.paypal.sdk.services.NVPCallerServices |
caller
PayPal NVP interface |
private com.paypal.sdk.profiles.APIProfile |
profile
PayPal API profile |
| Constructor Summary | |
|---|---|
PayPalGateway()
Constructor |
|
| 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. |
String |
getOrderSourceCode()
|
Payment |
getPayment(BigDecimal bigDecimal)
Get the status of a prior transaction from the gateway. |
boolean |
isAvailable()
|
void |
setTitle(String title)
|
void |
setUser(GeneralUser userPurchasing)
|
void |
startEnrolment(Payment payment)
|
void |
startTransaction(Payment payment)
|
void |
transactPayment(Payment payment)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private com.paypal.sdk.services.NVPCallerServices caller
private com.paypal.sdk.profiles.APIProfile profile
| Constructor Detail |
|---|
public PayPalGateway()
| Method Detail |
|---|
public void alterEnrolment(Payment payment,
UserEnrolment newForm)
throws UnsupportedCurrencyException,
NotFoundException,
UnsupportedCredentialException,
IOException,
RetryPaymentException,
GameLogicException
alterEnrolment in interface PaymentGatewayRealpayment - WRITEMEnewForm - WRITEME
UnsupportedCurrencyException - WRITEME
NotFoundException - WRITEME
UnsupportedCredentialException - WRITEME
IOException - WRITEME
RetryPaymentException - WRITEME
GameLogicException - WRITEMEPaymentGatewayReal.alterEnrolment(org.starhope.appius.mb.Payment,
org.starhope.appius.mb.UserEnrolment)
public void endEnrolment(Payment payment)
throws UnsupportedCurrencyException,
NotFoundException,
UnsupportedCredentialException,
IOException,
RetryPaymentException,
GameLogicException
endEnrolment in interface PaymentGatewayRealpayment - WRITEME
UnsupportedCurrencyException - WRITEME
NotFoundException - WRITEME
UnsupportedCredentialException - WRITEME
IOException - WRITEME
RetryPaymentException - WRITEME
GameLogicException - WRITEMEPaymentGatewayReal.endEnrolment(org.starhope.appius.mb.Payment)public List<CredentialType> enumerateCredentialTypes()
PaymentGatewayReal
enumerateCredentialTypes in interface PaymentGatewayRealCredentialType:sPaymentGatewayReal.enumerateCredentialTypes()public String getOrderSourceCode()
getOrderSourceCode in interface PaymentGatewayRealPaymentGateway.get(String)PaymentGatewayReal.getOrderSourceCode()public Payment getPayment(BigDecimal bigDecimal)
PaymentGatewayRealGet 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.
getPayment in interface PaymentGatewayRealbigDecimal - The identifier used by the implementing payment
gateway to uniquely identify the transaction in question.
PaymentGatewayReal.getPayment(java.math.BigDecimal)public boolean isAvailable()
isAvailable in interface PaymentGatewayRealPaymentGatewayReal.isAvailable()public void setTitle(String title)
title - WRITEMEpublic void setUser(GeneralUser userPurchasing)
userPurchasing - WRITEME
public void startEnrolment(Payment payment)
throws UnsupportedCurrencyException,
NotFoundException,
UnsupportedCredentialException,
IOException,
RetryPaymentException,
GameLogicException
startEnrolment in interface PaymentGatewayRealpayment - WRITEME
UnsupportedCurrencyException - WRITEME
NotFoundException - WRITEME
UnsupportedCredentialException - WRITEME
IOException - WRITEME
RetryPaymentException - WRITEME
GameLogicException - WRITEMEPaymentGatewayReal.startEnrolment(org.starhope.appius.mb.Payment)
public void startTransaction(Payment payment)
throws UnsupportedCurrencyException,
NotFoundException,
UnsupportedCredentialException,
IOException,
RetryPaymentException,
GameLogicException,
AlreadyUsedException
startTransaction in interface PaymentGatewayRealpayment - WRITEME
UnsupportedCurrencyException - WRITEME
NotFoundException - WRITEME
UnsupportedCredentialException - WRITEME
IOException - WRITEME
RetryPaymentException - WRITEME
GameLogicException - WRITEME
AlreadyUsedException - WRITEMEPaymentGatewayReal.startTransaction(org.starhope.appius.mb.Payment)
public void transactPayment(Payment payment)
throws UnsupportedCurrencyException,
NotFoundException,
UnsupportedCredentialException,
IOException,
RetryPaymentException,
GameLogicException,
AlreadyUsedException
transactPayment in interface PaymentGatewayRealpayment - WRITEME
UnsupportedCurrencyException - WRITEME
NotFoundException - WRITEME
UnsupportedCredentialException - WRITEME
IOException - WRITEME
RetryPaymentException - WRITEME
GameLogicException - WRITEME
AlreadyUsedException - WRITEMEPaymentGatewayReal.transactPayment(org.starhope.appius.mb.Payment)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||