java.lang.Object
com.aoapps.payments.payflowPro.PayflowPro
- All Implemented Interfaces:
MerchantServicesProvider
Provider for the PayflowPro_XMLPay system.
Configuration parameters:
- user - If you set up one or more additional users on the account, this value is the ID of the user authorized to process transactions. If, however, you have not sest up additional users on the account, user has the same value as vendor.
- vendor - Your merchant login ID that you created when you registered for the Payflow Pro account. This value is case sensitive.
- partner - The ID provided to you by the authorized PayPal Reseller who registered you for the Payflow Pro service. If you purchased your account directly from PayPal, use PayPal. This values is case-sensitive.
- password - User's password (string).
TODO: Should we support the GetStatus call???
TODO: Should we support Buyer Authentication Service?
TODO: Should we support separate Freight and Handling amounts instead of just
the one shipping? We would need to automatically combine them on
processors that don't support the distinction.
TODO: Is Prenote used for storing cards?
TODO: Use AMEXID?
TODO: Support SettleDate?
TODO: Support SHIPTOPHONENUM?
TODO: Possible better rates if we provide the merchant details and ship from details.
- Author:
- AO Industries, Inc.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new provider for the PayflowPro_XMLPay system.PayflowPro(String providerId, String user, String vendor, String partner, String password, String certPath) Deprecated, for removal: This API element is subject to removal in a future version.certPath is no longer used -
Method Summary
Modifier and TypeMethodDescriptionauthorize(TransactionRequest transactionRequest, CreditCard creditCard) booleanbooleancapture(AuthorizationResult authorizationResult) credit(TransactionRequest transactionRequest, CreditCard creditCard) voiddeleteCreditCard(CreditCard creditCard) protected static StringgetStreetAddress(String line1, String line2) Combines the two street address lines into a single String.getTokenizedCreditCards(Map<String, CreditCard> persistedCards, PrintWriter verboseOut, PrintWriter infoOut, PrintWriter warningOut) getUser()sale(TransactionRequest transactionRequest, CreditCard creditCard) storeCreditCard(CreditCard creditCard) voidupdateCreditCard(CreditCard creditCard) voidupdateCreditCardExpiration(CreditCard creditCard, byte expirationMonth, short expirationYear) voidupdateCreditCardNumberAndExpiration(CreditCard creditCard, String cardNumber, byte expirationMonth, short expirationYear, String cardCode) voidTransaction(Transaction transaction)
-
Constructor Details
-
PayflowPro
Creates a new provider for the PayflowPro_XMLPay system. -
PayflowPro
@Deprecated(forRemoval=true) public PayflowPro(String providerId, String user, String vendor, String partner, String password, String certPath) Deprecated, for removal: This API element is subject to removal in a future version.certPath is no longer usedCreates a new provider for the PayflowPro_XMLPay system.
-
-
Method Details
-
getProviderId
- Specified by:
getProviderIdin interfaceMerchantServicesProvider
-
getUser
-
getVendor
-
getPartner
-
getPassword
-
getStreetAddress
Combines the two street address lines into a single String. -
sale
- Specified by:
salein interfaceMerchantServicesProvider
-
authorize
- Specified by:
authorizein interfaceMerchantServicesProvider
-
capture
- Specified by:
capturein interfaceMerchantServicesProvider
-
voidTransaction
- Specified by:
voidTransactionin interfaceMerchantServicesProvider
-
credit
- Specified by:
creditin interfaceMerchantServicesProvider
-
canStoreCreditCards
public boolean canStoreCreditCards()- Specified by:
canStoreCreditCardsin interfaceMerchantServicesProvider
-
storeCreditCard
- Specified by:
storeCreditCardin interfaceMerchantServicesProvider- Throws:
UnsupportedOperationException
-
updateCreditCard
- Specified by:
updateCreditCardin interfaceMerchantServicesProvider- Throws:
UnsupportedOperationException
-
updateCreditCardNumberAndExpiration
public void updateCreditCardNumberAndExpiration(CreditCard creditCard, String cardNumber, byte expirationMonth, short expirationYear, String cardCode) throws UnsupportedOperationException - Specified by:
updateCreditCardNumberAndExpirationin interfaceMerchantServicesProvider- Throws:
UnsupportedOperationException
-
updateCreditCardExpiration
public void updateCreditCardExpiration(CreditCard creditCard, byte expirationMonth, short expirationYear) throws UnsupportedOperationException - Specified by:
updateCreditCardExpirationin interfaceMerchantServicesProvider- Throws:
UnsupportedOperationException
-
deleteCreditCard
- Specified by:
deleteCreditCardin interfaceMerchantServicesProvider- Throws:
UnsupportedOperationException
-
canGetTokenizedCreditCards
public boolean canGetTokenizedCreditCards()- Specified by:
canGetTokenizedCreditCardsin interfaceMerchantServicesProvider
-
getTokenizedCreditCards
public Map<String,TokenizedCreditCard> getTokenizedCreditCards(Map<String, CreditCard> persistedCards, PrintWriter verboseOut, PrintWriter infoOut, PrintWriter warningOut) throws UnsupportedOperationException- Specified by:
getTokenizedCreditCardsin interfaceMerchantServicesProvider- Throws:
UnsupportedOperationException
-
