Monthly Archives: November 2012

Switching your webshop to Quickpay

Quickpay Logo

Quickpay is a fast growing Danish payment gateway. They operate both in Denmark and abroad and it’s a good idea to have their system in your toolbox.

Quickpay offers modules that integrate with many existing shop-systems but just in case your shop-system is hand-crafted have a look at this quick overview of how to integrate secure payment window into any system.

Note: this overview describes integrating Quickpay into php-based website but the general remarks should be useful for .NET users as well.

3 Steps To Quickpay

  • If you don’t have an account yet, log in to the demo manager
  • Under Tools (Værktøjer) in the menu you will find generate code options
  • Get your PHP or ASP.NET code. In the simplest, php-version the folder you download contains 4 files: call-quickpay.php, error.php, form-quickpay.php and ok.php. You are most interested in form-quickpay.php. This is the form that needs to be posted to Quickpay. You place it on the page that stores the hidden details of the transaction, just before the page you want to make people pay.  For example if your shop system has the following flow: Your shopping cart – Enter your shipping details – Review Order – Pay, you want to place your form on the Review Order page and the pay button should post the form.

The Code Explained

<?php

	$protocol='6';
	$msgtype='authorize';
	$merchant='89898978';
	$language='en';
	$ordernumber = time();
	$amount='100';
	$currency='DKK';
	$continueurl='http://www.dyrernesnetsalg.dk/ok.php';
	$cancelurl='http://www.dyrernesnetsalg.dk/error.php';
	$callbackurl='http://www.dyrernesnetsalg.dk/callback.php'; //see http://quickpay.dk/clients/callback-quickpay.php.txt
	$md5secret ='29p61DveBZ79c3144LW61lVz1qrwk2gfAFCxPyi5sn49m3Y3IRK5M6SN5d8a68u7';

    $md5check = md5($protocol.$msgtype.$merchant.$language.$ordernumber.$amount.$currency.$continueurl.$cancelurl.$callbackurl.$md5secret);

?>

<form action="https://secure.quickpay.dk/form/" method="post">
    <input type="hidden" name="protocol" value="<?php echo $protocol ?>" />
    <input type="hidden" name="msgtype" value="<?php echo $msgtype ?>" />
    <input type="hidden" name="merchant" value="<?php echo $merchant ?>" />
    <input type="hidden" name="language" value="<?php echo $language ?>" />
    <input type="hidden" name="ordernumber" value="<?php echo $ordernumber ?>" />
    <input type="hidden" name="amount" value="<?php echo $amount ?>" />
    <input type="hidden" name="currency" value="<?php echo $currency ?>" />
    <input type="hidden" name="continueurl" value="<?php echo $continueurl ?>" />
    <input type="hidden" name="cancelurl" value="<?php echo $cancelurl ?>" />
    <input type="hidden" name="callbackurl" value="<?php echo $callbackurl ?>" />
    <input type="hidden" name="md5check" value="<?php echo $md5check ?>" />
    <input type="submit" value="Pay" />
</form>

