More acceleration checkout refactoring

This commit is contained in:
Mononaut
2024-06-28 07:02:12 +00:00
parent 473da82caa
commit c75afe20cd
18 changed files with 532 additions and 1278 deletions

View File

@@ -168,9 +168,10 @@ export class ServicesApiServices {
return this.httpClient.get<{txid: string}>(`${SERVICES_API_PREFIX}/testnet4/faucet/request?address=${address}&sats=${sats}`, { responseType: 'json' });
}
generateBTCPayAcceleratorInvoice$(txid: string): Observable<any> {
generateBTCPayAcceleratorInvoice$(txid: string, sats: number): Observable<any> {
const params = {
product: txid
product: txid,
amount: sats,
};
return this.httpClient.post<any>(`${SERVICES_API_PREFIX}/payments/bitcoin`, params);
}