Ejemplo n.º 1
0
def TransactionQueryByMPAY(request):
    message=""
    if request.POST:
       input_request=Input()
       input_request.MPAY=request.POST.get('MPAY') 
       #endregion

       #region Token
       token_request= Token()
       token_request.UserCode=config.UserCode
       token_request.Pin=config.Pin
       #region EndToken 

       req= TransactionQueryByMPAYRequest()
       message= req.execute(token_request,input_request) #Soap servis çağrısının başlatıldığı kısım. 
    return render_to_response('transactionQueryByMPAY.html', {'message': message}) 
Ejemplo n.º 2
0
def DeactivateSubscriber(request):
    message=""
    if request.POST:
       input_request=Input()
       input_request.subscriberId=request.POST.get('subscriberId') 
       #endregion

       #region Token
       token_request= Token()
       token_request.UserCode=config.UserCode
       token_request.Pin=config.Pin
       #region EndToken 

       req= SubscriberDeactivateRequest()
       message= req.execute(token_request,input_request) #Soap servis çağrısının başlatıldığı kısım. 
    return render_to_response('subscriberdeactive.html', {'message': message}) 
Ejemplo n.º 3
0
def SendInformationSmsService(request):
    message=""
    if request.POST:
       input_request= Input()
       input_request.Gsm=request.POST.get('gsm') 
       input_request.Content=request.POST.get('content')
       input_request.RequestGsmOperator=0
       input_request.RequestGsmType=0

       #region Token
       token_request= Token()
       token_request.UserCode=config.UserCode
       token_request.Pin=config.Pin
       #region EndToken

       req= SendInformationSmsRequest() 
       message =  req.execute(token_request,input_request) #Soap servis çağrısının başlatıldığı kısım. 

    return render_to_response('sendInformationSms.html', {'message': message})
Ejemplo n.º 4
0
def ApiPlus(request):
     message=""
     if request.POST:
        input_request= Input()
        input_request.MPAY = ""
        input_request.Gsm =request.POST.get('gsm')
        input_request.Content = "TLFN01-Telefon"
        input_request.SendOrderResult ="true"
        input_request.PaymentTypeId =request.POST.get('paymentTypeId')
        input_request.ReceivedSMSObjectId = "00000000-0000-0000-0000-000000000000"

      
        #region Product
        input_request.ProductList = []
        product = input_request.Product()
        product.ProductId = 0
        product.ProductCategory =request.POST.get('productCategoryId')
        product.ProductDescription="Telefon"
        product.Price = 0.01
        product.Unit = 1
        input_request.ProductList.append(product)
        #endregion
       

        input_request.SendNotificationSMS="true"
        input_request.OnSuccessfulSMS="basarili odeme"
        input_request.OnErrorSMS="basarisiz odeme"
        input_request.Url="localhost:3000/home/apiplus"
        input_request.RequestGsmOperator=0
        input_request.RequestGsmType=0
        input_request.Extra=""
        input_request.TurkcellServiceId=""
        input_request.CustomerIpAddress="http://127.0.0.1:8000/ApiPlus"

        #region Token
        token_request= Token()
        token_request.UserCode=config.UserCode
        token_request.Pin=config.Pin
        #region EndToken

        req= ApiPlusRequest() 
        message =  req.execute(token_request,input_request) #Soap servis çağrısının başlatıldığı kısım. 
 
     return render_to_response('apiPlus.html', {'message': message})
Ejemplo n.º 5
0
def SelectSubscriber(request):
    message=""
    if request.POST:

       #region Input 
       input_request=Input()
       input_request.ProductId=0 
       input_request.Gsm=request.POST.get('gsm') 
       input_request.OrderChannelId=request.POST.get('orderChannelId') 
       input_request.Active=request.POST.get('activeTypeId')  
       input_request.SubscriberType=request.POST.get('subscriberTypeId')  
       input_request.StartDateMin=parser.parse(request.POST.get('startDateMin')) 
       input_request.StartDateMax=parser.parse(request.POST.get('startDateMax')) 
       input_request.LastSuccessfulPaymentDateMin=parser.parse(request.POST.get('lastSuccessfulPaymentDateMin')) 
       input_request.LastSuccessfulPaymentDateMax=parser.parse(request.POST.get('lastSuccessfulPaymentDateMax')) 
       #endregion

       #region Token
       token_request= Token()
       token_request.UserCode=config.UserCode
       token_request.Pin=config.Pin
       #region EndToken

       req= SubscriberSelectRequest() 
       message =  req.execute(token_request,input_request) #Soap servis çağrısının başlatıldığı kısım. 
    return render_to_response('subscriberselect.html', {'message': message})