如何使用allauth设置作用域参数在条带上读写?

2024-04-26 04:00:23 发布

您现在位置:Python中文网/ 问答频道 /正文

我想知道,当用户使用Django allauth通过条带连接订阅时,如何将scope参数设置为read_write?在

我处于开发模式,当我创建一个帐户并尝试对另一个用户的产品收费时,我收到以下错误:

Cannot transfer to a destination that is connected with read_only scope.

我在文档中看到了这个:

The Stripe endpoint needs to at least receive two parameters:

  • response_type, with a value of code.

  • Your client_id.

You’ll likely also want to provide the scope. This parameter dictates what your platform will be able to do on behalf of the connected account. The options are read_write and read_only, with read_only being the default.

但我不知道如何设置读写范围?有人面对这个问题吗?在


Tags: ofthetodjango用户onlyreadwith