UNPKG

react-native-paysofter

Version:

This is a React Native package for integrating Paysofter payment gateway into your React Native application.

88 lines (82 loc) 2.07 kB
// ConfirmPaysofterPromise.js import React from "react"; import { View, Text, TouchableOpacity, StyleSheet, Linking, } from "react-native"; import { Card } from "react-native-paper"; const ConfirmPaysofterPromise = () => { const handleConfirmPromise = () => { Linking.openURL("https://paysofter.com/promise/buyer"); }; return ( <View style={styles.container}> <Card style={styles.card}> <Card.Content> <View style={styles.innerContainer}> <Text style={styles.title}>Promise successfully created!</Text> <Text style={styles.description}> Is Promise fulfilled? Check your email or login to your Paysofter account to check out the Promise status to confirm. </Text> <View style={styles.formGroup}> <TouchableOpacity onPress={handleConfirmPromise}> <Text style={styles.roundedPrimaryBtn}> Confirm Promise (at Paysofter) </Text> </TouchableOpacity> </View> </View> </Card.Content> </Card> </View> ); }; const styles = StyleSheet.create({ container: { flex: 1, justifyContent: "center", alignItems: "center", padding: 5, }, innerContainer: { alignItems: "center", }, title: { fontSize: 24, marginBottom: 20, textAlign: "center", }, description: { fontSize: 16, marginBottom: 20, textAlign: "center", }, button: { backgroundColor: "#007bff", padding: 15, borderRadius: 25, alignItems: "center", }, buttonText: { color: "#fff", fontSize: 16, }, roundedPrimaryBtn: { backgroundColor: "#007bff", color: "#fff", padding: 10, borderRadius: 25, justifyContent: "center", alignItems: "center", textAlign: "center", }, formGroup: { padding: 5, alignItems: "center", }, }); export default ConfirmPaysofterPromise;