Skip to main content
Version: 5.7.0

ResetCurrency

caution

WARNING: This call, ResetCurrency(), is included in the client libraries for convenience and backwards compatibility, but for app security reasons we recommend it only be called server-side via Cloud Code. By default the brainCloud servers will block any client-side invocations of currency altering methods. To enable client-side support (not recommended), you need to enable the [x] Allow Currency Calls from Client compatibility setting on the Design | Core App Info | Advanced Settings page of the portal.

Resets the player's currency back to zero.

ServiceOperation
productRESET_PLAYER_VC

Usage

http://localhost:3000
SuccessCallback successCallback = (response, cbObject) =>
{
Debug.Log(string.Format("Success | {0}", response));
};
FailureCallback failureCallback = (status, code, error, cbObject) =>
{
Debug.Log(string.Format("Failed | {0} {1} {2}", status, code, error));
};

_bc.ProductService.ResetCurrency(successCallback, failureCallback);
JSON Response
{
"status": 200,
"data": null
}