Skip to content

Commit

Permalink
fix: [PAGOPA-1923] Try to fix redirect url (#47)
Browse files Browse the repository at this point in the history
* try to fix redirect url
* added idDominio
  • Loading branch information
aomegax authored Jul 4, 2024
1 parent 9dcbd1f commit 86100d1
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ private CartRequestDto extractCart(SessionDataDTO sessionData) throws URISyntaxE

// explicitly set all URLs for object
it.gov.pagopa.gen.wispconverter.client.checkout.model.CartRequestReturnUrlsDto returnUrls = new it.gov.pagopa.gen.wispconverter.client.checkout.model.CartRequestReturnUrlsDto();
returnUrls.setReturnOkUrl(new URI(stationRedirectURL + "/success.html"));
returnUrls.setReturnCancelUrl(new URI(stationRedirectURL + "/cancel.html"));
returnUrls.setReturnErrorUrl(new URI(stationRedirectURL + "/error.html"));
returnUrls.setReturnOkUrl(new URI(String.format("%s?idDominio=%s&idSession=%s&esito=OK",stationRedirectURL, sessionData.getCommonFields().getCreditorInstitutionId(), sessionData.getCommonFields().getSessionId())));
returnUrls.setReturnCancelUrl(new URI(String.format("%s?idDominio=%s&idSession=%s&esito=ERROR",stationRedirectURL, sessionData.getCommonFields().getCreditorInstitutionId(), sessionData.getCommonFields().getSessionId())));
returnUrls.setReturnErrorUrl(new URI(String.format("%s?idDominio=%s&idSession=%s&esito=ERROR",stationRedirectURL, sessionData.getCommonFields().getCreditorInstitutionId(), sessionData.getCommonFields().getSessionId())));
cart.setReturnUrls(returnUrls);

return cart;
Expand Down

0 comments on commit 86100d1

Please sign in to comment.