The official react native ui library for processing payments with Skrape
Install skrape-payment with npm
npm install skrape-payment
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",
},
});
}
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 |