Developer forum

Forum » Feature requests » Simple Quickpay payment window

Simple Quickpay payment window


Reply
 
How can we make a simple Quickpay window with no e-com but just the possibility to pay an invoice online?
This is a request from some customers and can be done using Dandomain Payment window but we would rather do this with Quickpay and Dynamicweb.
Unfortunately it is impossible to get an answer from Quickpay...

See an example on this page:
http://www.granada.dk/Online_betaling.aspx?ID=58

Replies

 
Nicolai Høeg Pedersen
Reply
It is pretty simple to do - you do not need any special Dynamicweb features.

Create a static form in html with the required hidden fields for quickpay (see link below). In that form make 2 fields - one for order number and one for amount. Could also consider asking for some other client details like name and e-mail.

http://doc.quickpay.dk/paymentwindow/technicalspecification.html#index3h2

That form will open a new window with the quickpay gateway where the payment will be done etc. Pretty straight forward.
 
Per Søgaard
Reply
 Hi Nicolai

Following up on this old case.

I have set up a form and placed my MD5 in it but i get an error when i press Betal.

http://demo.soegaard-co.dk/Betallingsvindue-3769.aspx?Purge=True


 
Vladimir
Reply
Hi Per!
I looked on your example but did not understand how you got:
md5check = 54m96juv298Yd93qGg694tFi5ayNQ7k7wUs8z3MXPB134nZ2h26fc631CJWxD7bR
md5check value among other things depends from ordernumber, amount and secret fields which I don't know

I try to run example from http://quickpay.net/features/payment-window/ all goes fine:
<form method="post" action="https://secure.quickpay.dk/form/">
<input type="hidden" value="5" name="protocol">
<input type="hidden" value="authorize" name="msgtype">
<input type="hidden" value="86189919" name="merchant">
<input type="hidden" value="da" name="language">
<input type="hidden" value="1340153404" name="ordernumber">
<input type="hidden" value="100" name="amount">
<input type="hidden" value="DKK" name="currency">
<input type="hidden" value="http://quickpay.net/features/payment-window/ok.php" name="continueurl">
<input type="hidden" value="http://quickpay.net/features/payment-window/error.php" name="cancelurl">
<input type="hidden" value="http://quickpay.net/features/payment-window/callback.php" name="callbackurl">
<input type="hidden" value="0" name="autocapture">
<input type="hidden" value="" name="cardtypelock">
<input type="hidden" value="1" name="splitpayment">
<input type="hidden" value="7d26427899046af935587685904723b3" name="md5check">
<input type="submit" value="Open Quickpay payment window">
</form>
Best regards,
Vladimir

 
Per Søgaard
Reply
According to Nicolai it should be possible to make a simple form with no ecom of any kind (see his post above).
I have put my MD5 number directly in the form since i have no function to generate the md5check code.

I too have run the example from the quick pay page.

Is it correct what Nicolai writes or do I need to have and set up a basket?

Possible solutions if the forms way is not possible:

1.
Can I set up a basket with no eCom and make it possible for the customer to enter invoice number and amount to pay (and name) and send this to the Quickpay payment window?

2.
Can I make a link that will configure the Quickpay  payment window to have extra fields for amount, name and invoice number.


Hope to hear from you.


PS.
For some reason i do not get the notification mails from the forum (and never has)
 
Vladimir
Reply
Hi Per
Nicolai is right, the ecom is not needed, but the md5check code can't be static and should be calculated in any way.
However, it is possible to realize a variety of ways:
Ajax call to web handler, Custom module, Page template extender, DataManagement: Forms - btw it allow to implement the logging of payment operations at the same time.
You can read more about DataManagement Extensibility here:
http://engage.dynamicweb-cms.com/Admin/Public/Download.aspx?File=Files%2fFiler%2fDocumentation%2fDevelopment%2fModules%2f(en-US)+Data+Management+Extensibility+API.pdf

Best regards,
Vladimir

 
Per Søgaard
Reply
 Thankyou for your reply.

The focus is to make a simple way to pay without special coding.

Can i set up a stand alone basket with  but two input fields and make it possible for the customer to write invoice number and amount  and do it this way?
 
Vladimir
Reply
Hi Per!
I think not. Basket can't work stand alone, it requires any version of e-com.


Best regards,
Vladimir