Comments (2)
Hey @Sm00g15, onPaymentDetected and onChargeSuccess are invoked from the iframe inside ".coinbase-commerce-iframe-container". I see that you are removing the ".coinbase-commerce-iframe-container" when onPaymentDetected is invoked -- this is why onChargeSuccess is not invoked.
If you don't remove it, then onChargeSuccess should be called when the charge successfully goes through. Alternatively, you can add webhooks from the Dashboard Settings page (if you don't want to keep the container alive until the charge is successfully confirmed).
Hope this helps!
from react-coinbase-commerce.
AHA! awesome! Thanks so much
from react-coinbase-commerce.
Related Issues (20)
- My project uses latest version of react. HOT 2
- Refused to display 'https://commerce.coinbase.com/' in a frame because it set 'X-Frame-Options' to 'deny'. HOT 5
- React -Element type is invalid on production HOT 1
- Checkout iframe not sending payment_detected and charge_confirmed window messages
- Popup does not appear HOT 1
- "Element type is invalid" error when rendering button HOT 3
- Clicking the "Close" button in the Coinbase Commerce modal navigates the page back
- Make Button component overridable with a component from a prop HOT 1
- Changelog?
- Coinbase Commerce modal fails to load b/c X-Frame-Options header is set to DENY HOT 4
- Coinbase login doesn't work in Safari or on iOS HOT 2
- 'X-Frams-Options' is set to 'Deny' when using chargeId in <CoinbaseCommerceButton> component HOT 2
- Sorting by market cap does not work - CTC below SUN
- Not actively maintained? HOT 4
- Add support for React ^17.x HOT 2
- `onModalClosed` doesn't work HOT 9
- iframe uncentered
- `onChargeSuccess` not firing callback HOT 5
- chargeId not working with `CoinbaseCommerceButton` HOT 1
- Custom metadata not working for Payment Button HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-coinbase-commerce.