Guest User

Untitled

a guest
Jun 25th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. @Override void onPurchasesUpdated(@BillingResponse int responseCode,
  2. List<Purchase> purchases) {
  3. if (responseCode == BillingResponse.OK
  4. && purchases != null) {
  5. for (Purchase purchase : purchases) {
  6. handlePurchase(purchase);
  7. }
  8. } else if (responseCode == BillingResponse.USER_CANCELED) {
  9. // Handle an error caused by a user canceling the purchase flow.
  10. } else {
  11. // Handle any other error codes.
  12. } }
Add Comment
Please, Sign In to add comment