libgdx / gdx-pay

A libGDX cross-platform API for InApp purchasing.
Apache License 2.0
225 stars 83 forks source link

gdx-pay (iOS) transaction.getTransactionData() == null #69

Closed LombrozoV closed 8 years ago

LombrozoV commented 8 years ago

Hello! I test in-app purchase service in my application (for ios) . Tell me please what's wrong: I made a purchase, it was successfully. But validation at the server not passed because "transaction.getTransactionData() == null".

noblemaster commented 8 years ago

I am not sure if that's actually implemented yet for the iOS backend? Maybe some of the iOS-backend developers are able to comment?

logiclove commented 8 years ago

I looked at the code and the Base64 decoder seems to be the wrong one. I recommend to use java.util.Base64

noblemaster commented 8 years ago

Base64 has different implementations (i.e. slightly different characters): https://en.wikipedia.org/wiki/Base64#Implementations_and_history

Just make sure to use the corresponding decoder/encoder!