0.3.13 • Published 2 years ago

@murrple_1/react-native-adyen v0.3.13

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

React Native Adyen

A React Native module to handle interfacing with the Adyen iOS and Android Drop-In SDKs, written in Typescript, Swift and Kotlin.

Description

Adyen is a platform for accepting payments, using a variety of methods (like Credit Cards, Google Pay, Apple Pay, etc.). They have provided SDKs for Android and iOS.

This library attempts to provide a simple API for React Native that presents the Drop-In component.

Getting Started

Dependencies

Android min Version: 28 // TODO comfirm

iOS min Version: 12.0

Installing

Add this project as a dependency to your React Native project

With Yarn

yarn add @murrple_1/react-native-adyen

With NPM

npm install --save @murrple_1/react-native-adyen

iOS

Add to your UIApplicationDelegate:

import Adyen

// ...snip...

func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey: Any] = [:]) -> Bool {
  RedirectComponent.applicationDidOpen(from: url)
  return true
}

Executing program

The library exports only 2 functions:

async function startPayment(options: StartPaymentOptions): Promise<string>;

and

async function _getPaymentMethodsJsonStr(
  options: _GetPaymentMethodsJsonStrOptions,
): Promise<string>;

Help

  • Making a note here (though I'm not sure if it is a common problem)...

Make sure your Android styles.xml has a theme like:

<style name="AppTheme" parent="Theme.MaterialComponents.Light.DarkActionBar">

Authors

Version History

// TODO we haven't yet release a usable version, please consider any releases ALPHA for now

License

This project is licensed under the MIT License - see the LICENSE file for details

Acknowledgments

Many inspirations from mkharibalaji/react-native-adyen-payment. Honestly, this project wouldn't have been started if that project a) supported Typescript, b) was more easily buildable for development in my environment

0.3.13

2 years ago

0.3.12

3 years ago

0.3.11

3 years ago

0.3.10

3 years ago

0.3.9

3 years ago

0.3.8

3 years ago

0.3.7

3 years ago

0.3.0

3 years ago

0.3.6

3 years ago

0.3.5

3 years ago

0.3.2

3 years ago

0.3.1

3 years ago

0.3.4

3 years ago

0.3.3

3 years ago

0.2.0

3 years ago

0.1.3

3 years ago

0.1.0

3 years ago

0.1.1

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago