简体   繁体   English

如何退还目的地费用条带节点js的申请费

[英]How to refund application fee on destination charge stripe node js

Is it possible to refund a charge and avoid the stripe 2% fee?是否可以退还费用并避免条纹 2% 的费用? I have not found any information on if it is or not.我还没有找到任何关于它是否存在的信息。 So my solution is to offer a 90% refund.所以我的解决方案是提供 90% 的退款。 The issue that comes up is that the 'destination' account is receiving/keeping 10%.出现的问题是“目的地”帐户接收/保留 10%。 how do I make it so the 10% that isn't being refunded goes to my accounts balance to cover the application fee instead of the destination account?我如何才能使未退还的 10% 转到我的帐户余额以支付申请费而不是目标帐户?

this is not mentioned anywhere in there docs here:这在此处的文档中没有提及:

https://stripe.com/docs/api/refunds/create https://stripe.com/docs/api/refunds/create

 const data = snapshot.val()
  const chargeToRefund = data.charge
  const ammount = data.refundAmmount
  const uid = context.params.uid
  return stripe.refunds.create({
    charge: chargeToRefund,
    amount : ammount,
    reverse_transfer: true,
    refund_application_fee: true ,
  }, (err, refund) => {   

It looks like the issue here is in the refund_application_fee parameter.看起来这里的问题出在refund_application_fee参数中。 Looking at your code, this is set to 'True'.查看您的代码,这被设置为“真”。 This means that any application fee you are taking on the charge (before sending funds to the 'destination' account) is actually being returned to the 'destination' account when you issue a refund.这意味着您收取的任何申请费(在将资金发送到“目的地”账户之前)实际上会在您退款时退还到“目的地”账户。 To stop this from happening and retain those funds you would just need to change that parameter to 'False'.要阻止这种情况发生并保留这些资金,您只需将该参数更改为“False”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM