Skip to content

banked/banked-react-native-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rn-banked-checkout

Version

The Banked React Native component that offers an interface for processing a payment session created using the Banked API.

Installation

Install the package with

npm install @banked/rn-banked-checkout
# or
yarn add @banked/rn-banked-checkout

Link the dependencies

react-native link @banked/rn-banked-checkout
# or
yarn add @banked/rn-banked-checkout

Usage

Import the Checkout component

import Checkout from '@banked/rn-banked-checkout';

Add the Checkout component to your code

<Checkout paymentId = {YOUR_PAYMENT_ID}
                  apiKey = {YOUR_CLIENT_KEY}
                  onCancel={YOUR_CANCEL_HANDLER}/>

YOUR_PAYMENT_ID is the id you received when creating the payment (see https://developer.banked.com/reference#getting-started-with-your-api)
YOUR_CLIENT_KEY is the key you can retrieve from the console: https://console.banked.com/client_keys

License

Banked