Paytm Sdk отсутствует: этот атрибут не передан Order_Id - PullRequest
0 голосов
/ 20 февраля 2020

enter image description here

При получении интеграции с Paytm SDK произошла ошибка. Paytm SDK missing: This attribute is not passed Order_Id но я передаю все параметры: ниже для настройки торговца и создания платежей, но все равно получаю ошибку. отсутствующие обязательные атрибуты, пожалуйста, проверьте.

    func setMerchant(){
       merchant  = PGMerchantConfiguration.default()!
        //user your checksum urls here or connect to paytm developer team for this or use default urls of paytm
        merchant.checksumGenerationURL = "https://securegw-stage.paytm.in/order/processi";
        merchant.checksumValidationURL = "https://securegw-stage.paytm.in/order/status";

        merchant.clientSSLCertPath = nil; //[[NSBundle mainBundle]pathForResource:@"Certificate" ofType:@"p12"];
        merchant.clientSSLCertPassword = nil; //@"password";

        //configure the PGMerchantConfiguration object specific to your requirements
        merchant.merchantID = "ZwQyUg99754768111290";//paste here your merchant id  //mandatory
        merchant.website = "WEBSTAGING";//mandatory
        merchant.industryID = "Retail";//mandatory
        merchant.channelID = "WAP"; //provided by PG WAP //mandatory

    }
    func createPayment(){

       let params:[String: String] = [
                     "CUST_ID":"cjhcghc67jcj",
                     "TXN_AMOUNT":"1",
                     "MID": "ZwQyUg99754768111290",
                     "ORDER_ID":randomString(length: 10),
                     "ORDERID":randomString(length: 10),
                     "INDUSTRY_TYPE_ID":"Retail",
                     "CHANNEL_ID":"WAP",
                     "WEBSITE":"WEBSTAGING",  //Staging Environment  - Mobile\
                     "CALLBACK_URL": "https://securegw-stage.paytm.in/order/process",
                     "CHECKSUMHASH":" https://securegw-stage.paytm.in/order/status"
         ]
        let pgOrder = PGOrder(params: params )
        let transaction = PGTransactionViewController.init(transactionFor: pgOrder)
            transaction!.serverType = eServerTypeProduction
            transaction!.merchant = merchant
            transaction!.loggingEnabled = true
            transaction!.delegate = self
            self.present(transaction!, animated: true, completion: {


            })

    }.   ```





...