1.0.4 • Published 1 year ago
skrape-payment v1.0.4
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 |