Table of Contents

Class SubscriptionCheckoutRequest

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

A provider-hosted page that starts a subscription.

public record SubscriptionCheckoutRequest : IEquatable<SubscriptionCheckoutRequest>
Inheritance
SubscriptionCheckoutRequest
Implements
Inherited Members

Constructors

SubscriptionCheckoutRequest(string, string, string, string, string?, IDictionary<string, string>?, string?)

A provider-hosted page that starts a subscription.

public SubscriptionCheckoutRequest(string CustomerId, string PriceLookupKey, string SuccessUrl, string CancelUrl, string? ClientReferenceId = null, IDictionary<string, string>? Metadata = null, string? IdempotencyKey = null)

Parameters

CustomerId string

Who pays. The customer must already exist at the provider.

PriceLookupKey string

The lookup key of the price to subscribe to. A key rather than a price identifier, so a price can be replaced at the provider by moving the key without the caller changing anything.

SuccessUrl string

Where the customer returns after paying.

CancelUrl string

Where the customer returns if they give up.

ClientReferenceId string

The caller's own identifier for what is being bought, echoed on the completed checkout.

Metadata IDictionary<string, string>

Stored on the subscription the checkout creates; the caller's own identifiers belong here.

IdempotencyKey string

Makes a retried request return the same page rather than open a second one.

Properties

CancelUrl

Where the customer returns if they give up.

public string CancelUrl { get; init; }

Property Value

string

ClientReferenceId

The caller's own identifier for what is being bought, echoed on the completed checkout.

public string? ClientReferenceId { get; init; }

Property Value

string

CustomerId

Who pays. The customer must already exist at the provider.

public string CustomerId { get; init; }

Property Value

string

IdempotencyKey

Makes a retried request return the same page rather than open a second one.

public string? IdempotencyKey { get; init; }

Property Value

string

Metadata

Stored on the subscription the checkout creates; the caller's own identifiers belong here.

public IDictionary<string, string>? Metadata { get; init; }

Property Value

IDictionary<string, string>

PriceLookupKey

The lookup key of the price to subscribe to. A key rather than a price identifier, so a price can be replaced at the provider by moving the key without the caller changing anything.

public string PriceLookupKey { get; init; }

Property Value

string

SuccessUrl

Where the customer returns after paying.

public string SuccessUrl { get; init; }

Property Value

string