在Sandbox Mass paypal付款 我收到Transaction_status =失败
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();
作为回报我得到“失败”。 提前谢谢。
答案 0 :(得分:1)
要使用群发付款或付款,您需要确保发件人有足够的PayPal余额。它不会从信用卡/借记卡或银行账户中获取资金。您必须有足够的PayPal余额。
如果不是这种情况,您可以分享您从PayPal获得的完整回复。