Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues Implementing paystack using PaystackWebView or RNPaystack #51

Open
ihemegbulam opened this issue Jul 3, 2020 · 0 comments
Open

Comments

@ihemegbulam
Copy link

ihemegbulam commented Jul 3, 2020

We are using expo for development.

Implementing using PaystackWebView

with usage 2 from (https://www.npmjs.com/package/react-native-paystack-webview):

<PaystackWebView
buttonText="Pay Now"
showPayButton={false}
paystackKey="your-public-key-here"
paystackSecretKey="your-secret-key-here"
amount={120000}
billingEmail="[email protected]"
billingMobile="09787377462"
billingName="Oluwatobi Shokunbi"
ActivityIndicatorColor="green"
SafeAreaViewContainer={{marginTop: 5}}
SafeAreaViewContainerModal={{marginTop: 5}}
handleWebViewMessage={(e) => {
// handle the message
}}
onCancel={(e) => {
// handle response here
}}
onSuccess={(e) => {
// handle response here
}}
autoStart={false}
refNumber={uuid()} // this is only for cases where you have a reference number generated
renderButton=((onPress) => {

Pay Now

})
/>

This is the result:

WhatsApp Image 2020-07-03 at 4 39 47 PM

Implementing using RNPaystack

This is the result:

WhatsApp Image 2020-07-03 at 4 26 16 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant