Compare commits

..

No commits in common. "v1.14.0" and "v1.13.2" have entirely different histories.

2 changed files with 2 additions and 22 deletions

View file

@ -90,20 +90,6 @@ npm run dev
The frontend will be available at http://localhost:4200
### Local Stripe integration
1. Install the Stripe CLI
https://stripe.com/docs/stripe-cli
2. Login to the casino stripe account
```
stripe login --api-key <casino-stripe-secret-key>
```
3. Start webhook forwarding
```
stripe listen --forward-to localhost:8080/webhook
```
## Database Management
### Postgres Management

View file

@ -5,7 +5,7 @@ import { Game } from '../../model/Game';
import { Transaction } from '../../model/Transaction';
import { DepositComponent } from '../deposit/deposit.component';
import { ConfirmationComponent } from '../../shared/components/confirmation/confirmation.component';
import { ActivatedRoute, Router } from '@angular/router';
import { ActivatedRoute } from '@angular/router';
@Component({
selector: 'app-homepage',
@ -18,16 +18,10 @@ export default class HomeComponent implements OnInit {
isDepositModalOpen = false;
isDepositSuccessful = false;
constructor(
public route: ActivatedRoute,
public router: Router
) {}
constructor(public route: ActivatedRoute) {}
ngOnInit() {
this.isDepositSuccessful = this.route.snapshot.queryParams['success'] == 'true';
this.router.navigate([], { queryParams: {} });
if (this.isDepositSuccessful) {
this.openDepositConfirmationModal();
}