Posts

Showing posts with the label ecommerce

MX Checking and Email Validation

Whilst encountering people inputting technically correct email address, but generally not correct (there is no gmail.com.au etc), was looking around for an MX validation, particularly important for eCommerce guest checkouts when receipt emails are just not arriving. Dominic Sayers example in PHP (ported in Java also) seems to be one of the top ones, but kept replying with invalid MX records (probably my fault) and it is written PHP, which didn't suit my needs, see https://code.google.com/p/isemail/ Also attempted this guys implementation in ColdFusion of the above one, but didn't quite work for me either:  https://gist.github.com/JamoCA/72cdcb77246ea0ee5820 When checking how the PHP was actually written; noticed a function called dns_get_record in PHP, haven't seen that one in ColdFusion, had a root round, found Pete Freitag example at http://www.petefreitag.com/item/487.cfm Modifed that slighlty for my own needs, using Google's Public DNS ; ended up with below (...

Paypal Invoicing API

So how to get your paypal invoicing set up? Login to the Paypal Sandbox with the account associated to your Paypal Invoicing Application (Google that, to find the latest URL!!) Click My Apps, create a new APP, save as draft and you will be ready to start testing. Note that when you are testing the Sandbox App Id is always APP-80W284485P519543T and the end point is https://svcs.sandbox.paypal.com/. You'll need approval from Paypal when finished testing!