API Integration with Stripe Webhooks Using Ngrok in Docker Environment
software development
Erik Leon
Aug 8, 2019

DISCLAIMER: ngrok is a paid service. This blog post is not sponsored by or affiliated with ngrok in any way.  What are Stripe Webhooks? Recently, I worked on an agile development project that involved taking payments using Stripe. Not having worked with Stripe before, I imagined a fairly straightforward process of setting up API calls to Stripe to handle what we needed. Turns out, while that is part of the equation, Stripe also offers a powerful feature called webhooks. Webhooks are just a fancy name for API calls made from Stripe to your application. So now we have a two-way…

Magento 2: Create Model using “JOIN”ed SQL Query
software development
Erik Leon
Dec 20, 2018

TL;DR: In the ResourceModel of your entity, override the “_getLoadSelect” function to add “join” statements to the query Magento uses when it loads instances of that model. Similarly, override the “_initSelect” function in the ResourceModel Collection class of your entity. Introduction In general, it’s not good to duplicate data across multiple tables in a database. Any time two or more columns across tables refer to the same real-life business information, it’s easier to introduce bugs that allow the data to become inconsistent. However, there are often problems that require building models, which refer to data in other models stored in…

A Semi-Radical Argument for the VIM Text Editor
software development
Erik Leon
Oct 25, 2018

To many (perhaps to most), VIM is more a meme than a text editor. It has a reputation of being incredibly difficult to learn, with the simplest of tasks requiring arcane commands and combinations of keystrokes. The internet is replete with jokes about how difficult it is to do anything with VIM, including something as fundamental as closing the program. For those who choose to look past the reputation and try to learn to use VIM, the first thing they encounter is that it’s a command-line application. Command line? What is this, 1975? It seems archaic. They open the program…

We use cookies to personalize content and ads, to provide social media features and to analyze our traffic. We also share information about your use of our site with our social media, advertising and analytics partners. Read our cookie policy here

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close