Payoffline simple PHP script

My friend recently started using payoffline to accept payments from people who want to pay cash at a paypoint zone such as corner shops, supermarkets and so on. He told me that he wanted a simple script that would let him email out invoices to people who bought his model buses on ebay. Payoffline offer two different integration methods, one is quite basic and the other is a little more advanced. Because this script didn’t need to do much and time was an issue, we went for the basic integration method and just modified its usage slightly to how it is usually used. This allowed us to use php cURL rather than SOAP.

You start by editing the config.php file with your own preferences such as your store name, email address and so on:

payoffline config settings

Next you can either use the default template file or you can modify it to your own requirements. I have based the default template on what Payoffline use themselves. The template file is simply html which you can edit and then to include things like the barcode, storename and so on you would simple enter [barcode] within the html source:

Payoffline email template

The next step is to upload the files to your web host and visit the page in your browser. You will be presented with a basic input form which will allow you to enter the invoice details such as amount, order reference and optionally an ebay ID number:

Entering details for the payoffline invoice

You will then be presented with a preview of exactly what the invoice will look like once the buyer opens it in their email viewer:

Sample invoice

If you are unhappy with the invoice then you can simply hit the back button on your browser and edit it, otherwise you can confirm for the invoice to be emailed to the buyer:

mk-models-2.png

Below shows the email opened by the buyer:

Payoffline invoice opened in email client

These scripts are free to download:     Payoffline invoice emailer

Recommend: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Slashdot