Buy Train Tickets with this application.
- Wien
- Linz
- Graz
- Innsbruck
- Zurich
Calculates the costs for a trip.
TripCost [fromStation] [toStation]
TripCost Wien Zurich
Books a single ticket
Book [fromStation] [toStation]
Book Graz Innsbruck
Buy a ticket and add it to the cart
Buy [ticketType]
Buy Day
Buy Week
Buy Month
Buy Year
Removes all items in the cart
ClearCart
ClearCart
Removes the latest added item in the cart
Undo
Undo
Calculates the total price of the cart.
GetTotal
GetTotal
Initiates a bank account and starts the paying process.
Pay
Pay
Then the total price of the user's cart is calculated and is being asked how he/she wants to pay. The following options are possible:
CreditCardBankTransferPayPal
Then the user is asked for further details. These details are being checked with the initiated bank in the background. If they are correct, the payment process was successful. Otherwise the process is interrupted, the cart stays the same and the payment process has to be started again. The account with the following details is set up in the banking backend:
{
"BankingDetails": {
"creditCard": {
"name": "Max Mustermann",
"cardNumber": "1234 5678 9123 4567",
"cvc": "234",
"date": "03/02"
},
"debitCard": {
"name": "Max Mustermann",
"iban": "DE07 1234 1234 1234 1234 12",
"date": "06/09"
},
"payPalAccount": {
"email": "max.mustermann@gmail.com",
"password": "1234"
}
}
}