public class PayPalCaptureOrderRequest extends AbstractPayPalRequest<com.paypal.orders.Order,com.paypal.orders.OrdersCaptureRequest>
PayPalCaptureAuthRequest.| Constructor and Description |
|---|
PayPalCaptureOrderRequest(PayPalClientProvider clientProvider,
org.broadleafcommerce.common.payment.dto.PaymentRequestDTO paymentRequest,
String orderId) |
| Modifier and Type | Method and Description |
|---|---|
protected com.paypal.orders.OrdersCaptureRequest |
buildRequest()
Method to build out
AbstractPayPalRequest.request and provide it the implementation-specific configuration
such as headers and request body. |
protected AbstractPayPalResponse<com.paypal.orders.Order> |
executeInternal()
Executes the configured
AbstractPayPalRequest.request using the PayPalHttpClient. |
protected String |
getOrderId() |
protected boolean |
isValidInternal()
Implementation specific determination of whether the request can be executed.
|
configureRequest, execute, getClient, getClientProvider, getPaymentRequest, getRequest, isExecuted, isValidpublic PayPalCaptureOrderRequest(PayPalClientProvider clientProvider, org.broadleafcommerce.common.payment.dto.PaymentRequestDTO paymentRequest, String orderId)
protected com.paypal.orders.OrdersCaptureRequest buildRequest()
AbstractPayPalRequestAbstractPayPalRequest.request and provide it the implementation-specific configuration
such as headers and request body.buildRequest in class AbstractPayPalRequest<com.paypal.orders.Order,com.paypal.orders.OrdersCaptureRequest>protected AbstractPayPalResponse<com.paypal.orders.Order> executeInternal() throws IOException
AbstractPayPalRequestAbstractPayPalRequest.request using the PayPalHttpClient.executeInternal in class AbstractPayPalRequest<com.paypal.orders.Order,com.paypal.orders.OrdersCaptureRequest>IOException - Thrown if the request execution fails.protected boolean isValidInternal()
AbstractPayPalRequestisValidInternal in class AbstractPayPalRequest<com.paypal.orders.Order,com.paypal.orders.OrdersCaptureRequest>protected String getOrderId()
Copyright © 2021. All rights reserved.