|
PHP Pay Junction
Process Credit Cards in an Instant
Made to Order Software developed a product named PHP Pay Junction that works
with the Trinity System.
This PHP Pay Junction class abstracts the QuickLink API. It defines three
set of very easy to use PHP functions as follow:
- A set of functions used to setup the credit card transaction;
- The
process() function called to actually send the
transaction to the Trinity system; and
- A set of functions used to check the outcome of the transaction.
The process() function parses the answer returned by
the Trinity system. This is why
the PHP Pay Junction class can be used with great ease to check out
the results.
For instance, when a transaction fails, you should call the
is_bad_card() function. This function tells you
whether your customer card number was somehow banned by the
banking system (usually because the card was reportely stolen
or lost.)
That gives you the possibility to ban that card number and avoid
querying the Trinity system
again with that number.
In order to do that, you can simply compute the md5()
or sha1() of the card number and save that value in
your database. Since these encodings are not reversible (not
easily at least) the card number is safe and it can be checked
again later.
And to help the developer greatly, PHP Pay Junction checks all the
parameters in great details to avoid sending an invalid request to
the Trinity system.
If you think about it, by avoiding sending transactions that are known
to be invalid you avoid taking the chance of being charged your regular
flat fee for nothing. This means a great saving if you process a large
number of credit cards every day.
Also, it is very easy to missuse the QuickLink API. It is very difficult
to send an invalid transaction using the PHP Pay Junction class. If you
attempt to set two contracdictory variables in the transaction, the
PHP Pay Junction class will generate an exception and thus prevent you
from sending your transaction.
Test Early, Test Often
If you are a tester, you heard that many times: Test Early and Test Often.
If you can test each changes, you are more likely to find a problem when
it emerges. At a time when it still is easy to fix it.
Many times, a transaction starts with an invalid credit card number. After
all, such numbers are usually 16 digits and typing 16 digits is not always that easy.
In your web page, before sending your form, you should check the information
the user entered. If you find an error, then you can prompt the user right
then, wasting no time. Plus, it will save you a useless transaction fee since
you could yourself detect that there is an error.
As part of the PayJunction package, you will get a Javascript function you
can use directly in your website to verify that the credit card number is
between 13 and 16 digits and is a valid number by testing it with the
Luhn check.
Technical Features:
- Supported platforms:
- All platforms that support PHP with the HttpRequest extension
(MS-Windows, Linux, Mac OS/X, SunOS, HP UX, etc.)
- Support 99% of the QuickLink API.
- Catches many errors early.
- Process Credit Cards in minutes from your PHP environment.
- Ensure that the transaction to be sent to the Trinity system is welformed.
- The package includes a Javascript function one can use to test the credit card number for validity.
- Process Credit Cards from nearly anywhere in the world.
- Includes a complete list of all the QuickLink errors.
- Very detailed documentation.
- Used to process credit cards entered in the Made to Order Software cart!
|
NOTES
|
| 1 |
|
Your own and valid Trinity
account is required. |
| 2 |
|
For this system to work in a secure environment (mandatory), you are
required to have a server with HTTPS and a valid certificate. |
|