Handle in-app purchases with these Payment Service classes.
When you create a great app for BlackBerry, you'd probably like to make some money from it. One way to do this is to support in-app purchases that provide you with additional revenue. The Payment Service lets you manage in-app purchases for one-time and subscription-based digital goods. You can submit requests to purchase digital goods that you've registered on BlackBerry World, and you can process the replies and receipts that you receive.
Libraries and permissions
To link against these classes, add the following line to your .pro file:
LIBS += -lbbplatform
To learn more about the Payment Service and how to use it in your apps, visit the Payment Service documentation.
To download a code sample that demonstrates how to use the Payment Service in your apps, visit the Cascades Samples repository in Github.
- CancelSubscriptionReply -
Represents a response to PaymentManager::requestCancelSubscription().
- DigitalGoodReply -
Base class for PaymentManager replies for digital goods or subscriptions.
- ExistingPurchasesReply -
Represents a response to PaymentManager::requestExistingPurchases().
- PaymentReply -
Base class for all PaymentManager replies.
- PriceReply -
Represents a response to PaymentManager::requestPrice().
- PurchaseReply -
Represents a response to PaymentManager::requestPurchase().
- SubscriptionStatusReply -
Represents a response to PaymentManager::requestSubscriptionStatus().
- SubscriptionTermsReply -
Represents a response to PaymentManager::requestSubscriptionTerms().