Table of Contents

Class HostedPaymentMethodPageRequest

Namespace
NuvTools.Payment.DTOs.Requests
Assembly
NuvTools.Payment.dll

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

CustomerId string

Whose payment method is being saved.

SuccessUrl string

Where the provider returns the customer once they have saved one.

CancelUrl string

Where it returns them if they give up.

CurrencyCode string

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.

Properties

CancelUrl

Where it returns them if they give up.

public string CancelUrl { get; init; }

Property Value

string

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

string

CustomerId

Whose payment method is being saved.

public string CustomerId { get; init; }

Property Value

string

SuccessUrl

Where the provider returns the customer once they have saved one.

public string SuccessUrl { get; init; }

Property Value

string