ChargeService


Click here for a complete list of operations.

PayBills

متد تولید لینک پرداخت قبوض

توجه داشته باشید در صورت اجرای موفق این متد لینک صفحه پرداخت ارایه می گردد که پرداخت قبض منوط به تکمیل روال پرداخت است

لینک پرداخت حداکثر 10 دقیقه معتبر بوده و یکبار مصرف می باشد

پارامتر ورودی شرح 
UserName

نام کاربری  وب سرویس

Passwordکلمه عبور
BillIDشناسه قبض
BillPayIDشناسه پرداخت
Priceمبلغ
ReturnUrlآدرس برگشت از بانک

___________________________________________________

خروجی متد با فرمت جیسون به شرح زیر می  باشد

پارامتر خروجی شرح
ResultCodeکد نتیجه اجرای متد که در جدول زیر تفکیک شده است
ResultCaption

تشریخ فارسی نتیجه اجرا متد

BillTypeنوع قبض
Urlلینک صفحه پرداخت

___________________________________________________

خروجی شرح
0عملیات موفق و ایجاد لینک پرداخت
1

نام کاربری یا کلمه عبور معتبر نمی باشد

2مبلغ ارسالی معتبر نیست
3خطای سیستمی
100شناسه قبض و پرداخت، همخوانی ندارد
101شناسه قبض و پرداخت، اشتباه است
102شناسه قبض اشتباه است
103شناسه پرداخت اشتباه است
104خطای شناسایی نشده
105نام کاربری و کلمه عبور را وارد نمائید
106شناسه قبض یا پرداخت نمیتواند خالی باشد
107مبلغ قابل پرداخت قبض و یا آدرس برگشت نمیتواند خالی باشد

Test

The test form is only available for requests from the local machine.

SOAP 1.1

The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.

POST /UserWebservice.asmx HTTP/1.1
Host: ws.elkapos.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://www.toranjsoft.com/PayBills"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <PayBills xmlns="http://www.toranjsoft.com">
      <UserName>string</UserName>
      <Password>string</Password>
      <BillID>string</BillID>
      <BillPayID>string</BillPayID>
      <Price>string</Price>
      <ReturnUrl>string</ReturnUrl>
    </PayBills>
  </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <PayBillsResponse xmlns="http://www.toranjsoft.com">
      <PayBillsResult>string</PayBillsResult>
    </PayBillsResponse>
  </soap:Body>
</soap:Envelope>

SOAP 1.2

The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.

POST /UserWebservice.asmx HTTP/1.1
Host: ws.elkapos.com
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <PayBills xmlns="http://www.toranjsoft.com">
      <UserName>string</UserName>
      <Password>string</Password>
      <BillID>string</BillID>
      <BillPayID>string</BillPayID>
      <Price>string</Price>
      <ReturnUrl>string</ReturnUrl>
    </PayBills>
  </soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <PayBillsResponse xmlns="http://www.toranjsoft.com">
      <PayBillsResult>string</PayBillsResult>
    </PayBillsResponse>
  </soap12:Body>
</soap12:Envelope>