feat: add deposit with stripe (CAS-28) #23

Merged
csimonis merged 12 commits from feat/stripe into main 2025-02-13 10:12:50 +00:00
2 changed files with 5 additions and 3 deletions
Showing only changes of commit da01e272d7 - Show all commits

View File

@ -3,6 +3,7 @@ import { FormControl, FormGroup, ReactiveFormsModule, Validators } from '@angula
import { loadStripe, Stripe } from '@stripe/stripe-js'; import { loadStripe, Stripe } from '@stripe/stripe-js';
import { DepositService } from '../service/deposit.service'; import { DepositService } from '../service/deposit.service';
import { debounceTime } from 'rxjs'; import { debounceTime } from 'rxjs';
import { environment } from '../../environments/environment';
@Component({ @Component({
selector: 'app-deposit', selector: 'app-deposit',
@ -29,9 +30,7 @@ export class DepositComponent implements OnInit {
} }
}); });
this.stripe = await loadStripe( this.stripe = await loadStripe(environment.STRIPE_KEY);
'pk_test_51QrePYIvCfqz7ANgMizBorPpVjJ8S6gcaL4yvcMQnVaKyReqcQ6jqaQEF7aDZbDu8rNVsTZrw8ABek4ToxQX7KZe00jpGh8naG'
);
} }
submit() { submit() {

View File

@ -0,0 +1,3 @@
export const environment = {
STRIPE_KEY: 'pk_test_51QrePYIvCfqz7ANgMizBorPpVjJ8S6gcaL4yvcMQnVaKyReqcQ6jqaQEF7aDZbDu8rNVsTZrw8ABek4ToxQX7KZe00jpGh8naG',
}