|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.elasticpath.domain.impl.AbstractEpDomainImpl com.elasticpath.domain.impl.AbstractTransientImpl com.elasticpath.domain.payment.impl.AbstractPaymentGatewayImpl com.elasticpath.domain.payment.impl.PaypalExpressPaymentGatewayImpl
public class PaypalExpressPaymentGatewayImpl
The default implementation of PaypalExpressPaymentService
.
Field Summary | |
---|---|
static long |
serialVersionUID
Serial version id. |
Constructor Summary | |
---|---|
PaypalExpressPaymentGatewayImpl()
|
Method Summary | |
---|---|
void |
capture(OrderPayment orderPayment)
Captures a payment on a previously authorized card. |
PaymentType |
getPaymentType()
Get the type of this payment gateway. |
void |
preAuthorize(OrderPayment orderPayment,
Address billingAddress)
Pre-authorize a payment. |
void |
reversePreAuthorization(OrderPayment orderPayment)
Reverse a previous pre-authorization. |
void |
sale(OrderPayment orderPayment,
Address billingAddress)
Make a payment without pre-authorization. |
java.lang.String |
setExpressCheckout(ShoppingCart shoppingCart,
java.lang.String returnUrl,
java.lang.String cancelUrl)
Start the ExpressCheckout for Authorization. |
void |
setProperties(java.util.Properties properties)
Set the properties of the payment gateway (e.g. |
void |
voidCaptureOrCredit(OrderPayment orderPayment)
Void a previous capture or credit. |
Methods inherited from class com.elasticpath.domain.payment.impl.AbstractPaymentGatewayImpl |
---|
getName, getProperties, getSupportedCurrencies, refund, setName, setSupportedCurrencies |
Methods inherited from class com.elasticpath.domain.impl.AbstractEpDomainImpl |
---|
getElasticPath, setElasticPath |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.elasticpath.domain.payment.PaymentGateway |
---|
getName, getProperties, getSupportedCurrencies, refund, setName, setSupportedCurrencies |
Methods inherited from interface com.elasticpath.domain.EpDomain |
---|
getElasticPath, setElasticPath |
Field Detail |
---|
public static final long serialVersionUID
Constructor Detail |
---|
public PaypalExpressPaymentGatewayImpl()
Method Detail |
---|
public void capture(OrderPayment orderPayment)
capture
in interface PaymentGateway
orderPayment
- the payment to be captured
PaymentGatewayException
- if the payment processing failspublic PaymentType getPaymentType()
getPaymentType
in interface PaymentGateway
public void preAuthorize(OrderPayment orderPayment, Address billingAddress)
preAuthorize
in interface PaymentGateway
orderPayment
- the order payment to be preauthorizedbillingAddress
- the name and address of the person being billed
PaymentGatewayException
- if the payment processing failspublic void reversePreAuthorization(OrderPayment orderPayment)
reversePreAuthorization
in interface PaymentGateway
orderPayment
- the payment that was previously pre-authorizedpublic void sale(OrderPayment orderPayment, Address billingAddress)
sale
in interface PaymentGateway
orderPayment
- the payment to be preauthorizedbillingAddress
- the name and address of the person being billed
PaymentGatewayException
- if the payment processing failspublic java.lang.String setExpressCheckout(ShoppingCart shoppingCart, java.lang.String returnUrl, java.lang.String cancelUrl)
setExpressCheckout
in interface PayPalExpressPaymentGateway
shoppingCart
- the shopping cartreturnUrl
- the url to return from paypal upon completion the payment action.cancelUrl
- the url to return to if the user decide to cancel the payment action.
PaymentGatewayException
- if anything goes wrong.public void setProperties(java.util.Properties properties)
setProperties
in interface PaymentGateway
setProperties
in class AbstractPaymentGatewayImpl
properties
- the gateway propertiespublic void voidCaptureOrCredit(OrderPayment orderPayment)
voidCaptureOrCredit
in interface PaymentGateway
orderPayment
- the payment to be voided
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |