gpt4 book ai didi

ios - 错误=错误域=NSCocoaErrorDomain代码=3840 "Garbage at end."

转载 作者:塔克拉玛干 更新时间:2023-11-02 21:07:34 25 4
gpt4 key购买 nike

我在我的应用程序中使用 PayTm SDK。我在设置时遇到上述错误。

  mc.checksumGenerationURL = @"My URL";
mc.checksumValidationURL = @"My URL ";

//这里我传递我的服务器 Urls //第 3 步:使用您要添加的任何参数创建订单。但请确保您包含商家强制参数

    NSMutableDictionary *orderDict = [NSMutableDictionary new];
//Merchant configuration in the order object


orderDict[@"MID"] = @""; //Passes my Id

orderDict[@"CHANNEL_ID"] = @"WAP";
orderDict[@"INDUSTRY_TYPE_ID"] = @"Retail";
orderDict[@"WEBSITE"] = @""; Passed my website



//Order configuration in the order object
orderDict[@"CUST_ID"] = @"123456";
orderDict[@"ORDER_ID"] = [ViewController generateOrderIDWithPrefix:@""];
orderDict[@"TXN_AMOUNT"] = @"1";

orderDict[@"REQUEST_TYPE"] = @"DEFAULT";



PGOrder *order = [PGOrder orderWithParams:orderDict];

//Step 4: Choose the PG server. In your production build dont call selectServerDialog. Just create a instance of the
//PGTransactionViewController and set the serverType to eServerTypeProduction

PGTransactionViewController *txnController = [[PGTransactionViewController alloc] initTransactionForOrder:order];
txnController.serverType =eServerTypeStaging ;

// txnController.loggingEnabled = YES;
// txnController.sendAllChecksumResponseParamsToPG = YES;
txnController.merchant = mc;
txnController.delegate = self;
[self showController:txnController];

请帮帮我..谢谢...

最佳答案

CheckSum 生成 URL 应仅包含三个参数。.aspx 页面不应包含表单代码。请检查下面的屏幕截图。 enter image description here

在 IOS 中,在生成校验和时,只应打印高亮显示的值,但它也是打印格式。

这是错误的,这就是为什么它在最后显示垃圾。

关于ios - 错误=错误域=NSCocoaErrorDomain代码=3840 "Garbage at end.",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36177162/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com