我正在使用 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)