Follwing instructions
and
I'm trying to communicate with apple's sanbox server from my VPS with code like below
Still gettins 21002 that means: The data in the receipt-data property was malformed or the service experienced a temporary issue. Try again (obwiously request is not-well formed)
Any help appreciated.
enhanced receipts for subscriptions, purchase
Hello, I got mail from apple. https://itunespartner.apple.com/en/apps/news/45333106?sc_cid=NSL-AP-ENREC It seems apple improves the possibilties to handle subscriptions. Is it possible to use these informations in b4i. Can someone give my a hint how to get this.
www.b4x.com
requestBody | Apple Developer Documentation
The JSON contents you submit with the request to the App Store.
developer.apple.com
Still gettins 21002 that means: The data in the receipt-data property was malformed or the service experienced a temporary issue. Try again (obwiously request is not-well formed)
Any help appreciated.
B4X:
Private Sub DownloadApple (numer As String)
Dim B64 As Base64
Dim url As String = "https://sandbox.itunes.apple.com/verifyReceipt"
Dim Job As HttpJob
Job.Initialize("fcm", Me)
Dim m As Map
m.Initialize
m.put ("receipt-data", B64.EncodeStoB( numer,"UTF8"))
m.put("password", SubskrypcjaSPLKluczAPPLE)
Dim jg As JSONGenerator
jg.Initialize(m)
Job.PostString(url, jg.ToString)
Job.GetRequest.SetContentType("application/json")
End Sub