PaymentRequestService

Wraps the Payment Request API for initiating native payment flows. Supports payment method validation, payment sheet display, and result handling.

TypeScriptexample.ts
import { PaymentRequestService } from '@angular-helpers/browser-web-apis/experimental'

# Methods

MethodSignatureReturnsDescription
canMakePaymentcanMakePayment(methods: PaymentMethodConfig[], details: PaymentDetailsInit): Promise<boolean>Promise<boolean>Checks whether the user can make a payment with the given methods.
showshow(methods: PaymentMethodConfig[], details: PaymentDetailsInit, options?: PaymentOptionsConfig): Promise<PaymentResult>Promise<PaymentResult>Shows the payment sheet and returns the result on completion.
isSupportedisSupported(): booleanbooleanReturns whether the Payment Request API is available.
LCP N/A
CLS N/A
INP N/A