Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@purchasely/cordova-plugin-purchasely

Package Overview
Dependencies
Maintainers
0
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@purchasely/cordova-plugin-purchasely

Purchasely is a solution to ease the integration and boost your In-App Purchases & Subscriptions on the App Store, Google Play Store, Amazon Appstore and Huawei App Gallery.

  • 4.4.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

Cordova plugin Purchasely

Purchasely is a solution to ease the integration and boost your In-App Purchase & Subscriptions on the App Store, Google Play Store and Huawei App Gallery.

Installation

cordova plugin add @purchasely/cordova-plugin-purchasely

Usage

Purchasely.startWithAPIKey(
    'API_KEY',
    ['Google'], // list of stores for Android, accepted values: Google, Huawei and Amazon
    null, // your user id
    Purchasely.LogLevel.DEBUG, // log level, should be warning or error in production
    Purchasely.RunningMode.full, // running mode
    (isConfigured) => {
        if(isConfigured) // you can use the SDK like display a paywall or make a purchase
    },
    (error) => {
        console.log(error);
    }
);

Purchasely.presentPresentationWithIdentifier(
    'my_presentation_id', // may be null
    'my_content_id', // may be null
    false, //display in fullscreen mode
    (callback) => {
        console.log(callback);
        if(callback.result == Purchasely.PurchaseResult.CANCELLED) {
            console.log("User cancelled purchased");
        } else {
            console.log("User purchased " + callback.plan.name);
        }
    },
    (error) => {
        console.log("Error with purchase : " + error);
    }
);

🏁 Documentation

A complete documentation is available on our website https://docs.purchasely.com

Keywords

FAQs

Package last updated on 26 Jun 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc