updated to java 17

This commit is contained in:
Jilling Kingma
2021-12-03 14:11:14 +01:00
parent 49a1bac738
commit 4c00847932
4 changed files with 4 additions and 6 deletions

View File

@@ -4,7 +4,7 @@ plugins {
version '0.1'
sourceCompatibility = 1.8
sourceCompatibility = 1.17
description ="""
Demo Adyen checkout integration with a Java Spark based backend

View File

@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.3-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

View File

@@ -32,8 +32,6 @@ public class CheckoutService {
checkoutSession.setReference(orderRef); // required
checkoutSession.setReturnUrl("http://localhost:8080/redirect?orderRef=" + orderRef);
checkoutSession.setAmount(amount);
CreateCheckoutSessionResponse response = checkout.sessions(checkoutSession);
System.out.println("/CheckoutSession response ID:\n" + response.getId());
return response;
return checkout.sessions(checkoutSession);
}
}