Hello, I am presenting you the extension for in-app purchases.

It is based on Anjlab’s library (version 1.0.39)


INSTRUCTIONS


ERROR CODES

Learn about the error codes that you may receive using ErrorOccurred event block. I’ve made a list of error codes so you know what does that all mean. Meaning of each error code has been written against that error code.

Error Code Meaning
0 BILLING_RESPONSE_RESULT_OK
1 BILLING_RESPONSE_RESULT_USER_CANCELED
2 BILLING_RESPONSE_RESULT_SERVICE_UNAVAILABLE
3 BILLING_RESPONSE_RESULT_BILLING_UNAVAILABLE
4 BILLING_RESPONSE_RESULT_ITEM_UNAVAILABLE
5 BILLING_RESPONSE_RESULT_DEVELOPER_ERROR
6 BILLING_RESPONSE_RESULT_ERROR
7 BILLING_RESPONSE_RESULT_ITEM_ALREADY_OWNED
8 BILLING_RESPONSE_RESULT_ITEM_NOT_OWNED

Some more error codes:

Error Code Meaning
100 BILLING_ERROR_FAILED_LOAD_PURCHASES
101 BILLING_ERROR_FAILED_TO_INITIALIZE_PURCHASE
102 BILLING_ERROR_INVALID_SIGNATURE
103 BILLING_ERROR_LOST_CONTEXT
104 BILLING_ERROR_INVALID_MERCHANT_ID
105 BILLING_ERROR_INVALID_DEVELOPER_PAYLOAD
110 BILLING_ERROR_OTHER_ERROR
111 BILLING_ERROR_CONSUME_FAILED
112 BILLING_ERROR_SKUDETAILS_FAILED
113 BILLING_ERROR_BIND_PLAY_STORE_FAILED

Found at https://goo.gl/q2QnR5


Demo

Test this extension using this app.