question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

I tried using this library with react-native expo. After setting up all the configuration when I load the webview it keeps showing the loader without any feedback. This is the example I used

<View style={{flex: 1}}>
        <PaystackWebView
          showPayButton={false}
          paystackKey="MY_OWN_KEY"
          amount={120000}
          billingEmail="paystackwebview@something.com"
          billingMobile="09787377462"
          billingName="Oluwatobi Shokunbi"
          ActivityIndicatorColor="green"
          SafeAreaViewContainer={{marginTop: 5}}
          SafeAreaViewContainerModal={{marginTop: 5}}
          onCancel={() => {  alert('cancelled'); }}
          onSuccess={() => {  alert('success'); }}
           ref={childRef}
        /> <TouchableOpacity onPress={()=> childRef.current.StartTransaction()}>
             <Text>pay now</Text>
						<TouchableOpacity/>
      </View>

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:49 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
walexanderoscommented, Jun 7, 2020

Hello Everybody,

For anyone experiencing the blank screen issue after the indicator, i resolve mine with the following steps:

image

In the above screen shot from the RN PAYSTACK WEBVIEW module file, channel prop (props.channels) is being assigned to the paystack channels configuration option which accepts only array values ([‘card’, ‘bank’, ‘ussd’, ‘qr’, ‘mobile_money’]).

image

image

So channel props doesn’t have a default value neither does it have a user defined value. All i had to do was to assign a channel value and it worked.

image

For some unknown reason, i was getting a “Transcation could not start” but after assigning props value, but i couldn’t just continue troubleshooting so i had to assign values directly to the config options (currency, channels) in the module file.

I hope this can be of help to others too.

File Location: $…\node_modules\react-native-paystack-webview\index.js

0reactions
saladinjakecommented, Jun 9, 2020

seems to me paystack api wont let this transaction start. i read the docs and found a clue to make it work and it scaled thru. thanks for all the digging deep paystack-webview made me do… i made it work with no issues this time. try making sure the webview renders the paystack-webview once and not multiple times. find a way to communicate to a dedicated server having the paystack code that runs when u inject into the script loaded into webview and … just make it work. thanks guys. good luck

Read more comments on GitHub >

github_iconTop Results From Across the Web

Loading screen - Wikipedia
A loading screen is a screen shown by a computer program, very often a video game, while the program is loading (moving program...
Read more >
Loading Screen designs, themes, templates and ... - Dribbble
Loading Screen. 617 inspirational designs, illustrations, and graphic elements from the world's best designers. Want more inspiration?
Read more >
Loading Screen Images - Adobe Stock
Search from thousands of royalty-free Loading Screen stock images and video for your next project. Download royalty-free stock photos, vectors, ...
Read more >
Loading screen Images | Free Vectors, Stock Photos & PSD
Find & Download Free Graphic Resources for Loading Screen. 2000+ Vectors, Stock Photos & PSD files. ✓ Free for commercial use ✓ High...
Read more >
Loading Screen - Retro Gaming Consoles, Cartridges ...
Buy NES, SNES, N64 classic games and Funko Pops online and in-store purchase. Visit Loading Screen Tillsonburg for all your gaming needs.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found