skrape-payment

1.0.4 • Public • Published

Skrape payment

The official react native ui library for processing payments with Skrape

Installation

Install skrape-payment with npm

  npm install skrape-payment

Usage/Examples

import { StatusBar } from "expo-status-bar";
import { StyleSheet, Text, View } from "react-native";
import { SkrapePayBtn } from "skrape-payment";


export default function App() {
  return (
    <View style={styles.container}>
      <SkrapePayBtn
        apiKey="skr_test_7e7bf500-cbd5-4fdc-bb7e-5cebb8d33bba"
        customStyle={styles.button}
        amount="1000"
        title="pay book"
        description="working v2 shsh shsh" />
    </View>
  );
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    backgroundColor: "#fff",
    alignItems: "center",
    justifyContent: "center",
  },
});

}

API Reference

Parameter Type Description
apiKey string Required. Your API key either test or live
customStyle object Optional. Add custom styling on the button
amount string Optional. do not provide if you want users to enter amount
title string Required. Title of your product
description string Required. Some description about your product

Readme

Keywords

none

Package Sidebar

Install

npm i skrape-payment

Weekly Downloads

2

Version

1.0.4

License

ISC

Unpacked Size

68.4 kB

Total Files

12

Last publish

Collaborators

  • scottlexium