API/Autodoc/Classes/RuStore.PayClient.RuStorePaymentException.ProductPurchaseException.en.md


RuStore::PayClient::RuStorePaymentException::ProductPurchaseException

Product purchase error (cannot set purchase status).

Inherits from RuStore.PayClient.RuStorePaymentException, RuStoreError

Public Functions

Name
ProductPurchaseException(string name, string description, RuStoreError cause, InvoiceId? invoiceId, OrderId? orderId, ProductId? productId, ProductType? productType, PurchaseId? purchaseId, PurchaseType? purchaseType, Quantity? quantity, bool? sandbox)
Constructor.

Public Properties

Name
InvoiceId? invoiceId — Invoice ID (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 you do not specify it, it will be generated automatically (uuid). Maximum length 150 characters.
ProductId? productId — Product ID assigned to the product in the RuStore console (optional parameter).
PurchaseId? purchaseId — Purchase ID (optional parameter).
Quantity? quantity — Product quantity (optional parameter).
bool? sandbox — Flag indicating a test payment in the sandbox. If true — the purchase was made in test mode.

Additional inherited members

Public Classes inherited from RuStore.PayClient.RuStorePaymentException

Name
class ApplicationSchemeWasNotProvided — Application scheme was not provided.
class EmptyPaymentTokenException — Payment token retrieval error.
class InvalidCardBindingIdException — Error paying with saved card.
class ProductPurchaseCancelled — Product purchase was cancelled (user closed the payment sheet).
class ProductPurchaseException — Product purchase error (cannot set purchase status).
class RuStorePayClientAlreadyExist — SDK reinitialization error.
class RuStorePayClientNotCreated — Attempt to access the SDK’s public interfaces before initialization.
class RuStorePayInvalidActivePurchase — A payment process for an unknown product type was started.
class RuStorePayInvalidConsoleAppId — Mandatory parameter console_app_id_value for SDK initialization is not set.
class RuStorePaymentCommonException — General SDK error.
class RuStorePaymentNetworkException — SDK network interaction error.
class RuStorePaySignatureException — Invalid response signature (occurs when attempting fraudulent activity).

Public Functions inherited from RuStore.PayClient.RuStorePaymentException

Name
RuStorePaymentException(string name, string description, RuStoreError? cause)
Constructor.

Public Properties inherited from RuStore.PayClient.RuStorePaymentException

Name
? RuStoreError cause — Error information.

function ProductPurchaseException

ProductPurchaseException(
    string name,
    string description,
    RuStoreError cause,
    InvoiceId? invoiceId,
    OrderId? orderId,
    ProductId? productId,
    ProductType? productType,
    PurchaseId? purchaseId,
    PurchaseType? purchaseType,
    Quantity? quantity,
    bool? sandbox
)

Constructor.

Parameters:

  • name Error name.
  • description Error message.
  • cause Error information.
  • invoiceId Invoice ID (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 you do not specify it, it will be generated automatically (uuid). Maximum length 150 characters.
  • productType Product type.
  • purchaseId Purchase ID (optional parameter).
  • purchaseType Purchase type (optional parameter).
  • quantity Product quantity (optional parameter).

property invoiceId

InvoiceId? invoiceId;

Invoice ID (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 you do not specify it, it will be generated automatically (uuid). Maximum length 150 characters.

property productId

ProductId? productId;

Product ID assigned to the product in the RuStore console (optional parameter).

property productType

ProductType? productType;

Product type.

property purchaseId

PurchaseId? purchaseId;

Purchase ID (optional parameter).

property purchaseType

PurchaseType? purchaseType;

Purchase type (optional parameter).

property quantity

Quantity? quantity;

Product quantity (optional parameter).

property sandbox

bool? sandbox;

A flag indicating a test payment in the sandbox. If true — the purchase was made in test mode.


Назад