Posts

Showing posts with the label class

PHP Payment Library for Paypal, Authorize.net and 2Checkout

If you are like me, whenever you need to work with a 3rd party API or a gateway, you’d first search in Google for a possible wrapper for it in PHP. When it comes to supporting payment gateways, you get bunch of libraries in the search results who are fundamentally different. Some of them are old PHP 3/4 ones, some are new, some may need PEAR, etc. As they were not required together in one single project, I used them whenever needed. But in one project, I needed them all. I thoughts it’s a chance and decided to stop using them and wrote my own ones where I can use the same methods for all the gateways So, here is an abstract PaymentGateway library which is being extended to be used for three popular payment gateways ( Paypal , Authorize.net , and 2Checkout ) in order to provide you with a similar way of using them. Note that the libraries are for basic usage only and do not contain options for recurring payments. Without much babble, let’s see a few examples of how you ca...

How to write a java program

Dear friends,                  Java technology allows you to work and play in a secure computing environment.  Java allows you to play online games, chat with people around the world, calculate your mortgage interest, and view images in 3D, just to name a few.  Now to write a program java first Class test         {         public static void main(String[] args)             {              System.out.println("Hello! this is my first java program.");             }         } Save this as test.java open your command prompt type javac test.java A class test.class will be created in corresponding directory type java test It will print Hello! this is...