|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.broadleafcommerce.vendor.paypal.service.payment.PayPalCheckoutServiceImpl
public class PayPalCheckoutServiceImpl
User: elbertbautista Date: 6/13/12 This class provides an abstraction layer on top of the CompositePaymentService and the PayPalPaymentModule, allowing developers to easily call the most frequently-used methods. For custom implementation, this class should be extended or custom calls to the CompositePaymentService should be utilized.
| Field Summary | |
|---|---|
protected org.broadleafcommerce.core.checkout.service.CheckoutService |
checkoutService
|
protected org.broadleafcommerce.core.payment.service.CompositePaymentService |
compositePaymentService
|
protected org.broadleafcommerce.profile.core.service.CustomerService |
customerService
|
protected org.broadleafcommerce.core.order.service.OrderService |
orderService
|
protected PayPalPaymentModule |
payPalPaymentModule
|
| Constructor Summary | |
|---|---|
PayPalCheckoutServiceImpl()
|
|
| Method Summary | |
|---|---|
org.broadleafcommerce.core.checkout.service.workflow.CheckoutResponse |
completeExpressCheckout(String token,
String payerId,
org.broadleafcommerce.core.order.domain.Order order)
Completes an Express Checkout transaction by invoking the DoExpressCheckout API. |
PayPalDetailsResponse |
getExpressCheckoutDetails(String token)
Obtains information about an Express Checkout transaction by invoking the GetExpressCheckoutDetails API. |
org.broadleafcommerce.core.payment.service.workflow.CompositePaymentResponse |
initiateExpressCheckout(org.broadleafcommerce.core.order.domain.Order order)
Initiates an Express Checkout transaction by invoking the SetExpressCheckout API. |
org.broadleafcommerce.core.payment.service.workflow.CompositePaymentResponse |
refundTransaction(String transactionId,
org.broadleafcommerce.core.order.domain.Order order)
Refunds the PayPal account holder associated with a transaction by invoking the RefundTransaction API. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected org.broadleafcommerce.core.checkout.service.CheckoutService checkoutService
protected org.broadleafcommerce.profile.core.service.CustomerService customerService
protected org.broadleafcommerce.core.payment.service.CompositePaymentService compositePaymentService
protected PayPalPaymentModule payPalPaymentModule
protected org.broadleafcommerce.core.order.service.OrderService orderService
| Constructor Detail |
|---|
public PayPalCheckoutServiceImpl()
| Method Detail |
|---|
public org.broadleafcommerce.core.payment.service.workflow.CompositePaymentResponse initiateExpressCheckout(org.broadleafcommerce.core.order.domain.Order order)
throws org.broadleafcommerce.core.payment.service.exception.PaymentException
initiateExpressCheckout in interface PayPalCheckoutServiceorder - - The order
org.broadleafcommerce.core.payment.service.exception.PaymentException
public org.broadleafcommerce.core.checkout.service.workflow.CheckoutResponse completeExpressCheckout(String token,
String payerId,
org.broadleafcommerce.core.order.domain.Order order)
throws org.broadleafcommerce.core.checkout.service.exception.CheckoutException
completeExpressCheckout in interface PayPalCheckoutServiceorder - - The ordertoken - - A PayPal parameter sent back after invoking SetExpressCheckoutpayerId - - A PayPal parameter sent back after invoking SetExpressCheckout
org.broadleafcommerce.core.checkout.service.exception.CheckoutException
public PayPalDetailsResponse getExpressCheckoutDetails(String token)
throws org.broadleafcommerce.core.payment.service.exception.PaymentException
getExpressCheckoutDetails in interface PayPalCheckoutServicetoken - - A PayPal parameter sent back after invoking SetExpressCheckout
org.broadleafcommerce.core.payment.service.exception.PaymentException
public org.broadleafcommerce.core.payment.service.workflow.CompositePaymentResponse refundTransaction(String transactionId,
org.broadleafcommerce.core.order.domain.Order order)
throws org.broadleafcommerce.core.payment.service.exception.PaymentException
refundTransaction in interface PayPalCheckoutServiceorder - - the OrdertransactionId - - A PayPal parameter sent back after invoking SetExpressCheckout
org.broadleafcommerce.core.payment.service.exception.PaymentException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||