| java.lang.Object jwebtk.payment.DirectPayment
DirectPayment | public class DirectPayment (Code) | | This class sets up a PayPal backend payment interface that is unseen by the user. You'll need a PayPal account for direct payment processing.
|
Inner Class :public static class CreditCardInformation | |
Inner Class :public static class CardOwnerInformation | |
Inner Class :public static class PaymentResponse | |
caller | CallerServices caller(Code) | | |
credit_card_typesstates_provincesadditional_states_provincescountries | static Map credit_card_typesstates_provincesadditional_states_provincescountries(Code) | | |
DirectPayment | public DirectPayment(String username, String password, String signature, String environment) throws PaymentException(Code) | | Sets up a DirectPayment backend payment interface.
Parameters: username - the username expected Parameters: password - the password expected Parameters: signature - the signature expected Parameters: environment - the environment "sandbox" for testing or "live" for real |
DirectPayment | public DirectPayment(String username, String password, String pkPassword, String certificateFile, String environment) throws PaymentException(Code) | | Sets up a DirectPayment backend payment interface.
Parameters: username - the username expected by DirectPayment Parameters: password - the password expected by DirectPayment Parameters: pkPassword - the pkcs12 passphrase expected by DirectPayment Parameters: certificateFile - the path to the certificate file Parameters: environment - the environment "sandbox" for testing or "live" for real |
directPayment | public PaymentResponse directPayment(String ip, double amount, CreditCardInformation cci, CardOwnerInformation coi) throws PaymentException(Code) | | Process a direct payment via DirectPayment.
Parameters: ip - the IP address of the user (fraud prevention) Parameters: amount - total amount of the payment Parameters: cci - credit card information Parameters: coi - credit card owner information result of the transaction |
getAdditionalStatesProvinces | public static Map getAdditionalStatesProvinces()(Code) | | Additional states, provinces and their codes that DirectPayment supports
|
getCountries | public static Map getCountries()(Code) | | Countries and their codes that DirectPayment supports
|
getCreditCardTypes | public static Map getCreditCardTypes()(Code) | | Credit card types supported by DirectPayment
|
getStatesProvinces | public static Map getStatesProvinces()(Code) | | States, Provinces and their codes that DirectPayment supports
|
|
|