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


RuStore::PayClient::RuStorePaymentException::ProductPurchaseException

Product purchase error (unable to determine 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 not specified, 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 — the purchase was made in testing mode.

Additional inherited members

Public Classes inherited from RuStore.PayClient.RuStorePaymentException

Name
class ApplicationSchemeWasNotProvided — Application scheme is not set.
class EmptyPaymentTokenException — Error receiving payment token.
class InvalidCardBindingIdException — Error paying with a saved card.
class ProductPurchaseCancelled — Product purchase was cancelled (the user closed the payment sheet).
class ProductPurchaseException — Product purchase error (unable to determine purchase status).
class RuStorePayClientAlreadyExist — Error of SDK re-initialization.
class RuStorePayClientNotCreated — Attempt to access public SDK interfaces before initialization.
class RuStorePayInvalidActivePurchase — A payment process for an unknown product type has been started.
class RuStorePayInvalidConsoleAppId — The required 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 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 not specified, 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 not specified, 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 — the purchase was made in testing mode.


Назад