Table of Contents

Class PaymentManager

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll
NOTE
Experimental
The PaymentManager interface of the {{domxref("Payment Handler API", "Payment Handler API", "", "nocode")}} is used to manage various aspects of payment app functionality.
[Value("PaymentManager")]
public class PaymentManager
Inheritance
PaymentManager
Inherited Members

Remarks

It is accessed via the PaymentManager property.

-{{domxref("Payment Handler API", "Payment Handler API", "", "nocode")}}
-Web-based payment apps overview
-Setting up a payment method
-Life of a payment transaction
-Using the Payment Request API
-Payment processing concepts

See also on MDN

Constructors

PaymentManager()

public PaymentManager()

Properties

UserHint

NOTE
Experimental
The userHint property of the PaymentManager interface provides a hint for the browser to display along with the payment app's name and icon in the Payment Handler UI.
[Value("userHint")]
public string UserHint { get; set; }

Property Value

string

A string.

Remarks

-{{domxref("Payment Handler API", "Payment Handler API", "", "nocode")}}
-Web-based payment apps overview
-Setting up a payment method
-Life of a payment transaction
-Using the Payment Request API
-Payment processing concepts

See also on MDN

Methods

EnableDelegations(List<PaymentDelegation>)

NOTE
Experimental
The enableDelegations() method of the PaymentManager interface delegates responsibility for providing various parts of the required payment information to the payment app rather than collecting it from the browser (for example, via autofill).
[Value("enableDelegations")]
public Task<GlobalObject.Undefined> EnableDelegations(List<PaymentDelegation> delegations)

Parameters

delegations List<PaymentDelegation>

Returns

Task<GlobalObject.Undefined>

A Promise that resolves with a value of undefined.

Remarks

For example, if the requestShipping option is set to true in the options object when invoking the PaymentRequest(List<PaymentMethodData>, PaymentDetailsInit, PaymentOptions) constructor, a shipping address will be returned.

-{{domxref(&quot;Payment Handler API&quot;, &quot;Payment Handler API&quot;, &quot;&quot;, &quot;nocode&quot;)}}
-Web-based payment apps overview
-Setting up a payment method
-Life of a payment transaction
-Using the Payment Request API
-Payment processing concepts

See also on MDN