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 onSuccess callback is not called on successful bank authorization. The modal just closes. #90

Open Caleb-Omoijuanfo opened 2 years ago

Caleb-Omoijuanfo commented 2 years ago

Describe the bug The success callback is not called on successful bank authorization. The modal just closes. Card is charged but no value for the customer cos logic has been implemented in the onSuccess callback.

To Reproduce Steps to reproduce the behavior:

  1. Select card ending with 409 and complete the steps. (Use an iphone). Seems to work on android.

Expected behavior

  1. OnSuccess callback should be called and business logic implemented.
Dverybest commented 2 years ago

I'm getting the same issue, any fix for this?

alexander01202 commented 2 years ago

Still no fix for this?? Has anyone figured this out??

StephenOkeleke97 commented 1 year ago

the official paystack website advices that we use web hooks to confirm payment before providing value to the customer. The webhook feature is not available in this library unfortunately. Perhaps you can make a feature request where you can pass in a url to your backend server to be called when a transaction is successful