API/Autodoc/Classes/RuStore.PayClient.ProductPurchaseParams.en.md


RuStore::PayClient::ProductPurchaseParams

Product purchase parameters.

Inherits from RuStore.PayClient.BaseFields

Public Functions

Name
ProductPurchaseParams(ProductId productId, AppUserEmail? appUserEmail =null, AppUserId? appUserId =null, DeveloperPayload? developerPayload =null, OrderId? orderId =null, Quantity? quantity =null)
Constructor.

Public Properties

Name
AppUserEmail? appUserEmail — Email address of the user (optional parameter). When this parameter is used, the user email field is automatically filled with this value when sending a receipt, both for payments outside RuStore and for cases when the user is not authorized in RuStore.
AppUserId? appUserId — Internal user ID in the application (optional parameter). Maximum length is 128 characters.
DeveloperPayload? developerPayload — A string with additional order information that you can set when initializing the purchase process (optional parameter).
OrderId? orderId — Unique payment identifier generated by the application (optional parameter). If you specify this parameter in your system, you will receive it in the API response. If you do not specify it, it will be generated automatically (uuid). Maximum length is 150 characters.
ProductId productId — Product identifier assigned to the product in the RuStore console.
Quantity? quantity — Product quantity (optional parameter — if not specified, the value 1 is used).

Additional inherited members

Public Functions inherited from RuStore.PayClient.BaseFields

Name
override bool Equals(object obj)
override int GetHashCode()
override string ToString()

function ProductPurchaseParams

ProductPurchaseParams(
    ProductId productId,
    AppUserEmail? appUserEmail =null,
    AppUserId? appUserId =null,
    DeveloperPayload? developerPayload =null,
    OrderId? orderId =null,
    Quantity? quantity =null
)

Constructor.

Parameters:

  • appUserId Internal user ID in the application (optional parameter). Maximum length is 128 characters.
  • developerPayload A string with additional order information that you can set when initializing the purchase process (optional parameter).
  • orderId Unique payment identifier generated by the application (optional parameter). If you specify this parameter in your system, you will receive it in the API response. If you do not specify it, it will be generated automatically (uuid). Maximum length is 150 characters.
  • quantity Product quantity (optional parameter — if not specified, the value 1 is used).

property appUserEmail

AppUserEmail? appUserEmail;

property appUserId

AppUserId? appUserId;

Internal user ID in the application (optional parameter). Maximum length is 128 characters.

property developerPayload

DeveloperPayload? developerPayload;

A string with additional order information that you can set when initializing the purchase process (optional parameter).

property orderId

OrderId? orderId;

Unique payment identifier generated by the application (optional parameter). If you specify this parameter in your system, you will receive it in the API response. If you do not specify it, it will be generated automatically (uuid). Maximum length is 150 characters.

property productId

ProductId productId;

property quantity

Quantity? quantity;

Product quantity (optional parameter — if not specified, the value 1 is used).


Назад