JAVA-955: Migrate stripe to parent-boot-2

This commit is contained in:
sampadawagde 2020-05-06 22:35:28 +05:30
parent 2dd9b80107
commit 86da74f733
4 changed files with 28 additions and 3 deletions

View File

@ -11,9 +11,9 @@
<parent>
<groupId>com.baeldung</groupId>
<artifactId>parent-boot-1</artifactId>
<artifactId>parent-boot-2</artifactId>
<version>0.0.1-SNAPSHOT</version>
<relativePath>../parent-boot-1</relativePath>
<relativePath>../parent-boot-2</relativePath>
</parent>
<dependencies>

View File

@ -13,4 +13,27 @@ public class ChargeRequest {
private Currency currency;
private String stripeEmail;
private String stripeToken;
public String getDescription() {
return description;
}
public int getAmount() {
return amount;
}
public Currency getCurrency() {
return currency;
}
public String getStripeEmail() {
return stripeEmail;
}
public String getStripeToken() {
return stripeToken;
}
public void setDescription(String description) {
this.description = description;
}
public void setCurrency(Currency currency) {
this.currency = currency;
}
}

View File

@ -0,0 +1,2 @@
STRIPE_SECRET_KEY=
STRIPE_PUBLIC_KEY=

View File

@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="refresh" content="0; url=/checkout.html" />
<meta http-equiv="refresh" content="0; url=/checkout" />
</head>
<body></body>
</html>