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

Consider adding Error Callbacks #2

Open
EddyVerbruggen opened this issue Oct 2, 2014 · 1 comment
Open

Consider adding Error Callbacks #2

EddyVerbruggen opened this issue Oct 2, 2014 · 1 comment

Comments

@EddyVerbruggen
Copy link
Contributor

Hi,

While creating a demo app I passed in some bogus values to the native code which resulted in errors on iOS and Android. However, I was not notified of these errors because they're sent to the error callback but the JS API does not support passing in an error callback function. Would be nice if the JS API was extended with an erorrcallback.

Maybe adding an inline function(){console.log(err)} instead of null here is a good start.

@StephenForte
Copy link
Owner

Good idea, we'll get on it. ;)

On Thu, Oct 2, 2014 at 2:06 PM, Eddy Verbruggen [email protected]
wrote:

Hi,

While creating a demo app I passed in some bogus values to the native code
which resulted in errors on iOS and Android. However, I was not notified of
these errors because they're sent to the error callback
https://github.com/StephenForte/Stripe-Cordova/blob/master/src/ios/CDVStripe.m#L24
but the JS API does not support passing in an error callback function.
Would be nice if the JS API was extended with an erorrcallback.

Maybe adding an inline function(){console.log(err)} instead of null here
https://github.com/StephenForte/Stripe-Cordova/blob/master/www/customers.js#L7
is a good start.


Reply to this email directly or view it on GitHub
#2.

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

2 participants