gpt4 book ai didi

c# - 在 Express Checkout 审核页面中显示订单项

转载 作者:太空宇宙 更新时间:2023-11-03 16:18:33 25 4
gpt4 key购买 nike

我正在使用 .net payflow sdk (Payfolow_dotNET.dll)。我有允许客户使用 EC 的代码,但 Paypal 评论页面不显示项目详细信息。它只是说“您将能够在付款前查看您的订单详细信息”

UserInfo creds = new UserInfo(user, vendor, partner, pwd);
string url = "";
if (paypalObj.Testing) {
url = ConfigurationManager.AppSettings.Get("PayflowTest");
} else {
url = ConfigurationManager.AppSettings.Get("PayflowLive");
}
PayflowConnectionData connection = new PayflowConnectionData(url);
Invoice inv = new Invoice();
inv.Amt = new Currency(1.01, "USD");
inv.OrderDesc = "test item";
inv.Comment1 = "test item";
// so far this next bit is not helping
LineItem item = new LineItem();
item.Amt = new Currency(1.01, "USD");
item.Desc = "test item";
item.Qty = 1;
item.Type = "DIGITAL";
item.Name = "test item";
item.ItemNumber = "1";
inv.AddLineItem(item);
ECSetRequest setRequest = new ECSetRequest(websiteBase + "Donate/PayPalConfirmPayment", websiteBase + "Donate/Donate");
setRequest.PaymentType = "instantonly";
setRequest.NoShipping = "1";
//setRequest.AddrOverride = "1";
PayPalTender tender = new PayPalTender(setRequest);
SaleTransaction trans = new SaleTransaction(creds, connection, inv, tender, PayflowUtility.RequestId);
Response resp = trans.SubmitTransaction();
TransactionResponse transResp = resp.TransactionResponse;

关于如何在评论页面上获取项目详细信息的任何想法?谢谢

最佳答案

根据 Express Checkout for Payflow guide :

你可以通过:

L_NAMEL_DESCnL_COSTnL_TAXAMTnL_QTYn

有关如何实现这些的信息,请参阅指南的第 57 页。

这些变量将允许您在 PayPal 结帐页面上显示行项目详细信息。

关于c# - 在 Express Checkout 审核页面中显示订单项,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23613631/

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