C# 为什么我在使用SOAP的paypal批量支付上获得交易\ u status=“Failed”?
在沙箱中大规模paypal支付 我正在获取事务_status=失败C# 为什么我在使用SOAP的paypal批量支付上获得交易\ u status=“Failed”?,c#,soap,paypal,paypal-sandbox,paypal-rest-sdk,C#,Soap,Paypal,Paypal Sandbox,Paypal Rest Sdk,在沙箱中大规模paypal支付 我正在获取事务_status=失败 var payout = new Payout { sender_batch_header = new PayoutSenderBatchHeader { sender_batch_id = "batch_" + System.Guid.NewGuid().ToString().Substring(0, 8), email_subject =
var payout = new Payout
{
sender_batch_header = new PayoutSenderBatchHeader
{
sender_batch_id = "batch_" + System.Guid.NewGuid().ToString().Substring(0, 8),
email_subject = "You have a payment"
},
items = new List<PayoutItem>
{
new PayoutItem
{
recipient_type = PayoutRecipientType.EMAIL,
amount = new Currency
{
value = dblAmount.ToString(),
currency = paypalSettings.currency_code
},
receiver = paypalSettings.strReceiverEmail,
note = "Thank you.",
sender_item_id = paypalSettings.strReservationID
}
}
};
var apiContext = GetAPIContext(paypalSettings);
var createdPayout = payout.Create(apiContext, true);
return createdPayout.items[0].transaction_status.ToString();
作为回报,我失败了。
提前感谢。要使用批量付款或支付,您需要确保发件人有足够的贝宝余额。它不会从信用卡/借记卡或银行账户取钱。你必须有足够的贝宝余额
如果情况并非如此,您可以分享从PayPal获得的完整响应。您是否可以逐步完成代码并提供更好的错误消息?PayPal也支持他们的产品,您是否咨询过他们。。因为我们不知道这些方法或者它们看起来像什么,这个方法看起来像什么GetApicontextThank@eshan,这正是我现在需要的,它运行得很好,我得到了Transaction_status=Success。谢谢