New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

getflick-react-native

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

getflick-react-native

A payment sdk for react native

latest
npmnpm
Version
0.1.5
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Flick Payment SDK for React Native

A powerful and secure payment SDK for React Native applications that enables seamless integration of payment processing capabilities.

Installation

npm install getflick-react-native

Usage

Basic Implementation

Using FlickPound Component

import { FlickProvider, FlickPound } from 'getflick-react-native';

function PoundPaymentScreen() {
  const handleError = (error) => {
    console.error('Payment Error:', error);
    // Handle error appropriately
  };

  const handleSuccess = (data) => {
    console.log('Payment Success:', data);
    // Handle successful payment
  };

  return (
    <FlickProvider
      environment="production"
      apiKey="YOUR_API_KEY"
      onError={handleError}
      onSuccess={handleSuccess}
    >
      <FlickPound
        config={{
          amount: 500, // Amount in pence
          cust_email: 'customer@example.com',
          currency: 'GBP',
          redirectUrl: 'payer://confirm-send',
        }}
      />
    </FlickProvider>
  );
}

Configuration Options

FlickProvider Props

PropTypeRequiredDescription
environment'production' | 'sandbox'YesThe environment to use for payments
apiKeystringYesYour Flick API key
onErrorfunctionYesCallback for payment errors
onSuccessfunctionYesCallback for successful payments

FlickPound Props

PropTypeRequiredDescription
amountnumberYesPayment amount in pence
cust_emailstringYesCustomer email address
redirectUrlstringNoRedirect url after authorization

Minimum Amounts

  • GBP: Minimum 5.00 GBP (500 pence)

License

MIT

Keywords

react-native

FAQs

Package last updated on 25 Apr 2025

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