简体   繁体   English

通过使用paypal-ruby-sdk创建Paypal定期订阅计划时,如何使卖方支付交易费用

[英]How to make seller pay the transaction fees when creating Paypal recurring subscription plan by using paypal-ruby-sdk


I'm using paypal-ruby-sdk to create recurring subscriptions by credit cards. 我正在使用paypal-ruby-sdk通过信用卡创建定期订阅。 When I create subscription plan, I set transaction(setup_fee) fee to zero. 创建订阅计划时,我将交易费用(setup_fee)设置为零。 So paypal sandbox returns webhooks and the transaction fee is paid to PayPal according to their transaction fee rules. 因此,贝宝沙箱返回webhooks,交易费用根据其交易费用规则支付给贝宝。

But I'm not sure who pays the fee to PayPal. 但是我不确定谁会向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. 费用将在接收方,而不是卖方。

Thank you. 谢谢。

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

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