Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/318.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
C# 在Paypal摘要中添加换行符_C#_Newline_Paypal - Fatal编程技术网

C# 在Paypal摘要中添加换行符

C# 在Paypal摘要中添加换行符,c#,newline,paypal,C#,Newline,Paypal,我正在尝试在paypalSetExpressCheckoutRequestDetailsType.OrderDescription中添加一个html标记 我正在使用C#和定制购物车,这是我的代码 SetExpressCheckoutRequestDetailsType test = new SetExpressCheckoutRequestDetailsType(); test.OrderDescription = ShoppingCart().Replace("each", "&

我正在尝试在paypal
SetExpressCheckoutRequestDetailsType.OrderDescription中添加一个

html标记

我正在使用C#和定制购物车,这是我的代码

SetExpressCheckoutRequestDetailsType test = new SetExpressCheckoutRequestDetailsType();       
test.OrderDescription = ShoppingCart().Replace("each", "<br />");
SetExpressCheckoutRequestDetailsType test=new SetExpressCheckoutRequestDetailsType();
test.OrderDescription=ShoppingCart().Replace(“每个”,“br/>”);
我已将所有购物车项目信息放入orderDescription中,并希望在它们之间添加一条分隔线


我还尝试了
\r\n
系统.环境.新行
,它们都不起作用。

你想做的事情是不可能以你尝试的方式做的。如果您想在摘要中显示多个项目,则需要将多个项目发送到Paypal。它们不提供任何机制将换行符放入给定字段,如果不提供,则无法完成


订单描述字段用于订单的总体摘要。要包含多个产品,您需要在
test.PaymentDetails.PaymentDetailsItem
字段中包含多个
PaymentDetailsItemType
对象。

您是如何看待它的?你想让它出现在贝宝端吗?还是在你自己的网站上?或者你正在调试器中查看它?我正在paypal summery wall上显示它。目前,paypal summery wall上显示了类似的内容。描述花篮数量:1价格:160英镑圣诞老人雪橇和驯鹿数量:1价格:132英镑我希望它显示新的路线,而不是paypal summery wall上的