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>