feat: make stripe functional

This commit is contained in:
Constantin Simonis 2025-02-13 10:22:33 +01:00
parent 177dd78592
commit 1d0162d250
No known key found for this signature in database
GPG key ID: 3878FF77C24AF4D2
6 changed files with 56 additions and 56 deletions

View file

@ -0,0 +1,15 @@
import { inject, Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { Observable } from 'rxjs';
@Injectable({
providedIn: 'root'
})
export class DepositService {
private http: HttpClient = inject(HttpClient);
handleDeposit(amount: number): Observable<{ sessionId: string }> {
return this.http.post<{sessionId: string}>('/backend/deposit/checkout', {amount});
}
}