通过使用paypal-ruby-sdk创建Paypal定期订阅计划时,如何使卖方支付交易费用 [英] How to make seller pay the transaction fees when creating Paypal recurring subscription plan by using paypal-ruby-sdk

查看:112
本文介绍了通过使用paypal-ruby-sdk创建Paypal定期订阅计划时,如何使卖方支付交易费用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我正在使用paypal-ruby-sdk通过信用卡创建定期订阅. 创建订阅计划时,我将交易费用(setup_fee)设置为零.因此,贝宝沙盒会返回Webhooks,并根据其交易费用规则将交易费用支付给贝宝.

但我不确定是谁向贝宝(PayPal)支付了费用.我要卖方支付费用.
下面的代码显示了我编写的订阅计划创建:


I'm using paypal-ruby-sdk to create recurring subscriptions by credit cards. When I create subscription plan, I set transaction(setup_fee) fee to zero. So paypal sandbox returns webhooks and the transaction fee is paid to PayPal according to their transaction fee rules.

But I'm not sure who pays the fee to PayPal. I want a seller to pay the fee.
The below code shows subscription plan creation I wrote:

plan = Plan.new({
  :name => self.unique_key,
  :description => self.title,
  :type => 'fixed',
  :payment_definitions => [{
    :name => self.unique_key,
    :type => 'REGULAR',
    :frequency_interval => 'MONTH',
    :frequency => '1',
    :cycles => '999',
    :amount => {
      :currency => 'USD',
      :value => (self.price / 100.0).ceil(2).to_s
    }
  },
  :merchant_preferences => {
    :setup_fee => {
      :currency => 'USD',
      :value => 0
    },
    :cancel_url => packages_url,
    :return_url => profile_url + "#subscription",
    :max_fail_attempts => '0',
    :auto_bill_amount => 'YES',
    :initial_fail_amount_action => 'CONTINUE'
  }
})


我不确定是否会向卖方收取费用.任何帮助都将受到欢迎.
谢谢.


I'm not sure it will charge fee to the seller. Any help would be welcome.
Thank you.

推荐答案

费用将在接收方而非卖方.

The fees will be on the receiver side and not the seller side.

谢谢.

这篇关于通过使用paypal-ruby-sdk创建Paypal定期订阅计划时,如何使卖方支付交易费用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