ReturnPurchase
Mock version of return purchase, use for test purpose.
Service | Operation |
---|---|
appStore | RETURN_PURCHASE |
Method Parameters
Parameter | Description |
---|---|
storeId | The store type. |
transactionId | Id of transaction to return |
Usage
http://localhost:3000
- C#
- C++
- Objective-C
- Java
- JavaScript
- Dart
- Cloud Code
- Raw
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
var storeId = "mock";
var transactionId: "xxxxxx";
var appStoreProxy = bridge.getAppStoreServiceProxy();
var postResult = appStoreProxy.returnPurchase(storeId, transactionId);
if (postResult.status == 200) {
// Success!
}
{
"service": "appStore",
"operation": "RETURN_PURCHASE",
"data": {
"storeId": "mock",
"transactionId": "xxxxxx"
}
}
JSON Response
{
"status": 200,
"data": {}
}