Search This Blog

Friday, October 30, 2020

background 100% center css

Very simple apply body or container div

Monday, October 26, 2020

Square Payment Form PHP -- Customer linked to Payment Order

After lot of bang bang. I could find a way to do 3 tasks with Square Payment Form in PHP

  1. Check from Square Customer Director if USER EXISTS based on PHONE number - If yes Get "CUSTOMER ID" and MAKE PAYMENT
  2. If Customer does not exists in Directory -- CREATE A NEW USER -- GO & GET --> find CUSTOMER ID --> & MAKE PAYMENT
  3. Get PAYMENT ID & SAVE IT IN MySQL Database

PS : This is very crud way of scripting (hahaha). Had to find a way to get this project done. I found out simple way by using GOTO statement. Hope it will help you of my 3 weeks of in between projects and delivered.

ENV file -- env (without extension -- plain text file)

Genarate Square Idempotency Key CLASS) - square-functions.php

HTML FORM - paynow.php

PROCESS PAYMENT Page --- process-payment.php

Thursday, October 22, 2020

Create a New Customer in Square Payment Gateway

This script helps you to Create a new customer for your references to do business with. Open in API

This script Requires ENV script file (without FILE EXTENSION) at root -- env
Please Change your API CREDENTIALS accordingly



Add New Customer Form Page -- new-customer.php



Save New Customer to SQUARE -- new-customer.php

Sunday, October 18, 2020

SQUARE Paypement API -- is fucking stupid

Tell you what!!! Square SDK and APIs are so fucking stupid, do they even have working script example???

Nowadays we have many frameworks & CMS plugins --- if you keep popping "AUTHENTICATION_ERROR" -- how the fuck in your cunt are we gonna get it right & deliver product solution????

All SQUARE have for you is fucking WALK THROUGH in NODE???

can you host THIS NODE script on SHARED LINUX HOSTING???

who the fuck you think is kidding -- mother fuckers???

POST output -- all error

USUAL FUCKING SUSPECT --- which these fucking square developer section or ZERO CUSTOMER CARE never explains you where the fuck YOU HAVE GONE WRONG -- WHAT ARE THEY MOTHER FUCKERS AT SQUARE ARE ARROGANT ABOUT???.

content-wide advt