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 identifier (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 identifier assigned to the product in the RuStore console (optional parameter).
PurchaseId? purchaseId — Purchase identifier (optional parameter).
Quantity? quantity — Product quantity (optional parameter).
bool? sandbox — Flag indicating a test payment in the sandbox. If true — 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 — Error obtaining payment token.
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 — Error reinitializing SDK.
class RuStorePayClientNotCreated — Attempt to access SDK public interfaces before its initialization.
class RuStorePayInvalidActivePurchase — Payment process started for an unknown product type.
class RuStorePayInvalidConsoleAppId — Required parameter console_app_id_value for SDK initialization is not set.
class RuStorePaymentCommonException — General SDK error.
class RuStorePaymentNetworkException — SDK network communication error.
class RuStorePaySignatureException — Invalid response signature (occurs when an attempt is made to commit 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 identifier (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 identifier (optional parameter).
  • purchaseType Purchase type (optional parameter).
  • quantity Product quantity (optional parameter).

property invoiceId

InvoiceId? invoiceId;

Invoice identifier (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;

property productType

ProductType? productType;

Product type.

property purchaseId

PurchaseId? purchaseId;

Purchase identifier (optional parameter).

property purchaseType

PurchaseType? purchaseType;

Purchase type (optional parameter).

property quantity

Quantity? quantity;

Product quantity (optional parameter).

property sandbox

bool? sandbox;

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


Назад