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

可紊 提交于 2019-12-12 03:29:05

问题



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.


回答1:


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

Thank you.



来源:https://stackoverflow.com/questions/43285569/how-to-make-seller-pay-the-transaction-fees-when-creating-paypal-recurring-subsc

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!