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 PaymentManagerProperties
| Name | Description |
|---|---|
| Delegations | Gets the data that the payment handler provides instead of the payment sheet. |
| UserHint | Gets or sets the hint shown next to the name of the payment handler (e.g. **** 1234). |
Delegations
PaymentHandler.csGets the data that the payment handler provides instead of the payment sheet.
public IReadOnlyCollection<PaymentDelegation> Delegations { get; }Property value
UserHint
PaymentHandler.csGets or sets the hint shown next to the name of the payment handler (e.g. **** 1234).
public string UserHint { get; set; }Property value
See also
Methods
| Name | Description |
|---|---|
| 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.csRecords the data that the payment handler provides (https://w3c.github.io/web-based-payment-handler/#dom-paymentmanager-enabledelegations).
public Task EnableDelegations(IReadOnlyList<PaymentDelegation> delegations)