Paypal Express Checkout:可以使用ActiveMerchant设置收件人吗?

时间:2013-04-17 14:00:46

标签: ruby-on-rails ruby paypal activemerchant

我正在使用ActiveMerchant和Paypal Express Checkout付款。可以设置收件人吗?例如:

gateway =  ActiveMerchant::Billing::PaypalExpressGateway.new(
  :login => "...",
  :password => "...",
  :signature => "..."
)

response = gateway.setup_purchase(100,
  ip: request.remote_ip,
  return_url: 'http://localhost:3000/cancel',
  cancel_return_url: 'http://localhost:3000/return',
  recipient: 'seller@example.com' # Set recipient here
)

redirect_to gateway.redirect_url_for(response.token)

1 个答案:

答案 0 :(得分:-1)

收件人的意思是什么?您正在设置网关以将所有付款直接发送给这些凭据的所有者。