Skip to content
Open

Test #124

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public void setup() {
}

String payerIdentifier = (String) variables.get("payerIdentifier");
String totalBatchAmount = (String) variables.get("partyLookupSuccessfulTransactionAmount");
String totalBatchAmount = (variables.get("partyLookupSuccessfulTransactionAmount")!=null?(String) variables.get("partyLookupSuccessfulTransactionAmount"): String.valueOf(0));
String currency = (String) variables.get("currency");

String batchId = (String) variables.get(BATCH_ID);
Expand All @@ -69,7 +69,7 @@ private HttpStatus invokeBatchAuthorizationApi(String batchId, AuthorizationRequ
headers.add(X_CALLBACK_URL, callbackURLPath);

HttpEntity<AuthorizationRequest> requestEntity = new HttpEntity<>(requestPayload, headers);
String endpoint = mockPaymentSchemaContactPoint + authorizationEndpoint + batchId;
String endpoint = mockPaymentSchemaContactPoint + authorizationEndpoint + batchId+ "?command=authorize";

ResponseEntity<String> responseEntity = restTemplate.exchange(endpoint, HttpMethod.POST, requestEntity, String.class);
return responseEntity.getStatusCode();
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ config:
partylookup:
enable: true
authorization:
enabled: true
enabled: false
approval:
enable: true
ordering:
Expand Down