@Path(value="payments/redsys")
public class RedSysResource
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private RedsysService |
redsysService |
Constructor and Description |
---|
RedSysResource() |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
decrypt(java.lang.String secretKey,
java.lang.String merchantParameters) |
javax.ws.rs.core.Response |
encrypt(java.lang.String secretKey,
RedsysBeanParam redsysParams) |
@Inject private RedsysService redsysService
@POST @Path(value="encrypt") @Produces(value="application/json") @Consumes(value="application/x-www-form-urlencoded") public javax.ws.rs.core.Response encrypt(@NotNull @FormParam(value="secretKey") java.lang.String secretKey, @BeanParam RedsysBeanParam redsysParams)
@POST @Path(value="decrypt") @Produces(value="application/json") @Consumes(value="application/x-www-form-urlencoded") public javax.ws.rs.core.Response decrypt(@FormParam(value="secretKey") @NotNull java.lang.String secretKey, @FormParam(value="merchantParameters") @NotNull java.lang.String merchantParameters)