Our site www.viart.com site is operated by latest Viart Shop 5 with default Clear design
Topic Information
MaxLord
MaxLord
Hi, i want to add new pay system - interkassa.ru
(as i'm from russia, it will be very very useful)
 
so, is it any documentation, about how to make addition
 
about InterKassa API
1. form for pay-request
 
Action - http://www.interkassa.com/lib/payment.php
Method - POST
Fields -
ik_shop_id - constant, sample - 64C18529-4B94-0B5D-7405-F2752F2B716C
 
ik_payment_amount - payment amount
 
ik_payment_id - payment id (in viart shop)
 
ik_payment_desc - description, max length=255, sample "iPod 80Gb "
 
ik_paysystem_alias - constant, "webmoneyr" or '' (nothing)
 
ik_baggage_fields - additional information, not necessary
 
ik_sign_hash - sign hash
 
sign hash generating:
$ik_shop_id = '392894CA-62C4-E3B3-14DC-1CD6058AC6A7';
$ik_payment_amount = '0.1';
$ik_payment_id = '123';
$ik_payment_desc = 'Тестовый товар';
$ik_paysystem_alias = '';
$ik_baggage_fields = 'baggage12345';
$ik_sign_hash = '';
$secret_key = 'WFQlL8H2vbXv5T6n';
$ik_sign_hash_str = $ik_shop_id.':'.
$ik_payment_amount.':'.
$ik_payment_id.':'.
$ik_paysystem_alias.':'.
$ik_baggage_fields.':'.
$secret_key;
 
// 392894CA-62C4-E3B3-14DC-1CD6058AC6A7:0.1:123::baggage12345:WFQlL8H2vbXv5T6n
 
$ik_sign_hash = md5($ik_sign_hash_str);
 
// 18978a7587877dd075be798b6d6fe0b3
 
 
so, sample for pay-ask looks like
<html>
<head>
...
</head>
<body>
...
<form name="payment" action="http://www.interkassa.com/lib/payment.php" method="post" target="_top">
<input type="hidden" name="ik_shop_id" value="64C18529-4B94-0B5D-7405-F2752F2B716C">
<input type="hidden" name="ik_payment_amount" value="1.00">
<input type="hidden" name="ik_payment_id" value="1234">
<input type="hidden" name="ik_payment_desc" value=" iPod 80Gb черный ">
<input type="hidden" name="ik_paysystem_alias" value="">
<input type="hidden" name="ik_baggage_fields" value="tel: 80441234567">
<input type="submit" name="process" value="Оплатить">
</form>
...
</body>
</html>
 
 
2. Form for notification about paying
Action – Status URL
Method - POST
Fields
 
 
ik_shop_id
ik_payment_amount
ik_payment_id
ik_payment_desc
ik_paysystem_alias
ik_baggage_fields
ik_payment_timestamp
ik_payment_state
ik_trans_id
ik_currency_exch
ik_fees_payer
ik_sign_hash
 
<form action="<Status URL>" method="<Status URL Method>">
<input type="hidden" name="ik_shop_id" value="64C18529-4B94-0B5D-7405-F2752F2B716C">
<input type="hidden" name="ik_payment_amount" value="1.00">
<input type="hidden" name="ik_payment_id" value="1234">
<input type="hidden" name="ik_payment_desc" value=" iPod 80Gb черный ">
<input type="hidden" name="ik_paysystem_alias" value="webmoneyz">
<input type="hidden" name="ik_baggage_fields" value="tel: 80441234567">
<input type="hidden" name="ik_payment_timestamp" value="1196087212">
<input type="hidden" name="ik_payment_state" value="success">
<input type="hidden" name="ik_trans_id" value="IK_68">
<input type="hidden" name="ik_currency_exch" value="1">
<input type="hidden" name="ik_fees_payer" value="1">
<input type="hidden" name="ik_sign_hash" value=" ED890BA468446635B22779B826425CD2">
<input type="submit" value="send">
</form>
 
3. Form of succesfull payment
Action – Success URL
Method - POST
Fields
 
ik_shop_id - shop id
 
ik_payment_id paiment id (which was send from viart shop)
 
ik_paysystem_alias
ik_baggage_fields
ik_payment_timestamp - unix time stamp like 1196087212
 
ik_payment_state - success or fail
 
ik_trans_id - payment id in interkassa system, like IK_68
 
<form action="<Success URL>" method="<Success URL Method>">
<input type="hidden" name="ik_shop_id" value="64C18529-4B94-0B5D-7405-F2752F2B716C">
<input type="hidden" name="ik_payment_id" value="1234">
<input type="hidden" name="ik_paysystem_alias" value="webmoneyz">
<input type="hidden" name="ik_baggage_fields" value="tel: 80441234567">
<input type="hidden" name="ik_payment_timestamp" value="1196087212">
<input type="hidden" name="ik_payment_state" value="success">
<input type="hidden" name="ik_trans_id" value="IK_68">
<input type="submit" value="send">
</form>
 
 
 
 
4. Fail form
it's same, just another (or same) url - fail_url
 
 
<form action="<Fail URL>" method="<Fail URL Method>">
<input type="hidden" name="ik_shop_id" value="64C18529-4B94-0B5D-7405-F2752F2B716C">
<input type="hidden" name="ik_payment_id" value="1234">
<input type="hidden" name="ik_paysystem_alias" value="webmoneyz">
<input type="hidden" name="ik_baggage_fields" value="tel: 80441234567">
<input type="hidden" name="ik_payment_timestamp" value="1196087212">
<input type="hidden" name="ik_payment_state" value="fail">
<input type="hidden" name="ik_trans_id" value="IK_68">
<input type="submit" value="send">
</form>
Last modified: 22 Jul 2009 11:39 AM
 
MaxLord
MaxLord
i made it)Broad grin
 
rpagyc
rpagyc
have you done it by modifying existing payment module or made your own?
is it hard to create new module for WebMoney payments?
 
VST (Guest)
VST (Guest)
We have made ViArtShop payment modules for all major Rusiian payment systems - WebMoney, RoboKassa, InterKassa. You may find them at
http://forum.viarts.ru/
http://www.viarts.ru/
 
Best Regards,
Denis
ViartShop Russian Support Team
 
marj (Guest)
marj (Guest)
can you plz..help me for this...
1. ADD, EDIT, DELETE, SEARCH
 
CUSTOMER
-customer number
-name (lastname, firstname, middlename)
-date of reservation(provided by system date)
 
ITEMS
-item code(auto-number)
-item description
-price
 
A customer number is generated by the first letters of the first name, middle name and last name of the customer with the date & time (hh:mm:ss) of the reservation.
 
2. A module that accepts a customer number, list of items to be purchased(multiple reservations of item must be entered repeatedly), expected date the items will be paid and type of payment (CASH or CREDIT).
All reservations ae good for 5 days only. Customers may avail discounts based on the following condition.
 
CASH
-2 days or less: 15%
-5 days or less: 12%
-beyond 5 days: Surcharge of 5%
 
CREDIT
-2 days or less: 10%
-5 days or less: 8%
-beyond 5 days: Surcharge of 8%