我已经成功安装了 Venmo 和 Braintree API 集成。我想知道有没有办法在其中集成链接系统?就像用户可以向没有 Venmo 帐户的其他用户支付一些金额,并且一些转账金额也将支付给商家
提前致谢
我在布伦特里工作。如果您有更多问题,请随时联系我们的支持团队。
是的,Braintree 的 Marketplace 产品正是这样做的。您可以支付任何电话号码/电子邮件地址,即使是还没有 Venmo 帐户的人:
result = Braintree::MerchantAccount.create(
:individual => {
:first_name => "Jane",
:last_name => "Doe",
:email => "jane@blueladders.com",
:phone => "5553334444",
:date_of_birth => "1981-11-19",
:address => {
:street_address => "111 Main St",
:locality => "Chicago",
:region => "IL",
:postal_code => "60622"
}
},
:funding => {
:destination => Braintree::MerchantAccount::FundingDestination::Email,
:email => "funding@blueladders.com",
},
:tos_accepted => true,
:master_merchant_account_id => "14ladders_marketplace",
:id => "blue_ladders_store"
)
您可以对将支付给您的每笔交易收取服务费:
result = Braintree::Transaction.sale(
:merchant_account_id => "blue_ladders_store",
:amount => "10.00",
:credit_card => {
:number => "5105105105105100",
:expiration_date => "05/2012"
},
:service_fee_amount => "1.00"
)