Actions
Programming Guide » History » Revision 4
« Previous |
Revision 4/15
(diff)
| Next »
chin-yeh, 03/06/2012 06:54 PM
- Table of contents
- Programming Guide
Programming Guide¶
This guide describes how to integrate online mall with the QIWI.
Demo Application: (refer to the Merchant Account to get the merchant details)
Steps-By-Steps¶
- First, study the Payment Flow
- To redirect the customer to QIWI, prepare the following
HTML form
:- action - must be http://w.qiwi.ru/setInetBill_utf.do
- from - merchant ID
- txn_id - unique transaction ID, e.g. order ID
- to - customer's MSISDN, e.g. mobile phone number
- summ - payment amount, e.g. 10.22
- com - description of this payment
- example:
<form method="post" action="http://w.qiwi.ru/setInetBill_utf.do"/> <table> <tr><td>eCosway Shop ID:</td> <td><input name="from" type="text" value="2042"/></td> </tr> <tr><td>eCosway Order ID:</td> <td><input name="txn_id" type="text" value="test-order-1"/></td> </tr> <tr><td>Customer Mobile No.:</td> <td><input name="to" type="text" value="9161234567"/></td> </tr> <tr><td>Payment Amount (RUB a.k.a Rouble):</td> <td><input name="summ" type="text" value="2.15"/></td> </tr> <tr><td>Payment Description:</td> <td><input name="com" type="text" value="For registration fee"/></td> </tr> <tr> <td><input type="submit" value="Pay Now"/> </td> </tr> </table> </form>
- Prepare a
servlet
orJSP
to capture the payment status callback.- the
servlet
orJSP
must accept this query parameter, paymentResponseString paymentResponse = request.getParameter("paymentResponse");
- decrypt the parameter using EncryptAES utils:
String decryptedResponse = new EncryptAES().decryptSKey(request.getParameter("paymentResponse"));
- the decrypted
paymentResponse
parameter consists of transaction ID, payment result, and from who and delimited bycomma
test-order-1,true,qiwi
- Important Note: This is your responsibility to persist this payment result into the respective
interface
table.
- the
- done.
Updated by chin-yeh almost 13 years ago · 4 revisions