Commit 015c5115 authored by Jose Blaya's avatar Jose Blaya
Browse files

Convert receipt to base64

parent 95f348df
......@@ -222,9 +222,8 @@ class PIAWebServices: WebServices, ConfigurationAccess {
"type": "subscription"
if let receipt = receipt,
Client.configuration.arePurchasesAvailable() {
parameters["receipt"] = receipt
if let receipt = receipt {
parameters["receipt"] = receipt.base64EncodedString()
req(nil, .get, endpoint, useAuthToken: false, parameters, status, JSONRequestExecutor() { (json, status, error) in
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment