@Path(value="payments/paypalplus")
public class PaymentRequestResource
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private PayPalPlusAuthorizationService |
authorizationService |
private PaymentRequestService |
paymentRequestService |
Constructor and Description |
---|
PaymentRequestResource() |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
createPayment(PaymentRequest paymentRequest,
PayPalPlusCredentials credentials) |
@Inject private PayPalPlusAuthorizationService authorizationService
@Inject private PaymentRequestService paymentRequestService
@POST @Path(value="payment") @Produces(value="application/json") public javax.ws.rs.core.Response createPayment(PaymentRequest paymentRequest, @BeanParam PayPalPlusCredentials credentials)