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 create recurring subscriptions credit cards. when create subscription plan, set transaction(setup_fee) fee zero. paypal sandbox returns webhooks , transaction fee paid paypal according transaction fee rules.
but i'm not sure pays fee paypal. want seller pay fee.
the below code shows subscription plan creation 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 charge fee seller. welcome.
thank you.
the fees on receiver side , not seller side.
thank you.
Comments
Post a Comment