Payment platform Stripe is moving closer to the code editor
No time right now?
Stripe announced an extension for Visual Studio Code. The integration of the payment platform should thus become much more pleasant for developers.
The payment platform Stripe offers APIs for the integration of common payment systems such as Shopify, WooCommerce or NetSuite for various tech stacks such as React, PHP, .NET or iOS.
The new extension for Microsoft’s code editor should enable developers to generate sample code within VS Code, to call up API request logs and to forward events. A new stripe panel in the activity bar offers quick access to code snippets in various programming languages, debugging configurations and extends the command palette with common development workflows.
Contents
Testing functionality and log streams
With the new extension, you can easily forward webhooks to localhost and trigger events for test purposes. This functionality is integrated into the VS Code Debugger so that you can set breakpoints to better navigate through the code. The extension also equips the VS Code Debugger with log streams that you can view directly in the editor.
Payload at a glance
When you click on an event, the extension fights its entire payload in .json
-Format and shows you its properties without having to leave the editor.
More safety
The extension has analysis and linting capabilities. To prevent you from forgetting a hard-coded API key in your codebase, there is a warning in such a case.
Reference book
The Stripe extension also offers a reference work that you can use to look up common code snippets for integration directly within the editor, as well as quick access to the most common areas of the Stripe dashboard. Also new are API Reference Links, which you can use to hover over the associated method.
Feedback? – Bring it on!
The whole thing is still in the beta phase. Other innovations are loud official blog post definitely welcome in planning and feedback. So far nothing is known about plans for plugins for other code editors, in the associated Twitter thread However, JetBrains’ Webstorm had already commented that they would be interested in working together on this.