Hi all,
Im testing the In-app purchases in google.
- all is good purchasing, and restoring transactions.
but if i refund a transaction in Google Play. The transaction is marked as refunded and my account is credited.
my app knows its refunded, so it puts back the "buy the thing now" button.
but when i click it again, it tells me from google that "You already own this item".
its a Managed item, i would have expected it to be re-purchasable if needed.
Comments
ok im alittle confused.
The code snippet i have below is mainly from bits in the forums.
it includes the "googlebilling:confirmNotification(event.notificationId)"
(note lowercase googlebilling?) as this is how i call it "require "googlebilling"".
it includes a REFUND section, but the only thing different to your suggestion is there is no listener "CONFIRM_NOTIFICATION_COMPLETE", would i use that to call the REFUND section ?
i also calls restoretransactions and the other 2 listeners...
http://artleeapps.com/
Bubble Adventure - Colors
Now its crashing, as there is a NIL value passed to the ConfirmNotification ?
http://artleeapps.com/
Bubble Adventure - Colors
I didnt have that, now ive added it just after i set the "setPublicKey".
I still get the NIL error.
Would it be "ok" to put a check around it.
like
http://artleeapps.com/
Bubble Adventure - Colors
The test transaction, or cancel state, etc?
i put some dialogs in to show what is being run.
i start the listeners, then call the "googlebilling:restoreTransactions()"
Nil "event.notificationId" came through for "googlebilling:confirmNotification(event.notificationId)":
For this transaction:
- event.productid = "remove_advertising"
- event.purchasestate = "purchased"
Even so:
- the remove_advertising has been purchased, and then refunded.
so i would expect both to come through ?
Im sooooo close to knocking this app off.. its becoming annoying :-??
Sorry for being a Pain-in-da-but....
Here are the important bits from my Lua - Main:
Ive cut out the other app related bits....
http://artleeapps.com/
Bubble Adventure - Colors
And further more, if in your google checkout you press cancel order, then you will be dispatched refund event, but if you will press refund money, then only money will be refunded, but no events to the app and product will still be marked as purchased.
Is that what happened?
Yes.
1) the app is uploaded but in draft, so available to my test users.
2) user1, purchased a managed item "remove_advertising"
3) user1, the bank account was still debted (even though it says test users wont, no drama)
4) i went to my google console and refunded it there.
5) it showed refunded, and user1's account $ was refunded (all but 1cent lol)
6) if she tries to purchase again, it shows a google message ..like you already have this item
so its like google has paid it back, but it hasnt flagged it back as available to purchase, or sent my app a refund event when i do a restore transactions.
so you are very close... is there a solution, or is it just a google glitch...
http://artleeapps.com/
Bubble Adventure - Colors
As in there should be two options, refund and cancel, both refunds money and only cancel changes purchase state.
i had a look at another purchase (but that was for another android pay up front game i sold.) that only has "refund" available and the cancel is greyed.
when you read the "?" it refers to cancel for subscriptions.
Maybe i should just retreat, and if someone wants refunds, theyll still get their money, but the app just wont get the message..
http://artleeapps.com/
Bubble Adventure - Colors
http://artleeapps.com/
Bubble Adventure - Colors
hmmm
http://artleeapps.com/
Bubble Adventure - Colors
Author of Learn Lua for iOS Game Development from Apress ( http://www.apress.com/9781430246626 )
Cool Vizify Profile at https://www.vizify.com/oz-apps
I saw a TV show mention they kids we paying like $100+ for food for animals in apps so they wouldnt die. its not right hey.
http://artleeapps.com/
Bubble Adventure - Colors
What you can do, is to use Purchase Status API, to query statuses of specific purchases, but even then, it is meant to use from your server backend, and not from your app.
http://artleeapps.com/
Bubble Adventure - Colors
Since there is no return policy on Apple Store, it is less of a headache, where as on the google store, it is a problem. A user can buy the app, download the binary .apk then request a refund and the binary is now available for them to crack and use without paying for it. This is primarily a reason for google apps being pirated the most and thereby it being laden with ADs as the ads will show even on pirated apps. I am not sure that you want to deal with the refunds yourself, otherwise you'd be spending more time on the store handling that than anything else.
I understand the need for a refund policy, the app does not work on your device, or not compatible or like most android apps is super slow (compared to the iOS app) and even that earlier you required a credit card for purchases now there are Google Play store cards.
Isn't it funny that people buy $5 or more candy/coffee/cigarettes and what not and throw away the same coz they do not like the taste but want a refund on a $0.99 app...
Likes: phongtt
Author of Learn Lua for iOS Game Development from Apress ( http://www.apress.com/9781430246626 )
Cool Vizify Profile at https://www.vizify.com/oz-apps
I suppose you could put your own disclaimer within our apps stating:
"no refunds will be given, suck lemons dude or dudette which ever the case may be. Thanking you"
Likes: phongtt
http://artleeapps.com/
Bubble Adventure - Colors