Minor fix

This commit is contained in:
Julien Lengrand-Lambert
2019-11-18 14:04:39 +01:00
parent bf26235b89
commit 5121041c6b
2 changed files with 3 additions and 2 deletions

3
.gitignore vendored
View File

@@ -52,4 +52,5 @@ resources/templates/css/**
resources/templates/js/**
resources/templates/fonts/**
dist
.classpath
.classpath
dialogflow-fun-api/src/main/appengine/app.yaml

View File

@@ -67,7 +67,7 @@ public class DialogFlowService {
contact + " at " + getCurrentTime())
);
if (paymentRequest == null || paymentRequest.getStatus() == null || paymentRequest.getStatus().equalsIgnoreCase("completed"))
if (paymentRequest == null || paymentRequest.getStatus() == null || !paymentRequest.getStatus().equalsIgnoreCase("completed"))
return new DialogFlowResponse("Sorry, the creation of the payment failed. Please try again later! Make sure to use your bank account's currency!");
return new DialogFlowResponse("Created a payment for a value of " + unitCurrency.getAmount() + unitCurrency.getCurrency() + " to " + contact);