Pango Platform
HomeConsole
  • What is Pango Developer Platform
  • Getting started
    • Sign up on the Management Console
    • Create a new project
    • Switch projects
    • Change console settings
    • Edit your profile
    • Try out the demo app
    • Keep exploring
    • Deprecation and Sunset
  • Console details
    • Dashboard
      • General
      • Location loading
    • Users
      • User page
    • Active sessions
    • Network
      • Countries
      • Locations
      • Pools
        • Optimal location
        • Location rules
    • Settings
      • General
        • Project config description (JSON format)
          • Server selector (JSON format)
          • Request selector (JSON format)
      • Authentication methods
        • Auth Plugin requirements
      • VPN
        • General
        • VPN Bypass list
        • Client Networks
      • Member
    • Export Data
    • Log
  • SDK
    • Unified VPN SDK for Android
      • Setup
        • Application Setup
        • Proguard Rules, Notification, and Analytics Configurations
        • Backend URL Configuration
      • Usage
        • Initialization
        • VPN Interface
        • Backend interface
      • Features
        • Hydra Protocol
          • Location profile (Hydra only)
        • Custom sdk dependencies
        • Deferred VPN Service Initialization
        • Authentication
        • Client Network List (CNL)
        • OpenVPN transport
        • Wireguard Transport
        • Reconnection strategy
        • Single Protocol SDK
        • Killswitch
        • Domain route via VPN
        • Process route via VPN
        • Process Bypass
        • Domain Bypass
        • Traffic rules
        • VPN Node DNS Configuration
        • Multihop
          • Optimal Location
      • Exceptions
      • Version migration
      • Changelog
    • Unified VPN SDK for Apple
      • Setup
        • Application Setup
        • Network Extension Setup
          • Network Extension Setup for tvOS
        • Backend URL Configuration
      • Usage
        • Single Protocol SDK
        • Unified SDK
        • Logging
        • Decoding Encoded VPN SDK Logs
      • Features
        • Deferred VPN Service Initialization
        • Authentication
        • Wireguard Transport
        • Reconnection strategy
        • Killswitch
        • Domain Bypass
        • Multihop
          • Optimal Location
        • Client Network List (CNL)
        • Domain route via VPN
      • Changelog
      • API Reference
    • IPSEC VPN SDK for Apple
    • Unified VPN SDK for Windows
      • Setup
        • Backend URL Configuration
        • Service command line arguments
        • ARM Platform Support
      • Usage
        • CoreAPI
        • Events
        • Generating a Unique Device Identifier
        • Error processing
        • Pipe Messaging
      • Features
        • Traffic protection
          • Killswitch
          • Prevent IP Leaks
          • Block Local Networks
        • Other
          • Firewall
            • DNS Monitor
            • Process Bypass
            • Domain Bypass
            • Process route via VPN
            • Domain route via VPN
          • Throttling
          • Optimal Location
          • Common issues
        • Hydra Protocol
          • CustomDNS, UserDNS, MultiHop, VpnProfiles
        • OpenVPN Protocol
        • Wireguard Protocol
        • IPSec Protocol
      • Collecting Debug Logs
      • Changelog
    • Unified VPN SDK for Routers
      • SDK. Shared library.
      • Configuration Interface (CI)
        • Unix Domain Sockets CI
        • REST API CI
    • Unified VPN SDK Feature Comparison By Platform
    • Unified VPN SDK
      • Features
        • Personal Bridge
    • Tunnel Vision and Tunnel Crack Prevention
  • REST API
    • Partner API
  • Sample applications
    • Unified VPN SDK demo for Windows
    • Hydra VPN SDK demo for iOS
    • IPSEC VPN SDK demo for iOS
    • Unified VPN SDK demo for Android
    • Hydra VPN SDK demo for OpenWRT
    • OpenVPN configuration file
  • Resources
    • Use cases
      • Public VPN
      • Business VPN
        • Creating a Business VPN Project
        • Wi-Fi Security for Business
      • Application anti-blocking
    • How-to
      • Create a Firebase project for User Authentication
      • AWS CloudFront Distribution of the Platform URL
      • How can I get Shared Secret key from iTunes Connect for In-App Purchase
  • FAQ
    • General
      • VPN Platform Flow
      • What data is collected by the Platform?
      • What analytic data is collected by your SDK?
      • How the Platform restricts access to our data?
      • Why DNS Leak tests often indicate positive result?
      • Do we need to perform endpoint health checks?
      • How is the VPN exit node found?
      • How are streams re-marked if VPN is enabled/disabled on an active flow?
      • Is there a maximum number of supported devices?
      • Are both IPv4 and IPv6 supported?
      • What is the MTU of the tunnel?
      • Are any redundancy measures in terms of reliability provided?
      • Is there any load balancing?
      • Do you block broadcast and multicast to/from the VPN?
    • List of Open Source libs
