C# 从Paypal订单服务器端检索发货地址
我已经在客户端实现了Paypal智能按钮,我正在使用C# 从Paypal订单服务器端检索发货地址,c#,paypal,C#,Paypal,我已经在客户端实现了Paypal智能按钮,我正在使用PaypalCheckoutSdknuget软件包在服务器端捕获资金 在结账过程中,paypal从客户处收集发货地址。捕获资金后如何检索配送地址 这就是我从Paypal获取资金的方式,它给了我一个没有发货地址的订单对象: OrdersCaptureRequest request = new OrdersCaptureRequest(orderId); request.Prefer("return=represen
PaypalCheckoutSdk
nuget软件包在服务器端捕获资金
在结账过程中,paypal从客户处收集发货地址。捕获资金后如何检索配送地址
这就是我从Paypal获取资金的方式,它给了我一个没有发货地址的订单对象:
OrdersCaptureRequest request = new OrdersCaptureRequest(orderId);
request.Prefer("return=representation");
request.RequestBody(new OrderActionRequest());
var response = await _client.Execute(request);
var result = response.Result<Order>();
OrdersCaptureRequest=neworderscaptureRequest(orderId);
请求。首选(“返回=表示”);
request.RequestBody(neworderactionrequest());
var response=wait_client.Execute(请求);
var result=response.result();
订单对象确实返回发货地址
它将位于订单对象->采购单元->装运->地址中