在快速结帐审查页面显示行项目

本文关键字:显示 项目 审查 | 更新日期: 2023-09-27 18:03:10

我使用。net payflow sdk (Payfolow_dotNET.dll)。我有代码,允许客户使用EC,但贝宝审查页面不显示项目的详细信息。它只是说"你可以在付款前看到你的订单详细信息"

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;

关于如何在评论页面上获得项目详细信息有什么想法吗?Thx

在快速结帐审查页面显示行项目

根据Express Checkout for Payflow指南:

你可以通过:

L_NAMEnL_DESCnL_COSTnL_TAXAMTnL_QTYn

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

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

原来我漏掉了一个属性——物品成本。

item.Cost = new Currency(1.01, "USD");

有点奇怪,在Paypal api的其他地方,金额是AMOUNTAMT,但对于行项目,它是COST