keeprocking / pyinapp

In-app purchase validation API wrappers
MIT License
32 stars 13 forks source link

only AndroidTestPurchase error. #2

Closed Rwf9DH3 closed 7 years ago

Rwf9DH3 commented 8 years ago

Only Android TEST purchasing, this lib response error because no "orderId" exists in a receipt .

https://developer.android.com/google/play/billing/billing_testing.html

Note: Test purchases don't have an orderId field. To track test purchases, you use the purchaseToken field instead

I think that this is a cause.

keeprocking commented 7 years ago

What do you mean by "response error"? Do you get a KeyError because there is no key "orderId" in the receipt? Or does it exist in the receipt but it's an empty string and it breaks your validation logic?

keeprocking commented 7 years ago

Fixed in 0.1.2 (thanks @krivyjan for the PR: https://github.com/keeprocking/pyinapp/pull/3).