import Element from '@angular/core';
import HttpClient from '@angular/widespread/http';
import Stripe, PaymentSheetEventsEnum from '@capacitor-community/stripe';
import first, lastValueFrom from 'rxjs';
import surroundings from 'src/environments/surroundings';
@Element(
selector: 'app-home',
templateUrl: 'house.web page.html',
styleUrls: ['home.page.scss'],
)
export class HomePage
title!: string;
e-mail!: string;
quantity!: quantity;
information: any = ;
constructor(personal http: HttpClient)
async paymentSheet()
attempt catch (error)
console.log(error);
httpPost(physique: any)
return this.http.put up<any>(surroundings.api + 'payment-sheet', physique).pipe(first());