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 — User’s email address (optional parameter). When using this parameter, the user’s 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 128 characters.
DeveloperPayload? developerPayload — 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 response when working with the API. If not specified, it will be generated automatically (uuid). Maximum length 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 will be 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 128 characters.
  • developerPayload 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 response when working with the API. If not specified, it will be generated automatically (uuid). Maximum length 150 characters.
  • quantity Product quantity (optional parameter — if not specified, the value 1 will be used).

property appUserEmail

AppUserEmail? appUserEmail;

User’s email address (optional parameter). When using this parameter, the user’s 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.

property appUserId

AppUserId? appUserId;

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

property developerPayload

DeveloperPayload? developerPayload;

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 response when working with the API. If not specified, it will be generated automatically (uuid). Maximum length 150 characters.

property productId

ProductId productId;

Product identifier assigned to the product in the RuStore console.

property quantity

Quantity? quantity;

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


Назад