September 19, 2024
import  Part  from '@angular/core';
import  HttpClient  from '@angular/widespread/http';
import  Stripe, PaymentSheetEventsEnum  from '@capacitor-community/stripe';
import  first, lastValueFrom  from 'rxjs';
import  setting  from 'src/environments/setting';

@Part(
  selector: 'app-home',
  templateUrl: 'dwelling.web page.html',
  styleUrls: ['home.page.scss'],
)
export class HomePage 
  title!: string;
  electronic mail!: string;
  quantity!: quantity;
  information: any = ;

  constructor(non-public http: HttpClient)  

  async paymentSheet() 
    attempt 
      if (!this.title  catch (error) 
      console.log(error);
    
  

  httpPost(physique: any) 
    return this.http.publish<any>(setting.api + 'payment-sheet', physique).pipe(first());