🍚 깃밥 PRO가 열렸어요 — 월 3,900원 · 알아보기 →
ectoflow/vue-stripe-js

Stripe 결제를 Vue 3 컴포넌트로 구성하는 라이브러리

중간맛 분석

Vue 3 컴포넌트로 Stripe 결제 인터페이스를 통합하는 라이브러리입니다. Stripe publishable key를 설정한 후 @stripe/stripe-js로 Stripe 인스턴스를 로드하고, StripeElements 컨테이너 안에 StripeElement 컴포넌트로 결제 UI를 렌더링합니다. 카드 입력(card), 통합 결제(payment), 편의결제(express checkout) 등 20개 이상의 결제 요소 타입을 지원하며, 사용자 입력 후 confirmPayment()로 결제 처리하면 Stripe 서버로 리다이렉트됩니다. 으로 간단히 설치할 수 있고 라이브 데모도 제공되지만, 공식 유지보수가 중단되어 더 이상 업데이트되지 않습니다.

이런 레포예요

핵심 기능

Vue 3 컴포넌트로 Stripe Elements 쉽게 통합카드·결제·편의결제·IBAN·iDEAL 등 20개 이상의 결제 요소 타입 지원반응형 옵션과 자동 생명주기 관리

먹어본 사람들

실제로 차려 먹어본 손님들의 흔적이에요 — 한마디와 완주 인증 모두 검수 후 공개돼요.

시식평 · 먹어본 사람 한마디

아직 시식평이 없어요. 먹어보셨다면 첫 한마디를 남겨주세요.

다른 레포 시식평 구경하기 →

이 레포로 만든 것들

🖋 완주 인증하기

아직 이 레포로 만든 완주 인증이 없어요. 첫 밥도장을 찍어보세요!

이 레포, 해먹는 법

처음 오셨어요? 어렵지 않아요 — 위에서 아래로 따라 하면 내 컴퓨터에 이 레포를 차려서 바로 맛볼 수 있어요.

준비물

  • Vue 3
  • Stripe 계정 및 publishable key
  • @stripe/stripe-js (npm 의존성)
  • 백엔드에서 PaymentIntent 생성 및 clientSecret 제공

바로 차려먹기Node.js (pnpm)

깃밥이 레포 구조를 확인하고 만든 실행 명령이에요. 터미널에 붙여넣으면 받기부터 실행까지 한 번에 진행돼요.

git clone --depth 1 https://github.com/ectoflow/vue-stripe-js.git &&
cd vue-stripe-js &&
pnpm install &&
pnpm run dev

코드는 내 컴퓨터에서 실행돼요 — 처음 보는 레포라면 내용을 한번 훑어보고 실행하는 습관을 추천해요.

README가 안내하는 자세한 단계 보기
  1. 필수 패키지 설치
npm i vue-stripe-js @stripe/stripe-js
  1. Vue 컴포넌트에서 Stripe 인스턴스 초기화
<script setup lang="ts">
import { onBeforeMount, ref } from "vue"
import { loadStripe, type Stripe } from "@stripe/stripe-js"

const publishableKey = '' // use your publishable key
const stripe = ref<Stripe | null>(null)

onBeforeMount(async() => {
  stripe.value = await loadStripe(publishableKey)
})
</script>
  1. Payment Element 결제 폼 구성
<template>
  <form
    v-if="stripeLoaded"
    @submit.prevent="handleSubmit"
  >
    <StripeElements
      :stripe-key="stripeKey"
      :instance-options="stripeOptions"
      :elements-options="elementsOptions"
      ref="elementsComponent"
    >
      <StripeElement
        type="payment"
        :options="paymentElementOptions"
        ref="paymentComponent"
      />
    </StripeElements>
    <button type="submit">
      Submit
    </button>
  </form>
</template>

<script setup lang="ts">
import { onBeforeMount, ref } from "vue"
import { loadStripe } from "@stripe/stripe-js"
import { StripeElements, StripeElement } from "vue-stripe-js"

import type {
  StripeElementsOptionsMode,
  StripePaymentElementOptions,
} from "@stripe/stripe-js"

