Selling digital goods

Cascades provides a set of Payment Service classes that you can use to manage purchases and subscriptions directly in your app.

You can use the PaymentManager class to initiate a purchase or find out about past purchases or existing subscriptions. The PaymentConnectionMode class allows you to specify a test connection mode to avoid accidental purchases when you test your app. You can use the PaymentReply class to understand whether a PaymentManager request succeeds or fails by calling the isError() function.

You can use the following classes and responses with PaymentManager transactions:

If you are using an API level of 10.2 or later, you can use the PaymentErrorCode enumeration to identify why a payment transaction failed. The errorCode() function returns a PaymentErrorCode.

To get started adding digital goods to your app, see Setting up the Payment Service.

Last modified: 2014-09-29



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus