Возможно ли разрешить пользователям оплату через сайт Stripe? Многие пользователи моего форума предпочли бы этот вариант, так как он кажется им более безопасным, а интерфейс гораздо чище. Кроме того, это позволит мне включить больше опций Stripe, например, PayPal.
Да, это можно сделать, просто разместив ссылку для оплаты через Stripe в сообщении на форуме.
Возможно, существует и другой способ интеграции Stripe с Discourse напрямую.
Это может сработать, но я хочу автоматически назначать группу сразу после успешной оплаты.
Не уверен, можно ли это автоматизировать, или же вам придётся делать это вручную.
Это может быть запросом на новую функцию. Я поискал и нашёл, что эта тема уже обсуждалась, либо задавались похожие вопросы.
Нашёл вот эту тему, не знаю, будет ли она полезной:
This is underway and should be wrapped up next week. Address fields will be passed to Stripe and captured for the Stripe customer.
Это можно автоматизировать с помощью текущего плагина подписок (он слушает вебхуки), но я задумался, как связать это со ссылкой на оплату Stripe.
Возможно, здесь есть ответы:
Continuing the discussion from Discourse Subscriptions :
Possible bug: A user is added to the Discourse group when a subscription starts, but the user is not removed when the subscription is cancelled.
I’ve cancelled via Discourse (logged in as the user) and cancelled via Stripe’s website, but in neither case was the test user removed from the group. Perhaps it is relevant that I am still in Stripe test mode.
I’m putting this in the “bug” category but if I’m missing something then feel free t…
Summary
The Discourse Subscriptions plugin allows site owners to sell recurring and one-time purchase subscriptions that grant access to a group on a Discourse instance.
Install Guide
This plugin is bundled with Discourse core. There is no need to install the plugin separately.
The Discourse Subscriptions plugin allows you to create one-time as well as recurring subscriptions that users can pay for in order to access gated content. This can be a great w…
Я нашел плагин, который может быть полезен в моем случае: Stripe Donations Plugin
Однако он не поддерживается. Я попробую его и обновлю вас.
РЕДАКТИРОВАНИЕ: Похоже, у него есть собственная страница оплаты, как и у других, буду продолжать искать.
Вот другая тема с похожим вопросом:
Is it possible for users to charge a fee to permit other users access to their groups, and related group materials? I know it is not an off-the-shelf feature, but is it possible?
Paid group membership (in turn granting access to specific categories) is an existing feature. Take a look in #plugins
Examples include Patreon , Procourse Memberships and Subscriptia .
If you have an existing website which handles such memberships you can also deliver group membership information via your SSO payload.
Users can’t charge others fees directly on a site they don’t own, would it make sense for them to even be able to?
nathank
(Nathan Kershaw)
06.Октябрь.2023 06:13:34
10
Скорее всего, это будет лучший ответ, но он ещё не завершён. Возможно, вам стоит внести свой вклад в проект:
@Alex_王 @Jonathan5 @nathank
if you want you can try out the updated code you can check out the branch from this PR:
you will have to run the stripe cli locally to relay the webhook messages. This is the command to use:
stripe listen --forward-to http://localhost:4200/subscriptions/hooks --api-key yourapikey
you also need to add the stripe webhook secret to the discourse instance (as the plugin setting “webhook secret”). You can find it in the code sample on the right in the webhook creatio…