const stripeKey = "pk_test_f3duw0VsAEM2TJFMtWQ90QAT" // use your publishable key
const stripeOptions = ref({})
const elementsOptions = ref<StripeElementsOptionsMode>({
  mode: "payment",
  amount: 1099,
  currency: "usd",
  appearance: {
    theme: "flat",
  },
})
const paymentElementOptions = ref<StripePaymentElementOptions>({})
const stripeLoaded = ref(false)
const clientSecret = ref("")

const elementsComponent = ref()
const paymentComponent = ref()

onBeforeMount(() => {
  loadStripe(stripeKey).then(() => {
    stripeLoaded.value = true
  })
})

async function handleSubmit() {
  const stripeInstance = elementsComponent.value?.instance
  const elements = elementsComponent.value?.elements

  if (stripeInstance) {
    const { error } = await stripeInstance.confirmPayment({
      elements,
      clientSecret: clientSecret.value,
      confirmParams: {
        return_url: "https://example.com/order/123/complete",
      },
    })

    if (error) {
      console.log(error)
    }
  }
}
</script>
  1. (선택사항) Stripe.js를 script tag로 로드 - 단계 2 대신 HTML에 추가
<script src="https://js.stripe.com/v3/"></script>

깃밥트라이로 맛보기

받아보기 귀찮고 살짝 불안했다면 — 안전 스캔부터 설치까지 터미널 한 줄로 끝나요.

터미널에 붙여넣으면 깃밥 안전 스캔 → 격리 폴더 clone → 설치 → 실행법 안내까지 자동이에요. 처음이어도 괜찮아요 — 이 한 줄이 전부예요.

npx gitbap-try ectoflow/vue-stripe-js

Node.js만 있으면 설치 없이 실행돼요 · 깃밥트라이가 뭐예요? →

별 추이 · 7일

1817일 증가분은 비교 데이터가 부족해요

확인 시각

활용성 · 따라 만들기 좋은가

베스트 샘플샘플 점수 68/100
  • 관대한 라이선스
  • 테스트 있음
  • 예제 디렉토리
  • 최근 활동
  • AGENTS.md
  • llms.txt
  • 템플릿

🟢 최근 활동 있음 · 2021년 생성

시작하기

사용 전 확인

준비물 · 이용 조건

  • Vue 3
  • Stripe 계정 및 publishable key
  • @stripe/stripe-js (npm 의존성)
  • 백엔드에서 PaymentIntent 생성 및 clientSecret 제공
라이선스MIT
라이선스 원문 확인

프로젝트 활동

저장소 생성

최근 릴리스와 코드 변경 날짜는 GitHub 기록에서 확인해 주세요.

비슷한 레포

소개·기능·태그가 비슷한 프로젝트를 골랐어요.

같은 분야 더 보기

「커머스·결제」 이런 레포, 매주 받아보실래요?

매주 월요일 아침, 골라 담은 밥상만. 광고 없이 · 언제든 해지.

내 레포인가요? README에 깃밥 배지 달기
[![깃밥](https://www.gitbap.com/badge/ectoflow/vue-stripe-js.svg)](https://www.gitbap.com/r/ectoflow/vue-stripe-js)
🔌 클로드에서 바로 써보기 — 깃밥 연결하는 법

깃밥을 클로드에 연결하면 이런 레포를 클로드·커서·Codex에서 바로 찾고 체험할 수 있어요.

방법 ① 커넥터 URL

클로드 설정 → 커넥터에 이 주소를 붙여넣기.

https://www.gitbap.com/api/mcp
방법 ② 플러그인 (체험까지)

플러그인을 설치하면 /gitbap-trending·/gitbap-try 슬래시 커맨드로 레포를 그 자리에서 체험. Claude Code에서 아래 두 줄을 차례로 실행하세요.

/plugin marketplace add jakeparkcolde/gitbap-cowork
/plugin install gitbap-cowork@gitbap
연결 방법 자세히 →

AI가 README 기반으로 요약했습니다 · 원문 보기