ChargeService


Click here for a complete list of operations.

CreditCharge

متد افزایش اعتبار پنل وب سرویس از طریق درگاه بانکی

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

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

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

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

Passwordکلمه عبور
Amountمبلغ
CallBackURLآدرس بازگشت از صفحه پرداخت

توجه داشته باشید از اعلایم {0} و {1} و {2} در لینک بازگشتی میتوانید جهت دریافت کد پیگیری و نتیجه تراکنش پرداخت و کد نتیجه پرداخت استفاده نمایید

برای مثال  http://yourdomain/paymant/{0}/{1}/{2}

___________________________________________________

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

پارامتر خروجی شرح
Statusکد نتیجه اجرای متد که در جدول بالا تفکیک شده است
Note

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

URLلینک صفحه پرداخت

 


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.toshanet.ir
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://www.toranjsoft.com/CreditCharge"

<?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>
    <CreditCharge xmlns="http://www.toranjsoft.com">
      <Username>string</Username>
      <Password>string</Password>
      <Amount>int</Amount>
      <CallBackURL>string</CallBackURL>
    </CreditCharge>
  </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>
    <CreditChargeResponse xmlns="http://www.toranjsoft.com">
      <CreditChargeResult>string</CreditChargeResult>
    </CreditChargeResponse>
  </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.toshanet.ir
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>
    <CreditCharge xmlns="http://www.toranjsoft.com">
      <Username>string</Username>
      <Password>string</Password>
      <Amount>int</Amount>
      <CallBackURL>string</CallBackURL>
    </CreditCharge>
  </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>
    <CreditChargeResponse xmlns="http://www.toranjsoft.com">
      <CreditChargeResult>string</CreditChargeResult>
    </CreditChargeResponse>
  </soap12:Body>
</soap12:Envelope>