PaymentManager Class

The payment handler of a service worker registration (https://w3c.github.io/web-based-payment-handler/#paymentmanager-interface): registration.paymentManager. The library records the hint and the delegations of the payment handler; it does not invoke the payment handlers of the service workers (the canmakepayment and paymentrequest events are never fired by the user agent).

public sealed class PaymentManager

Properties

NameDescription
DelegationsGets the data that the payment handler provides instead of the payment sheet.
UserHintGets or sets the hint shown next to the name of the payment handler (e.g. **** 1234).

Gets the data that the payment handler provides instead of the payment sheet.

public IReadOnlyCollection<PaymentDelegation> Delegations { get; }

Gets or sets the hint shown next to the name of the payment handler (e.g. **** 1234).

public string UserHint { get; set; }

Methods

NameDescription
EnableDelegations(IReadOnlyList<PaymentDelegation>)Records the data that the payment handler provides (https://w3c.github.io/web-based-payment-handler/#dom-paymentmanager-enabledelegations).

EnableDelegations(IReadOnlyList<PaymentDelegation>)

PaymentHandler.cs

Records the data that the payment handler provides (https://w3c.github.io/web-based-payment-handler/#dom-paymentmanager-enabledelegations).

public Task EnableDelegations(IReadOnlyList<PaymentDelegation> delegations)