0

我想将支付网关与 Paytm 一起使用。首先我无法生成 CHECKSUMHASH 。然后,如果我是硬线。然后它显示Paytm的OOPS页面。请帮助。任何帮助将不胜感激。提前致谢

PGMerchantConfiguration *mc = [PGMerchantConfiguration defaultConfiguration];
mc.checksumGenerationURL = @"http://lucky7.co.in/paytm/generateChecksum.php";
mc.checksumValidationURL = @"http://lucky7.co.in/paytm/verifyChecksum.php";

//Step 2: Create the order with whatever params you want to add. But make sure that you include the merchant mandatory params
NSMutableDictionary *orderDict = [NSMutableDictionary new];

//Merchant configuration in the order object
orderDict[@"MID"] = @"SSMENT54168661059890";
orderDict[@"ORDER_ID"] = @"Order000111008";
orderDict[@"CUST_ID"] = @"12";
orderDict[@"INDUSTRY_TYPE_ID"] = @"Retail";
orderDict[@"CHANNEL_ID"] = @"WAP";
orderDict[@"TXN_AMOUNT"] = @"1";
orderDict[@"WEBSITE"] = @"APP_STAGING";
orderDict[@"CALLBACK_URL"] = @"http://lucky7.co.in/paytm/verifyChecksum.php";
orderDict[@"EMAIL"] = @"eee@gmail.com";
orderDict[@"MOBILE_NO"] = @"9996725992";
orderDict[@"REQUEST_TYPE"] = @"DEFAULT";
//    orderDict[@"CHECKSUMHASH"] = @"ohpYnZUoSUqFsQ0uUVArWPnlTdLPSZWhinaCWSGKME5HJzAlZephJuaCFxs5tJbSKViPbrlEsJEIEVIcJARFANm4rN1pk7n4193CBs53Zg=";


PGOrder *order = [PGOrder orderWithParams:orderDict];

//Step 3: Choose the PG server. In your production build dont call selectServerDialog. Just create a instance of the
//PGTransactionViewController and set the serverType to eServerTypeProduction
[PGServerEnvironment selectServerDialog:self.view completionHandler:^(ServerType type)
 {
     PGTransactionViewController *txnController = [[PGTransactionViewController alloc] initTransactionForOrder:order];

        //txnController.merchant = [PGMerchantConfiguration defaultConfiguration];

     if (type != eServerTypeNone) {
         txnController.serverType = type;
         txnController.merchant = mc;
         txnController.delegate = self;
         [self showController:txnController];
     }

}];
4

0 回答 0