Skip to main content

Posts

Showing posts from March, 2021

Squareup API Integration PHP. List squareup customers using php

  Step 1: Download Composer and dependencies This application requires the PHP Square SDK as well as DotEnv for reading environment variables, which you install via Composer. First, download Composer in this directory with the instructions on  this page . After you've downloaded Composer, install the dependencies with the following command from this directory: php composer.phar install Step 2: Get your credentials and set the redirect URL: Open the  Developer Dashboard . Choose  Open  on the card for an application. At the top of the page, set the dashboard mode to  Sandbox . Choose  OAuth  in the left navigation pane. The OAuth page is shown. In the  Sandbox Redirect URL  box, enter the URL for the callback you will implement to complete the OAuth flow:  http://localhost:8000/sandbox_callback.php This example uses localhost in the Square Sandbox. You can use HTTP for localhost but an actual web server implementation must use HTTPS....

How to create wordpress plugin manually

  Create your first plugin in five simple steps I'm not kidding. You can create a WordPress plugin in five simple steps. Let me show you how… 1. FTP into your site The first thing you'll need to do is  access your site via FTP  using the FTP program of your choice (mine is Coda). If you're not familiar with FTP, I recommend you read up on that before moving forward. 2. Navigate to the WordPress plugins folder Once you've accessed your site via FTP, you'll need to navigate to the WordPress plugins folder. That folder is almost always located at /wp-content/plugins. 3. Create a new folder for your plugin Now that you're in the plugins folder it's time to create a folder for yours! Go ahead and create a new folder, giving it a unique name using lowercase letters and dashes such as my-first-plugin. Once you've done that, enter your new folder and move on to the next step. 4. Create the main PHP file for your plugin Next, you'll need to create the main fi...