just1and0 / React-Native-Paystack-WebView

💸💳The package allows you accept payment using paystack and guess what, it doesn't require linking! just install and begin to use 🚀
https://paystack.com
MIT License
153 stars 102 forks source link

the ref Usage is not working #80

Open sheggietyn opened 2 years ago

sheggietyn commented 2 years ago

i wanted to use my own personal button so I tried the Ref usage in the documentation but it keeps saying unexpected token no matter what I change

the issue is from here

const paystackWebViewRef = useRef();

sheggietyn commented 2 years ago

i was able to solve the ref issue but these are the new problem I observed:

1 billingName: billing name does not send a billers Name to Paystack, I have tried a lot of ways it didn't work, likewise the Billing phone number too

coolheaded1 commented 2 years ago

i was able to solve the ref issue but these are the new problem I observed:

1 billingName: billing name does not send a billers Name to Paystack, I have tried a lot of ways it didn't work, likewise the Billing phone number too

Kindly provide solution here....

kvngcheerio commented 2 years ago

Use const paystackWebViewRef = useRef(paystackProps.PayStackRef); instead of const paystackWebViewRef = useRef<paystackProps.PayStackRef>();