0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Stripe Connectの連携アカウントのSubscriptionの更新方法(Ruby)

Last updated at Posted at 2023-01-25

連携したアカウントのサブスクリプションの内容を変更する方法が分からずに少し苦労したので、変更方法についてメモを残します。

code .rb
Stripe::Subscription.update(
    "subscription_id", # sub_××××××××××××
    {
        # 変更したい内容を記述
        application_fee_percent: "20", # サブスクリプションの手数料を20%に変更
    },
    { stripe_account: '連携アカウントのID' }  # acct_××××××××××××
)
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?