-1

我是 sharetribe 的新手,我在我的应用程序中集成了 sharetribe,现在我想在我的 ruby​​ 应用程序中集成支付选项。我搜索了一下,但在我的管理方面没有付款选项。

如何在sharetribe中启用付款选项?

4

2 回答 2

1

Sharetribe 开源代码目前包括用于 BrainTree 支付集成的代码,但该代码不再由托管解决方案使用,也不会由核心团队更新,并且将来可能会被删除。

开源代码还包括与 PayPal 支付相关的代码,但该代码依赖于与 Sharetribe 核心团队和 PayPal 的特殊安排(以促进市场管理员入职),因此它不能直接用于开源安装。

因此,Sharetribe 开源代码可以提供开箱即用的付款选项目前不是很好。我们希望在未来改善这种情况。

可以在以下位置找到更多信息:http: //support.sharetribe.com/knowledgebase/articles/577014(部分“付款”)

于 2015-10-26T11:23:57.280 回答
1

Sharetribe 具有条带和 PayPal 集成。

但是您必须从管理员启用,然后您必须在 DB 上添加一些插入。

**# 设置支付宝网关

    INSERT INTO payment_settings SET active = 1, community_id = 1, payment_gateway = 'paypal', payment_process = 'preauthorize', commission_from_seller = 0, minimum_price_cents = 400, minimum_transaction_fee_cents = 0, confirmation_after_days = 14, created_at = NOW(), updated_at = NOW();

定义变量

 SET @username=(SELECT username FROM people LIMIT 1);

 SET @owner_email=(SELECT e.address from people p left join emails e on 

 (e.person_id=p.id) where p.username=@username);

 SET @merchant_account_id="[merchant_account_id]";

 SET @paypal_username="[paypal_username]";

 SET @paypal_app_id="APP-80W284485P519543T";


 UPDATE people set is_admin=1 where username=@username;

 INSERT INTO paypal_accounts (person_id, community_id, email, payer_id, 
 created_at, updated_at, active) VALUES (null, 1, @owner_email, 
 @merchant_account_id, NOW(), NOW(), 1);

 SET @paypal_account_id=(SELECT LAST_INSERT_ID());

 INSERT INTO billing_agreements (paypal_account_id, billing_agreement_id, created_at, updated_at, paypal_username_to, request_token) VALUES (@paypal_account_id, 'fake-agreement', NOW(), NOW(), @paypal_username, @paypal_app_id);

 INSERT INTO order_permissions (paypal_account_id, created_at, updated_at, request_token, paypal_username_to, scope, verification_code, onboarding_id, permissions_granted) VALUES (@paypal_account_id, NOW(), NOW(), 'fake-token', @paypal_username, null, null, null, 1);

  INSERT INTO transaction_processes (community_id, process, author_is_seller, created_at, updated_at) VALUES (1, 'preauthorize', 1, NOW(), NOW());

SET @transaction_process_id=(SELECT LAST_INSERT_ID());

  UPDATE listing_shapes SET transaction_process_id=@transaction_process_id where name='selling';

  #if you have listings added before you should modify transaction_process_id in listing entries too**


http://publish.yexperiment.com/post/156715320289/sharetribe-with-paypal-payments-the-lost

这会对你有很大帮助。干杯

于 2018-08-01T09:29:10.230 回答