-
Notifications
You must be signed in to change notification settings - Fork 536
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature request + Bug] Payload mismatch error when using promo code #291
Comments
I don't use react native, so my apologies if this is a dumb question, but couldn't you just not pass a payload when using promo codes? I ran into an issue with payloads on my project because I didn't realize this app takes my developer payload and prepends some text to help it distinguish between purchases and subscriptions. |
No, this problem has nothing to do with react native, i tried passing empty developer payload but the lib is generating a developer payload:
So even I pass it null, you are generating a random string and compare it with what google returns, and since they return null, I never get past the error. |
And to correct the misunderstanding, the react native lib is using this lib, I just mentioned the react native lib so if anyone else using it and having the same problem, now he knows hes not alone. |
@serggl is going to have to comment. I know he uses those strings to help identify the type of product being purchased later in the flow. Is there some way to uniquely identify products purchased with a promo code? Or do you think simply the absence of any payload would be sufficient? Edit: I only mentioned react native because I wasn't sure if maybe it was adding some payload under the hood when it uses this lib. |
Well I read here that validation should not be mandatory
And I don't know any way to identify if purchase was made with a promo code. So I think payload validation should be optional for those who want to support promo codes. |
well, we dont actually use it for security purposes, but I agree that the current (original) implementation it is now causing issues with promo codes. |
Well you can keep generating that string, all I need is an option to skip validation |
stay tuned, on the way |
please try upgrading to 1.0.44 |
Could you verify that skipping only validation works for you with promo codes? Because I was also getting signature mismatch error, which I also had to skip... |
When using promo code, iap does not return a developer payload, so please can we have an option to skip the validation? Because at the moment I'm having serious problem with react-native-billing which uses this lib, and because of the validation of developer payload it passes when using promo code.
The text was updated successfully, but these errors were encountered: