Skip to content

Namespace CME.CloudPurchase

Top-level entities

CloudPurchaseClient type

Implements

IDisposable

Overview

Client for validating purchases.

Methods overview

Name Description
#ctor() constructor Default constructor
Dispose() IDisposable implementation
Validate(request, executionLogger) Initiates payment validation request to the cloud side of CME Cloud Purchase

Methods

Validate(request, executionLogger) method

Parameters
Name Type Description
request CME.CloudPurchase.ValidationRequest Purchase details to validate
executionLogger System.Action{System.String} Delegate for logging validation result
Returns

Task<ValidationResponse >

PurchaseType enum

Summary

Enum of types of purchase.

Values

Name Value Description
Unknown 0 Unknown type
Paid 1 Paid through the store
Test 2 Test payment
Promo 3 Promo code

Store enum

Summary

Enum of app stores

Values

Name Description
Apple AppStore
Fake For test purpose
GooglePlay Google Play Store

ValidationRequest type

Overview

Purchase info to validate

Fields

Name Type Description
Store Store Store where the purchase was made
PackageId string App Id
ProductId string Product ID
ReceiptData string Data with payment processing results from the store
UserId string User ID
Price string Price in local currency
Currency string Local currency
PriceUsdCents int Price in USD cents

ValidationResponse type

Overview

Details of validation result from CME Cloud Purchase cloud side

Fields

Name Type Description
Valid bool Payment validity flag
PurchaseType PurchaseType Payment type
ErrorCode string Error code from the validating platform
ErrorMessage string Error description from the validating platform
Back to top