PaymentResponse Constructors

Definition

Overloads

PaymentResponse()

Initializes a new instance of the PaymentResponse class.

PaymentResponse(String, Object, PaymentAddress, String, String, String)

Initializes a new instance of the PaymentResponse class.

PaymentResponse()

Initializes a new instance of the PaymentResponse class.

public PaymentResponse ();
Public Sub New ()

Applies to

PaymentResponse(String, Object, PaymentAddress, String, String, String)

Initializes a new instance of the PaymentResponse class.

public PaymentResponse (string methodName = default, object details = default, Microsoft.Bot.Schema.PaymentAddress shippingAddress = default, string shippingOption = default, string payerEmail = default, string payerPhone = default);
new Microsoft.Bot.Schema.PaymentResponse : string * obj * Microsoft.Bot.Schema.PaymentAddress * string * string * string -> Microsoft.Bot.Schema.PaymentResponse
Public Sub New (Optional methodName As String = Nothing, Optional details As Object = Nothing, Optional shippingAddress As PaymentAddress = Nothing, Optional shippingOption As String = Nothing, Optional payerEmail As String = Nothing, Optional payerPhone As String = Nothing)

Parameters

methodName
String

The payment method identifier for the payment method that the user selected to fulfil the transaction.

details
Object

A JSON-serializable object that provides a payment method specific message used by the merchant to process the transaction and determine successful fund transfer.

shippingAddress
PaymentAddress

If the requestShipping flag was set to true in the PaymentOptions passed to the PaymentRequest constructor, then shippingAddress will be the full and final shipping address chosen by the user.

shippingOption
String

If the requestShipping flag was set to true in the PaymentOptions passed to the PaymentRequest constructor, then shippingOption will be the id attribute of the selected shipping option.

payerEmail
String

If the requestPayerEmail flag was set to true in the PaymentOptions passed to the PaymentRequest constructor, then payerEmail will be the email address chosen by the user.

payerPhone
String

If the requestPayerPhone flag was set to true in the PaymentOptions passed to the PaymentRequest constructor, then payerPhone will be the phone number chosen by the user.

Applies to