@Path(value="shops/{shopId}/payments/paypalplus/notification")
@RolesAllowed(value="external_notifications")
public class NotificationResource
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private IpnProcessor |
processor |
Constructor and Description |
---|
NotificationResource(IpnProcessor processor) |
Modifier and Type | Method and Description |
---|---|
void |
createNotification(java.lang.String shopId,
javax.ws.rs.container.AsyncResponse asyncResponse,
javax.ws.rs.core.Form ipnBody)
we need to use a asynchronous response here because paypal expects a
200-OK-Response before we return the IPN for acknowledgement
|
private final IpnProcessor processor
@Inject public NotificationResource(IpnProcessor processor)
@POST @Consumes(value="application/x-www-form-urlencoded") public void createNotification(@PathParam(value="shopId") java.lang.String shopId, @Suspended javax.ws.rs.container.AsyncResponse asyncResponse, javax.ws.rs.core.Form ipnBody)