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

Example code missing? #32

Closed
abel-123 opened this issue May 7, 2021 · 3 comments
Closed

Example code missing? #32

abel-123 opened this issue May 7, 2021 · 3 comments
Assignees

Comments

@abel-123
Copy link

abel-123 commented May 7, 2021

The link to the example (on pub.dev) is broken. The link:
https://github.com/flutter-stripe/flutter_stripe/blob/main/example/lib/main.dart

Example code seems to be missing from github?

@jamesblasco
Copy link
Member

Thank you for submitting this issue. I will update the readme with the new url later today 🙂

https://github.com/flutter-stripe/flutter_stripe/tree/main/stripe/example

@jamesblasco jamesblasco self-assigned this May 7, 2021
@abel-123
Copy link
Author

Thanks! Running the example code now and I'm able to successfully execute test payments with webhooks. If I try to use the 'no_webhook' example the server gives an error:

Unknown error occurred TypeError: Cannot read property 'id' of undefined
at C:\Users\Abel\AndroidStudioProjects\flutter_stripe-main\stripe\example\server\build\index.js:354:64
at step (C:\Users\Abel\AndroidStudioProjects\flutter_stripe-main\stripe\example\server\build\index.js:33:23)
at Object.next (C:\Users\Abel\AndroidStudioProjects\flutter_stripe-main\stripe\example\server\build\index.js:14:53)
at fulfilled (C:\Users\Abel\AndroidStudioProjects\flutter_stripe-main\stripe\example\server\build\index.js:5:58)
at processTicksAndRejections (internal/process/task_queues.js:93:5)

I'm using the example unchanged. Did a bit of testing and the payment method is created successfully, but the paymentIntentResult is never generated. The http.post in callNoWebhookPayEndpointMethodId seems to trigger the error...

@jamesblasco
Copy link
Member

This example url should be fixed in the next version. Related to your last comment, I think it might be the same as #21. Feel free to comment about it there. I will take a look soon

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