Class PaymentManager
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
NOTE
ExperimentalPaymentManager 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
Constructors
PaymentManager()
public PaymentManager()
Properties
UserHint
NOTE
ExperimentaluserHint 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
Methods
EnableDelegations(List<PaymentDelegation>)
NOTE
ExperimentalenableDelegations() 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
delegationsList<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("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