iOS Question need help with receipt validation

tufanv

Expert
Licensed User
Longtime User
Hello

I need to validate in app purchases on my php script on the server.
I tried many things that i read from the internet but only status code i get is 21002 from apple validation servers. Acording to further investigation
only solution i could find on the internet is

"
NSString *receiptDataString = [[NSString alloc] initWithData:self.receipt
encoding:NSASCIIStringEncoding];
replace with

NSString *receiptDataString = [[NSString alloc] initWithData:self.receipt
encoding:NSASCIIStringEncoding];
receiptDataString = [[[NSString stringWithFormat:mad:"%@",receiptDataString] dataUsingEncoding:NSASCIIS"


people say that we must use base64 while sending the data from transaction identifier i also tried that with :
s.EncodeBase64(kek.StringToBytes(sos,"UTF-8"))

but i still get
Response from server: string(63) "{"status":21002, "exception":"java.lang.IllegalStateException"}"

as json. Anyone has any idea ?

ty
 
Top