The form code is fairly straightforward. The less obvious settings are:

  • merchant – this is a number you will receive from Quickpay once you order an account. (Settings->Merchant->QuickpayId
  • continueurl – Quickpay will redirect to this URL after the payment has been completed and authorized. This is basically your receipt page.
  • cancelurl – similarly, this is the URL that gets called if the payment wasn’t completed or wasn’t completed sucessfully
  • callbackurl – this one is a bit tricky. According to the QuickPay’s own documentation, Quickpay will make a call back to this URL with the result of the transaction. You can read more about it on Quickpay’s website. Callbackurl is not required but it provides an extra measure of security so it is advisable to use it.
  • $md5check – is again a value you will find in your Quickpay manager under Settings -> MD5Secret

Setting Up Quickpay Manager

Once you have the code running you need to enter your acquirer’s details under Settings->Acquirers. The information come from the company that actually handles the payments. It is up to you to get an agreement with one of the acquirers. You can read a bit more about this on Quickpay’s website.

While you are still testing your shop your gateway mode should be set to test (Settings->Gateway Mode). That means that no money will change hands until you are ready to move to production.

To make sure that everything is going just fine, have a look at the top-right corner of your dashboard (Merchant Status). If there is anything you forgot, this box should give you a warning. Clicking on the link will take you to the settings that need to be edited.

You can also use Testsuit (Tools->Testsuite) to test your setup.

Useful Links

  1. Technical Documentation
  2. Features
  3. Quickpay user guide

5 Impressive Umbraco Websites

Very recently I had the chance to see Per Ploug introduce Umbraco 4.9 and it made me want to look back into the CMS. For inspirations, I looked into existing Umbraco sites and here is the most interesting 5 I found.

1. Confio Software

Confio’s website is brilliantly interactive. And despite its complexity, it is easy to navigate.

Confio Software Website

2. Hasselblad

Another very complex and very well handled website.

Hasselblad website

3. FXUK

FXUK is an interesting example of Umbraco in use. Almost the entire content on the website consists of images and videos.

FXUK website

4. Education Impact

This page caught my attention because of the way it displays the news. The front-page grid layout attracts users and makes the news prominent.

Education Impact front page

5. Kiers.me

This last website constitutes an interesting counterweight to the previous 4. It is a personal website and a blog by Stephen Kiers and it shows that Umbraco can serve well in any size.

Stephen Kiers Blog

Personal Thoughts on Samsung Galaxy Note 10.1


samsung galaxy note 10.1

A couple of weeks ago I got a shiny new package with Samsung Galaxy Note 10.1 inside. And since then I’ve been using it pretty much non-stop. I will not bore you with all the technical specs of the tablet – you can find these all over the web. And if you want to see what it can do, you should pop by YouTube.com and enjoy all the great videos. What I want to tell you about, are just a few of my subjective opinions about this great toy.

Responsivness

So, first of all the tablet performs beautifully. It is perfectly responsive and deals with my obsessive-compulsive switching between all the social-media apps without a glitch. It has not froze once. Using the pen might need a moment or two to get used to. However no matter if it is the stylus or your fingers you favor, you will not be disappointed.

Notes

SNote Screenshot

Samsung Galaxy Note, as the name indicates, is designed to help you with your note-related needs. First of all, it comes with pre-installed note taking application, the SNote. In the app you can create notes containing text, images and drawings. I’ll be honest with you here: I think this tool still needs some polishing. The UI needs some extra work before it is truly great, especially when hand-writing to text option is selected the controls of some element are hidden. It just needs to be more intuitive.

Nevertheless, the app shows a great potential and I can see myself using it a lot in the future. I love doodling, sketching or noting down ideas and with SNote I can keep it all in one place and share it on social media or through email. I hope that Samsung will keep improving this piece of software.

And on that note (pun not intended), I think it is worth mentioning how well the handwriting-to-text feature works. You can write pretty carelessly and the text will be well interpreted. I distinctly remember my teachers not being able to do what this tablet does: you have to admit that this is pretty impressive.

Handwritting to text samsung galaxy note

Another important part of notes-related activities is sharing on social media. And here Samsung Galaxy Note 10.1 is doing beautifully. No matter if you’re using SNote, Evernote or any other app, taking quick photos, screen snapshots, or if you are producing other types of content with Photoshop Touch or VideoMaker (also pre-installed), producing and sharing content is made super easy.

Multiscreen

Another notable feature of Samsung Galaxy Note 10.1 is the ability to share the screen between two apps working simultaneously. For example SNote can share the screen with internet browser (see: picture below) or and the email client. This makes noting down things from the internet or creating emails from your notes so much easier.

Multiscreen on Samsung Galaxy Note 10.1

However, in my opinion, this functionality has one major flaw. And that is, that it has a pre-defined and rather short list of apps that can share the screen.

  1. SNote
  2. Internet browser
  3. Video Player
  4. Polaris Office (your basic Word, Excel and PowerPoint-like software)
  5. Gallery
  6. Email Client

So, if like me you would like to use Chrome, Gmail client or Evernote, you will be denied the benefits of multiscreen. I really hope that this is flaw will be soon dealt with. Especially, that it seems the Samsung Galaxy Note smartphone already has the capability to add third-party apps to its multiscreen feature.

Additionally, the tablet also supports floating apps. Which means that you can open the email client, music player, SNote, SPlanner (your calendar), task manager, calculator and alarm as a small floating window on top of any other application. Again a very useful feature if you want to quickly switch between apps without loosing them from view.

Conclusion

Samsung Galaxy Note 10.1 is a great tablet. It has not been a disappointment. It has improved my workflow and increased my productivity throughout the day. I use it to surf the web, read books, articles and papers. I use it as my replacement brain with the calendar, task lists and notes. And last but not least, I use it to share my content on social media. So you can see that a pretty large load was taken off of my laptop’s shoulders.

Oh and by the way, part of this post was also written on the tablet, using the pretty sweet WordPress app.