Commit 11f216e1 authored by Jose Blaya's avatar Jose Blaya
Browse files

check if purchases are enabled

parent 81a2f8e2
...@@ -222,7 +222,8 @@ class PIAWebServices: WebServices, ConfigurationAccess { ...@@ -222,7 +222,8 @@ class PIAWebServices: WebServices, ConfigurationAccess {
"type": "subscription" "type": "subscription"
] ]
if let receipt = receipt { if let receipt = receipt,
Client.configuration.arePurchasesAvailable() {
parameters["receipt"] = receipt parameters["receipt"] = receipt
} }
......
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