StripePurchase constructor

StripePurchase({
  1. required String userId,
  2. StripePurchaseMasamuneAdapter? adapter,
})

Controller for the actual payment by the customer with the payment method created in StripePayment.create.

Execute create->confirm->capture in that order to cause the actual movement of money.

The cancel and refund buttons can be used to cancel a transaction or to refund money after it has been transferred.

StripePayment.createで作成した支払い方法を持つカスタマーが実際の支払いを行うためのコントローラー。

create->confirm->captureの順で実行すると実際の金銭の移動が発生します。

cancelrefundによって途中のキャンセルや金銭の移動後の返金処理を実行可能です。

Implementation

StripePurchase({
  required this.userId,
  super.adapter,
});