LoginSignup
2
0

More than 1 year has passed since last update.

'Stripe' is not defined でStripeが実装できないあなたへ

Posted at

タイトルままです。

結論

Stripe変数の定義の所を以下の文からwindowオブジェクトをつけてあげると解決しました。

notWorked
var stripe = Stripe("PUBLISH_KEY");
worked
var stripe = window.Stripe("PUBLISH_KEY");

Stack Overflowで見つけたので、日本勢でもし私と同じ問題に直面した方向けの共有でした。

背景

Vue x Firebase構成でFrontからStripe CDN呼び出そうとした時にココで詰まりました。
Stripe SDK使うのを諦めようとした日もあった程です。

気を付けましょう。

2
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
2
0