본문으로 건너뛰기
Skillpedia
분석 및 스프레드시트16k · #10853

trace-a-payment

하는 일

이 스킬은 Stripe의 연결된 기록을 읽어 결제, 인보이스, 구독을 설명합니다. 대시보드의 합계가 아니라 돈에 관한 정확한 답이 필요한 사람을 위한 스킬입니다.

사용하는 경우

  • ✓Stripe ID를 가지고 있고 그것이 무엇을 가리키는지 알고 싶을 때.
  • ✓결제가 실패했고 실제 이유를 알아야 할 때.
  • ✓고객이 무엇을 결제하고 있는지, 또는 인보이스가 어떤 상태인지 알고 싶을 때.

스킬 링크

https://github.com/ParadevAI/Paradev/blob/main/plugins/stripe/skills/trace-a-payment/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/ParadevAI/Paradev/blob/main/plugins/stripe/skills/trace-a-payment/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“이 Stripe 결제는 왜 실패했나요? 결제 ID는 여기 있습니다.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 먼저 어떤 계정과 모드를 읽고 있는지 확인한 뒤, 결제에서 청구까지 연결을 따라갑니다. 거절 코드와 결과 필드를 읽어 실패 이유를 쉬운 말로 설명합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Read the chain, not one object

A Stripe answer is only as good as the objects it was read from. Every question about money that already moved has an exact object chain behind it, and the chain is short. Walk it.

1. Say which account and which mode you are in

Start with get_stripe_account_info. Live mode and a sandbox are separate worlds that share nothing: an id created in one returns "No such charge" in the other, which reads like a deleted record rather than a wrong environment. Name the account and the mode in your answer so the user can tell whether you looked where they meant.

2. Let the id prefix tell you what you are holding

Stripe ids are typed. ch_ is a charge, pi_ a PaymentIntent, cus_ a customer, in_ an invoice, sub_ a subscription, cs_ a Checkout Session, re_ a refund, dp_ a dispute, po_ a payout, txn_ a balance transaction. Use stripe_api_search to find the right method, stripe_api_details to get its real parameters, then stripe_api_read. Never invent a field name: the details tool exists so you do not have to.

3. For a failure, read the decline, not the status

status: "requires_payment_method" says nothing a user can act on. The cause lives in two places:

  • The PaymentIntent's last_payment_error: the decline code and message.
  • The charge's outcome: network_status, reason, risk_level, seller_message, which is the sentence written for you to pass on, and advice_code.

Read the retry decision off advice_code, not off the decline code. It has three values and each is Stripe's advice rather than a verdict: try_again_later means a retry may work, do_not_try_again means Stripe advises against reusing the card for this transaction, and confirm_card_data means some of the submitted card details are wrong and the customer should check them against the card. Stale details on a stored payment method trigger that one as readily as a typo does. The decline code answers a different question, and most of them are vague on purpose: do_not_honor and generic_decline both mean "the issuer declined and did not say why", so calling either permanent is a guess the advice code already settles.

To tell an issuer decline from a payment Stripe Radar blocked before the issuer ever saw it, read outcome.type: blocked with a reason such as highest_risk_level is Radar. A network_status of not_sent_to_network says only that the network never saw it, and a risk_level is attached to payments Radar allowed as well, so neither one attributes the failure on its own.

4. Follow the chain the question actually asks about

  • "Why this amount?" is invoice to subscription to price to product, plus discount and tax on the invoice. The number on the invoice is the end of a chain, not a fact in itself.
  • "What did we keep?" is charge to balance_transaction, which carries fee and net. The charge amount is not revenue, and that net is not the end of it either: a refund and a dispute each create their own balance transaction, so a refunded charge still reports the original net. Net off its refunds and disputes before reporting a figure, and page the refund list to the end: the charge embeds only the first ten, so a charge refunded in many parts overstates what you kept until has_more is false.
  • "Where is the money?" is get_balance_summary or payout to balance transactions, not the sum of recent charges.
  • "Is this customer current?" is subscription status plus current_period_end plus cancel_at_period_end. An active subscription with cancel_at_period_end: true is a churn you would otherwise report as healthy.

5. Convert amounts deliberately

Stripe amounts are integers in the smallest currency unit. amount: 2000 in USD is $20.00, but JPY has no minor unit, so amount: 2000 is 2000 yen, and dividing by 100 would under-report it by a hundredfold. Read the currency field, then convert. State the currency in every figure you report.

6. Answer with ids, mode, and the window

Quote the id of every object you read, the mode you read it in, and the time window for anything aggregated. For a count or a rate, prefer stripe_analytics over paging a list yourself: a list request defaults to 10 items and newest first, so "I found 10 charges" is a page size, not a finding.

Anti-patterns

  • Mixing modes. A sandbox id in a live-mode question returns a clean, confident 404. Check the mode before you b
자주 묻는 질문

계정 모드가 왜 중요한가요?

실서비스 데이터와 샌드박스 데이터는 서로 분리되어 있어서, 한쪽의 ID가 다른 쪽에서는 없는 것처럼 보일 수 있습니다.

ID가 무엇인지 어떻게 알 수 있나요?

Stripe ID는 객체 종류를 나타내는 접두사로 시작합니다. 예를 들어 ch는 청구, pi는 결제 인텐트를 뜻합니다.

필드 이름을 추측하나요?

아닙니다. 읽기 전에 각 메서드의 실제 매개변수를 확인하므로 없는 필드를 만들어내지 않습니다.

상세 정보

작성자의 원본 설명

Answer a question about money that already moved in Stripe — why a charge failed, what a customer was billed, where an invoice or payout stands — by reading the object chain instead of guessing from a dashboard total. Use when the user pastes a Stripe id, asks why a payment failed, asks what a customer is paying, or wants revenue, invoice, or subscription state.

repo: ParadevAI/Paradev

인기도

GitHub 스타
16k
순위
#10853
라이선스
—
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