shahriar-shojib / react-bkash

React component for accepting bkash payments! [painlessly]
MIT License
54 stars 13 forks source link

useState is getting null in useBkash hook next.js #26

Open mtushar53 opened 2 years ago

mtushar53 commented 2 years ago

When trying to integrate bKash in next.js site, it is showing error in useBkash hook that useState is getting null.

TanvirMahin24 commented 2 years ago

Facing the same issue with React.js. :(

shahriar-shojib commented 2 years ago

please provide a repo where the issue can be reproduced.

Prantho-das commented 1 year ago

When trying to integrate bKash in next.js site, it is showing error in useBkash hook that useState is getting null.

bro keep it in cookie and then i just solve like it

mhasan320 commented 1 year ago

Facing same issue. Anyone helps me to solve this problem???? TypeError: Cannot read properties of null (reading 'useState')

Screenshot 2023-06-19 at 1 13 06 PM

mtushar53 commented 1 year ago

Hello @mhasan320, I tried to fix this issue but failed. Finally, I have implemented bkash payment gateway using bkash script file. You can try adding the bkash script file to your project manually.