Public Members
| bool | ok { false } |
| bool | canceled { false } |
| std::string | purchaseToken |
| std::string | planId |
| std::string | error |
Detailed Description
Result of a store purchase through
VApp::start_purchase().
The app sends purchaseToken to its server to verify, so no billing
logic runs in the app itself.
Member Variable Documentation
bool ok { false }
A purchase or plan change went through
bool canceled { false }
The user closed the store's purchase sheet
std::string purchaseToken
Store's token for the purchase, to verify on a server
std::string planId
Plan that was bought, like "monthly-3"
std::string error
Why the purchase failed; empty on success or cancel