为什么我在使用 SOAP 的 paypal 批量付款中收到 transaction_status = "Failed"?
why am I getting transaction_status = "Failed" on paypal Mass Payment using SOAP?
在沙盒海量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();
在 return 我得到 "Failed"。
提前致谢。
要使用批量付款或付款,您需要确保发件人有足够的 PayPal 余额。它不会从 credit/debit 或银行帐户中取款。您必须有足够的 PayPal 余额。
如果不是这种情况,您可以分享您从 PayPal 获得的完整回复。
在沙盒海量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();
在 return 我得到 "Failed"。 提前致谢。
要使用批量付款或付款,您需要确保发件人有足够的 PayPal 余额。它不会从 credit/debit 或银行帐户中取款。您必须有足够的 PayPal 余额。
如果不是这种情况,您可以分享您从 PayPal 获得的完整回复。