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
14
README.md
14
README.md
|
@ -90,20 +90,6 @@ npm run dev
|
||||||
|
|
||||||
The frontend will be available at http://localhost:4200
|
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
|
## Database Management
|
||||||
|
|
||||||
### Postgres Management
|
### Postgres Management
|
||||||
|
|
|
@ -5,7 +5,7 @@ import { Game } from '../../model/Game';
|
||||||
import { Transaction } from '../../model/Transaction';
|
import { Transaction } from '../../model/Transaction';
|
||||||
import { DepositComponent } from '../deposit/deposit.component';
|
import { DepositComponent } from '../deposit/deposit.component';
|
||||||
import { ConfirmationComponent } from '../../shared/components/confirmation/confirmation.component';
|
import { ConfirmationComponent } from '../../shared/components/confirmation/confirmation.component';
|
||||||
import { ActivatedRoute, Router } from '@angular/router';
|
import { ActivatedRoute } from '@angular/router';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-homepage',
|
selector: 'app-homepage',
|
||||||
|
@ -18,16 +18,10 @@ export default class HomeComponent implements OnInit {
|
||||||
isDepositModalOpen = false;
|
isDepositModalOpen = false;
|
||||||
isDepositSuccessful = false;
|
isDepositSuccessful = false;
|
||||||
|
|
||||||
constructor(
|
constructor(public route: ActivatedRoute) {}
|
||||||
public route: ActivatedRoute,
|
|
||||||
public router: Router
|
|
||||||
) {}
|
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
this.isDepositSuccessful = this.route.snapshot.queryParams['success'] == 'true';
|
this.isDepositSuccessful = this.route.snapshot.queryParams['success'] == 'true';
|
||||||
|
|
||||||
this.router.navigate([], { queryParams: {} });
|
|
||||||
|
|
||||||
if (this.isDepositSuccessful) {
|
if (this.isDepositSuccessful) {
|
||||||
this.openDepositConfirmationModal();
|
this.openDepositConfirmationModal();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue