Upgrade to Pro — share decks privately, control downloads, hide ads and more …

JP_Stripes 5th anniversary - Plan migration consideration -

JP_Stripes 5th anniversary - Plan migration consideration -

This presentation is the slide for the JP Stripes 5th anniversary.

The JP_Stripes is a community of the Stripe which is world wide payment platform.

This presentation includes contens the below

- The PaymentLink
- The CustomerPortal
- How to migration the plan in the Stripe
- How to handle the specific case for part of the migration use case.

https://stripe.com/en-nl/billing

https://hugtech.io/2022/01/30/stripe-subscription-transfer-example/

haruharuharuby

March 22, 2022
Tweet

More Decks by haruharuharuby

Other Decks in Technology

Transcript

  1. Tomoharu Ito
 
 Web: https://hugtech.io
 
 Twitter: @haruharuharuby
 
 


    Community
 
 AAJUG (Amazon Alexa) 
 Twitter: @aajugvoice
 
 AWSUG.nl
 https://awsug.nl/about/ 
 
 JP_Stripes 神戸?
 
 Alexa Champion (2018?) 
 
 

  2. Product (商品) ビジネスが提供する商品またはサービスを表します。 Price (価格) 商品の請求額と請求頻度を定義します。商品コスト、使用通貨、および期間 (サブスクリプションの価格の場合) が含まれています。 Customer (顧客)

    Stripe の Customer オブジェクトを使用することで、同一顧客に対する継続請求の実行と、複数の請求の追跡ができるようになります。サブスク リプションを作成すると、サブスクリプション ID が Customer オブジェクトに渡されます。 PaymentMethod (支払い方法) サービスに対する顧客の支払い方法を表します。たとえば、クレジットカードを Customer オブジェクトに保存して継続的に使用することができま す。通常、Payment Intents API または Setup Intents API とともに使用されます。 Subscription (サブスクリプション) 顧客が登録しているプランに関連する商品の詳細を表します。サブスクリプションにより、定期的に顧客に請求できます。 Invoice (インボイス) 顧客が支払う必要がある金額の明細書です。下書きから、支払い済みになるかその他の最終的な確定に至るまで、支払いのステータスを追跡 します。サブスクリプションではインボイスが自動生成されますが、1 回限りのインボイスを手動で作成することもできます。 PaymentIntent (支払いインテント) 動的な支払いフローを構築する方法です。Payment Intent は、顧客の決済フローのライフサイクルを追跡し、規制で必須とされる同意書、Radar のカスタムの不正使用ルール、またはリダイレクトベースの支払い方法によって要求されたときに、追加の認証ステップを開始します。Payment Intent は、インボイスによって自動的に作成されます。
  3. サービスのリソースを許可 Stripe Elements: Embeddable UI components to build pixel perfect

    payments experiences We built Checkout so you don't have to SaaS側

  4. const deleted = await stripe.subscriptions.del(targetSubscriptionId, { prorate: false }) const

    deleted = await stripe.subscriptionItems.del( subscriptionItems.data[0].id, { proration_behavior: 'none' }) 比例配分をOFF

  5. const param: Stripe.SubscriptionCreateParams = { customer: receiverCustomerId, items: [ {

    price: priceId } ], } if (current_period_end) { param.billing_cycle_anchor = current_period_end } const created = await stripe.subscriptions.create(param) const added = await stripe.subscriptionItems.create({ subscription: subscriptions.data[0].id, proration_behavior: 'none' }) 請求サイクルを調整