次のコードを使用して2Checkout Payment APIを統合しましたが、顧客の承認時にエラーが発生しました。"値はnullにはできません。パラメータ名:s" 2Checkout payment API
フォロー:https://www.2checkout.com/documentation/libraries-net-tutorial
コード:
public ActionResult Process()
{
TwoCheckoutConfig.SellerID = "801785575";
TwoCheckoutConfig.PrivateKey = "SA7947DS-CWE1-1233-4EE-33331DA607B6";
TwoCheckoutConfig.Sandbox = true;
try
{
var Billing = new AuthBillingAddress();
Billing.addrLine1 = "123 test st";
Billing.city = "Columbus";
Billing.zipCode = "43123";
Billing.state = "OH";
Billing.country = "USA";
Billing.name = "Testing Tester";
Billing.email = "[email protected]";
var Customer = new ChargeAuthorizeServiceOptions();
Customer.total = (decimal)1.00;
Customer.currency = "USD";
Customer.merchantOrderId = "123";
Customer.billingAddr = Billing;
Customer.token = Request["token"];
var Charge = new ChargeService();
var result = Charge.Authorize(Customer);
Console.Write(result);
}
catch (TwoCheckoutException e)
{
Console.Write(e);
}
return View();
}
ガットエラー "の値がnullにすることはできません。パラメータ名:S" ..
は返事をありがとうございましたが、ここで、iは、更新されTwoCheckOut.dllを見つけたことができます。私はここからDLLを適用しているhttps://github.com/2Checkout/2checkout-dotnet – Pratik
パッケージのアップデート後も同じエラーが出る – Pratik