Class PurchaseValidationService

Inheritance Relationships

Base Type

Class Documentation

class PurchaseValidationService : public axr::sdk::ServiceBase<void>

Provides server side in-app purchase validation for various digital store fronts. The following stores are utility::char_t*.

  • Apple Store

  • Google Play

Public Functions

inline PurchaseValidationService(std::shared_ptr<Configuration> config, std::shared_ptr<net::IApiClient> apiClient)
inline ~PurchaseValidationService()
pplx::task<void> ValidateApple(std::shared_ptr<AppleReceipt> receipt)

Validates the provided in-app purchase receipt with the Apple Store.

Parameters

receipt – The Apple Store receipt to validate.

pplx::task<void> ValidateGoogle(std::shared_ptr<GoogleReceipt> receipt)

Validates the provided in-app purchase receipt with the Google Play Store.

Parameters

receipt – The Google Play Store receipt to validate.

Public Static Functions

static inline const utility::char_t *ClassName()

Returns the fully qualified name of the class.