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

cordova-stripe-intent

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cordova-stripe-intent

Stripe Intent Plugin for Cordova

  • 0.0.3
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

cordova-plugin-stripe-intent

Cordova Stripe Plugin specifically for the new Intent API, this plugin handles 3DS authentication and general payments using Strong Customer Authentication.

Why?

There is currently no way to integrate a Hybrid Ionic / Cordova application with Stripe for payment intents (Required for SCA). This fixes that.

Requirements

Currently only on Android, this plugin requires a minimum of cordova@9 and cordova-android@8. I have been unable to test older versions of Android. Therefore if you want to try it, feel free.

How do I get this working?

Open a bash / cmd in your Ionic root folder and do the following:

ionic cordova plugin add cordova-stripe-intent

Or, download the latest release and unpack it into folder and then do the following

ionic cordova plugin add ../FolderName

You can then build you app, and fingers crossed it will work fine.

Methods

addBackendUrl(successCallback, errorCallback)

window.cordova.plugins.StripeIntent.addBackendUrl("BACKEND_URL_HERE",function(test){console.log(test)},function(test){console.log(test)})

addPushableKey(successCallback, errorCallback)

window.cordova.plugins.StripeIntent.addPushableKey("KEY_HERE",function(test){console.log(test)},function(test){console.log(test)})

createIntent(successCallback, errorCallback)

This method is for creating the activity. It'll give you an error callback if you haven't added a pusable key or backendurl.

window.cordova.plugins.StripeIntent.createIntent("",function(test){console.log(test)},function(test){console.log(test)})

What is the backend?

You can find the backend code HERE

Issues

if you have an issue, please feel free to create one.

Todo

iOS implementation.

Keywords

FAQs

Package last updated on 20 Jan 2020

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