ChargeService


Click here for a complete list of operations.

Recharge

برای ارسال مستقیم شارژ مکالمه و یا بسته اینترنتی از این متد نمایید

پارامتر ورودی شرح
Usernameنام کاربری وب سرویس
Passwordرمز ورود
MobileNumberشماره همراه
Amountمبلغ شارژ
Service

سرویس مورد نظر

1- شارژ اعتباری

2- شارژ دایمی

4- وایمکس

5- بسته اینترنتی

Params

کد بسته اینترنتی و یا

برای ارسال شگفت انگیز در ایرانسل 4 و در رایتل 3 و در غیر اینصورت 0 ارسال گردد

UserOrderID

کد سفارش باید یک مقدار منحصر بفرد ارسال گردد

ShopName

نام فروشگاه

خروجی متد مطابق لیست شرح داده شده در ابتدای صفحه می باشد

در نظر داشته باشید شارژ شورانگیز رایتل برای مبالغ 20000 و50000 و100000 و200000و500000و1000000 ریالی در نظر گرفته شده است و سایر مبالغ معتبر نمیباشد و با خطا مواجه خواهد شد
در نظر داشته باشید شارژ شگفت انگیز ایرانسل برای مبالغ،10000،20000،50000،100000،200000 ریالی در نظر گرفته شده است و سایر مبالغ معتبر نمیباشد و با خطا مواجه خواهد شد
در نظر داشته باشید شارژ همراه اول فقط برای مبالغ 21000،50000،100000،200000 ریالی در نظر گرفته شده است و سایر مبالغ معتبر نمیباشد و با خطا مواجه خواهد شد
UserOrderID باید منحصر بفرد و غیر تکراری برای هر تراکنش باشد

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

 

1- InquiryCharge

 

2- InquiryChargeByExtOrderID

 


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/Recharge"

<?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>
    <Recharge xmlns="http://www.toranjsoft.com">
      <Username>string</Username>
      <Password>string</Password>
      <MobileNumber>string</MobileNumber>
      <Amount>int</Amount>
      <Service>int</Service>
      <Params>string</Params>
      <UserOrderID>string</UserOrderID>
      <ShopName>string</ShopName>
    </Recharge>
  </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>
    <RechargeResponse xmlns="http://www.toranjsoft.com">
      <RechargeResult>string</RechargeResult>
    </RechargeResponse>
  </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>
    <Recharge xmlns="http://www.toranjsoft.com">
      <Username>string</Username>
      <Password>string</Password>
      <MobileNumber>string</MobileNumber>
      <Amount>int</Amount>
      <Service>int</Service>
      <Params>string</Params>
      <UserOrderID>string</UserOrderID>
      <ShopName>string</ShopName>
    </Recharge>
  </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>
    <RechargeResponse xmlns="http://www.toranjsoft.com">
      <RechargeResult>string</RechargeResult>
    </RechargeResponse>
  </soap12:Body>
</soap12:Envelope>