Powered by GitBook
On this page
  • Payment methods in your project
  • Apple
  • Google
  • Huawei
  • Custom methods

Was this helpful?

  1. Console details
  2. Settings
  3. Payment methods

Supported payment methods

Last updated 3 years ago

Was this helpful?

Payment methods in your project

Your project can use more than one payment method

The Platform supports the following payment methods:

Apple

apple - this method supports Apple In-App subscription. It is the standard method for iOS and macOS applications.

Required steps:

  1. Make a Shared Secret key from iTunes Connect for In-App purchases. See the instruction:

  1. Add the "apple" method to your project settings. Example of payment method settings:

{
  "url": "https://buy.itunes.apple.com/verifyReceipt",
  "bundle": "com.youapps.vpnapp",
  "password": "3e646cc01cd56ce1b051888bacc0ffa4"
}

"URL" - URL for purchase receipt verification. Standard URL - "".

"bundle" - the bundle of your iOS or macOS application. You can found it in your .

"password" - Shared Secret key from iTunes Connect for In-App Purchase (see step 1)

google - this method supports Google In-App subscription. It is the standard method for Android applications published in Google Play Store.

Required steps:

  1. Create an API project from the API Access link in your Google Play console

  2. Make a new service account, save the JSON private key that gets generated. You'll need to take this file to your server.

  3. Press Done in the Play console's service account section to refresh and then grant access to the service account.

  4. Use your platform's client library to build a service interface and directly read the result of your purchase verification.

  5. Add the "google" method to your project settings. Example of payment method settings:

{
  "credentials": {
    "type": "service_account",
    "project_id": "api-3333333333333333333-333333",
    "private_key_id": "3333333333333333333333333333333333333333",
    "private_key": "-----BEGIN PRIVATE KEY----- MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQC3eWGUsgiwXzEG ...= -----END PRIVATE KEY----- ",
    "client_email": "perchaseverification@api-8590733015157495171-576381.iam.gserviceaccount.com",
    "client_id": "110405678044800470496",
    "auth_uri": "https://accounts.google.com/o/oauth2/auth",
    "token_uri": "https://accounts.google.com/o/oauth2/token",
    "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
    "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/perchaseverification%40api-1111111115157495171-511181.iam.gserviceaccount.com"
  },
  "application": "AnchorFree-Backend/1.0"
}

"application": "AnchorFree-Backend/1.0" - this parameter is constant.

"credentials" - this JSON block should be replaced with your JSON private key (see step 2).

huawei - this method supports Huawei In-App subscription. It is the standard method for Android applications published in the Huawei Store.

Necessary steps:

  1. Set up Huawei IAP. Follow the official guideline:

  1. Open theagconnect-services.json file. You need to find client_id and client_secret for the next step.

  2. Add the "huawei" method to your project settings. Example of payment method settings:

{
  "url": "https://subscr-dre.iap.hicloud.com",
  "client_id": "101123456",
  "client_secret": "8970db64cd9f11234567890c98eb80977393aadf553517aff812345678908bff"
}

"client_id" - client id, can be found in agconnect-services.json

"client_secret" - client secret, can be found in agconnect-services.json

  1. Send a purchase request

    4.1. Make a purchase as it is described in the doc:

4.2. Parse the result and send the purchase to the server

val purchaseResultInfo: PurchaseResultInfo = Iap.getIapClient(activity).parsePurchaseResultInfoFromIntent(data)
backendApi.purchase(purchaseResultInfo.inAppPurchaseData, "huawei", callback)

If you use another Payments service, we can make a plugin and support your service too. A new service can be one of the popular public services or your own custom service.

Requirements for the Plugin of a custom service on your side:

Please contact us with any questions about the payment plugins

Google

Get a google API client library for your server platform from /.

Huawei

"URL" - URL for purchase receipt verification. The standard URL of Huawei Store is "".

Custom methods

https://developers.google.com/api-client-library
Payment methods
https://subscr-dre.iap.hicloud.com
Payment methods
Payments Plugin requirements
How can I get Shared Secret key from iTunes Connect for In-App Purchase
https://buy.itunes.apple.com/verifyReceipt
appstoreconnect.apple.com