public class CreatePaymentServiceImpl extends java.lang.Object implements CreatePaymentService
Modifier and Type | Field and Description |
---|---|
private PayPalRequestGateway |
gateway |
private static java.lang.String |
PAYMENT_RESOURCE_PATH |
private CreatePaymentRequestBuilder |
requestBuilder |
Constructor and Description |
---|
CreatePaymentServiceImpl(PayPalRequestGateway gateway,
CreatePaymentRequestBuilder requestBuilder) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
createPayment(PayPalPlusRequestContext requestContext,
PaymentRequestEp6 paymentRequest) |
private PayPalRequest |
createRequest(PayPalPlusRequestContext requestContext,
PaymentRequestEp6 paymentRequest) |
private final PayPalRequestGateway gateway
private final CreatePaymentRequestBuilder requestBuilder
private static final java.lang.String PAYMENT_RESOURCE_PATH
@Inject public CreatePaymentServiceImpl(PayPalRequestGateway gateway, CreatePaymentRequestBuilder requestBuilder)
public java.lang.String createPayment(PayPalPlusRequestContext requestContext, PaymentRequestEp6 paymentRequest) throws WebServiceException
createPayment
in interface CreatePaymentService
WebServiceException
private PayPalRequest createRequest(PayPalPlusRequestContext requestContext, PaymentRequestEp6 paymentRequest)