Class HostedPaymentMethodPageRequest
What a provider-hosted page for saving a payment method needs.
public record HostedPaymentMethodPageRequest : IEquatable<HostedPaymentMethodPageRequest>
- Inheritance
-
HostedPaymentMethodPageRequest
- Implements
- Inherited Members
Constructors
HostedPaymentMethodPageRequest(string, string, string, string?)
What a provider-hosted page for saving a payment method needs.
public HostedPaymentMethodPageRequest(string CustomerId, string SuccessUrl, string CancelUrl, string? CurrencyCode = null)
Parameters
CustomerIdstringWhose payment method is being saved.
SuccessUrlstringWhere the provider returns the customer once they have saved one.
CancelUrlstringWhere it returns them if they give up.
CurrencyCodestringISO 4217, in any case: the currency the customer will later be charged in. Nothing is charged on this page, but a provider offers only the methods that can pay in that currency, and only the caller knows which it is. Null when the caller does not know yet; a provider that cannot choose without it answers a failure saying so.
Properties
CancelUrl
Where it returns them if they give up.
public string CancelUrl { get; init; }
Property Value
CurrencyCode
ISO 4217, in any case: the currency the customer will later be charged in. Nothing is charged on this page, but a provider offers only the methods that can pay in that currency, and only the caller knows which it is. Null when the caller does not know yet; a provider that cannot choose without it answers a failure saying so.
public string? CurrencyCode { get; init; }
Property Value
CustomerId
Whose payment method is being saved.
public string CustomerId { get; init; }
Property Value
SuccessUrl
Where the provider returns the customer once they have saved one.
public string SuccessUrl { get; init; }