Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/r/76.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/cassandra/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
无法使用Acumatica API添加第二种客户付款方式_Acumatica - Fatal编程技术网

无法使用Acumatica API添加第二种客户付款方式

无法使用Acumatica API添加第二种客户付款方式,acumatica,Acumatica,我们通过Acumatica基于屏幕的API添加客户付款(我们使用Authorize.NET的客户信息管理器进行处理)。它适用于客户的第一种付款方式。当我们尝试添加新的付款方法(相同的CustomerProfileId但不同的PaymentProfileId)时,它不会引发异常,但不会添加。它返回现有的支付方式令牌 这是我目前的代码: AR303010Content AR301000 = context.AR303010GetSchema(); co

我们通过Acumatica基于屏幕的API添加客户付款(我们使用Authorize.NET的客户信息管理器进行处理)。它适用于客户的第一种付款方式。当我们尝试添加新的付款方法(相同的CustomerProfileId但不同的PaymentProfileId)时,它不会引发异常,但不会添加。它返回现有的支付方式令牌

这是我目前的代码:

            AR303010Content AR301000 = context.AR303010GetSchema();
            context.AR303010Clear();
            AR303010Content[] AR303010content = context.AR303010Submit(
                new Command[]
            {
                new Value { Value = customerId, LinkedCommand = AR301000.PaymentMethodSelection.Customer },
                new Value { Value = ccType, LinkedCommand = AR301000.PaymentMethodSelection.PaymentMethod },
                new Value { Value = "AUTHNETAPI", LinkedCommand = AR301000.PaymentMethodSelection.ProcCenterID },
                new Value { Value = "QUANTUM", LinkedCommand = AR301000.PaymentMethodSelection.CashAccount },
                //new Value { Value = customerProfileId, LinkedCommand = AR301000.PaymentMethodSelection.CustomerProfileID },
                new Value { Value = paymentProfileId, LinkedCommand = AR301000.PaymentMethodDetails.Value},
                new Value { Value = ccToken, LinkedCommand = AR301000.PaymentMethodSelection.CardAccountNo },
                AR301000.Actions.Save,
                AR301000.PaymentMethodSelection.CardAccountNo
            });

            var cardAccountNo = AR303010content[0].PaymentMethodSelection.CardAccountNo.Value;

还有其他人有类似的问题吗?此问题仅影响API,因为我们可以通过UI添加多个CC付款。

您能告诉我如何从UI向同一客户配置文件添加第二个付款配置文件吗?在我这方面,我只允许为每个客户的付款方式添加一个付款配置文件:。