---
title: "stripe-checkout"
description: "Claude Code plugin for persona-based user testing. Simulates Boomers, Millennials, Gen Z, and Gen Alpha users to find UX issues before real users do."
canonical_url: "https://skilld.dev/gh/ncklrs/claude-chrome-user-testing/stripe-checkout"
last_updated: "2026-09-30T03:19:26.000Z"
---

> Index of every page on this site: [llms.txt](https://skilld.dev/llms.txt)

> **Skill from skilld.dev.** Follow the user's requested action.
> If the user asked to fork this Skill, follow the fork workflow below. Do not execute the Skill instructions while copying it.
> Otherwise, follow the instructions below for this session. You do not need to install anything.
>
> Supporting files, fetch one when the Skill refers to it: [test-cards.json](https://skilld.dev/api/skills-raw/ncklrs/claude-chrome-user-testing/stripe-checkout/test-cards.json).
>
> If the user asked to install this Skill, run `npx skilld install ncklrs/claude-chrome-user-testing/stripe-checkout`. Install writes the Skill files into the project, so every session loads them.
>
> ## Fork workflow
>
> A fork creates an editable local Skill with its original author and licence. The request authorizes copying and local installation.
> 1. Check `./skills/stripe-checkout`, the project lockfile, and selected Agent targets together. If the local directory or installed Skill exists, stop. Never overwrite an existing directory or Agent target.
> 2. Read [source metadata](https://skilld.dev/api/v1/skills/ncklrs/claude-chrome-user-testing/stripe-checkout) once. Use sourceUrl, sourceCommit, skillPath, sourceGone, and license. If the source is gone or its path is missing, stop. If license is null, read licence files at the source commit.
> 3. Fetch only the source commit into a temporary Git repository. Do not clone full history. Derive repository_url from sourceUrl, including repository renames. If sourceCommit is absent, resolve the sourceUrl ref once. Set source_commit to that actual commit. Run these commands in one shell call:
>
> ```sh
> git init --quiet "$temporary_dir"
> git -C "$temporary_dir" fetch --quiet --depth=1 "$repository_url" "$source_commit"
> git -C "$temporary_dir" checkout --quiet --detach FETCH_HEAD
> ```
>
> Read applicable licence declarations and notices at that commit. If copying is not permitted, report the restriction and stop.
> 4. Inspect source entries together, then copy the directory containing skillPath into `./skills/stripe-checkout`. Use the user's path if selected. Keep the original SKILL.md, relative links, scripts, binary assets, and executable modes. Exclude .git metadata. Reject symlinks and paths outside the Skill directory. After checking entries, use cp -a where available. A regular source directory needs no custom copy script. Do not save this page wrapper as SKILL.md.
> Preserve author credit, notices, and applicable licence files from repository or parent directories. Add PROVENANCE.md with the Skill page, source URL, actual commit, original path, and licence. Retain any existing PROVENANCE.md and record new provenance separately. Batch source inspection, copying, and provenance work where practical.
> 5. In the project root, run `skilld install ./skills/stripe-checkout --mode copy --plain`. If skilld is unavailable, use `npx skilld install ./skills/stripe-checkout --mode copy --plain`. This known command needs no help lookup. Install does not support --json. Use detected Agent targets, or add --agent for the targets the user selected. Install the local path, never the upstream selector. If installation fails, preserve the local copy and report the exact failure.
> 6. Confirm the local lockfile source and installed Agent copies once. Report the local path, actual commit, and Agent targets. After edits, reinstall the same local path. Upstream updates must not replace it. Do not publish or push unless the user asks.

# Stripe Checkout Testing Skill

This skill provides guidance for testing Stripe checkout flows with any persona. It handles test card data, form detection, and payment-specific narration.

## Purpose

Enable realistic user testing of Stripe payment flows using official test cards, with persona-appropriate reactions to checkout experiences.

## Test Card Reference

Load card data from `test-cards.json`. Key scenarios:

| Scenario | Card | When to Use |
|----------|------|-------------|
| `success` | 4242...4242 | Happy path checkout |
| `decline` | 4000...0002 | Test error handling |
| `3ds-required` | 4000...3155 | Test 3D Secure flow |
| `insufficient` | 4000...9995 | Test specific decline reason |
| `amex` | 3782...0005 | Test Amex (4-digit CVC) |

### Default Test Values

Always use these unless testing specific scenarios:
- **Expiry**: 12/34 (any future date works)
- **CVC**: 123 (or 1234 for Amex)
- **ZIP**: 12345
- **Name**: Test User (or persona's name)
- **Email**: Use `--email` flag value, or default to test@example.com

## Stripe Form Detection

### Hosted Checkout (checkout.stripe.com)

When redirected to Stripe's hosted checkout:
```
URL contains: checkout.stripe.com

Indicators:
- Stripe branding visible
- Email field at top
- Card element with card icon
- "Pay" button with amount
```

### Embedded Elements

When Stripe Elements are embedded in the page:
```
Look for iframes with:
- name containing "__privateStripeFrame"
- src containing "js.stripe.com"

Common element patterns:
- Single card element (all-in-one)
- Separate: card number, expiry, CVC fields
- Payment Request Button (Apple Pay / Google Pay)
```

### Detection Script

Use `browser_evaluate` to detect Stripe:
```javascript
(function() {
  // Check for hosted checkout
  if (window.location.hostname === 'checkout.stripe.com') {
    return { type: 'hosted', detected: true };
  }

  // Check for embedded Elements
  var stripeFrames = document.querySelectorAll('iframe[name*="__privateStripeFrame"]');
  if (stripeFrames.length > 0) {
    return {
      type: 'elements',
      detected: true,
      frameCount: stripeFrames.length
    };
  }

  // Check for Payment Request Button
  var prButton = document.querySelector('[data-testid="payment-request-button"]');
  if (prButton) {
    return { type: 'payment-request', detected: true };
  }

  return { detected: false };
})();
```

## Filling Stripe Forms

### For Hosted Checkout

Fields appear in the main document - use standard form filling:

1. **Email**: Use `browser_type` on email field
2. **Card**: The card element is a single field - type full card number
3. **Expiry**: Type MM/YY format
4. **CVC**: Type 3 digits (4 for Amex)
5. **Name**: Type cardholder name
6. **ZIP**: Type postal code if shown

### For Embedded Elements

Elements are in iframes - interaction requires focusing the iframe:

1. Click/focus on the card element to activate it
2. Type card number directly (it auto-formats)
3. Tab to expiry, type MM/YY
4. Tab to CVC, type digits
5. Tab to submit or click Pay button

### Auto-Fill Approach

Since card entry should be fast (per user's preference):

```
1. Get test card from scenario
2. Use browser_fill_form or browser_type to fill all fields quickly
3. No character-by-character typing
4. Submit immediately after filling
```

## Payment-Specific Narration

### Persona Expressions for Payment

Add these to persona narration when testing checkout:

**Boomer Tech-Averse**:
- "Okay, this is the payment part. Let me make sure this is secure..."
- "I see the little lock icon up there, that's good."
- "Now where do I put my card number? Is this the right field?"
- "Wait, should I put the spaces? Let me try without..."
- "Oh good, it went through! I was nervous there for a second."

**Boomer Tech-Friendly**:
- "Alright, payment time. This looks like my bank's site."
- "Nice, they take all the major cards."
- "Let me get my card from my wallet... okay, ready."
- "Good, it shows the amount clearly. That's what I expected."

**Millennial Tech-Skeptic**:
- "Let me verify this is actually Stripe... yep, secure iframe."
- "Why do they need my phone number for this?"
- "At least they're not storing my card by default."
- "Interesting they don't have PayPal. That's a choice."
- "The price breakdown is clear, no hidden fees. Respect."

**Gen Z Digital Native**:
- "Ugh no Apple Pay? That's annoying."
- "Wait I have to TYPE my card number? What year is this?"
- "Okay fine, let me find my card... where did I put it..."
- "*types quickly* Done. Let's go."
- "Nice, confirmation came through instantly. W."

**Gen Alpha Tablet Kid**:
- "Mommy needs to help with this part..."
- "Lots of numbers! Like math!"
- "Why can't I just tap? Tap tap tap!"

**Impulse Buyer**:
- "Just take my money! Where's Apple Pay?"
- "Ugh, account creation? SKIP. Guest checkout, please."
- "Finally. Pay now. Done. Moving on."

**Comparison Shopper**:
- "Let me verify the total one more time..."
- "SSL certificate... Stripe... okay, this is legit."
- "I should screenshot this for my records."

### Frustration Triggers (Payment)

Watch for these and react appropriately:
- No express checkout options (Apple Pay, Google Pay)
- Required account creation before payment
- Unexpected fees appearing at checkout
- Shipping cost not shown until payment page
- Payment form errors with unclear messages
- 3D Secure popups (especially unexpected)
- Slow payment processing (>3 seconds)
- No order confirmation displayed
- Receipt email not arriving

### Positive Reactions (Payment)

Note and appreciate these:
- Apple Pay / Google Pay available
- Guest checkout option
- Clear price breakdown with no surprises
- Stripe badge / security indicators visible
- Instant confirmation with order number
- Receipt email arrives quickly
- Saved payment option for returning users

## 3D Secure Handling

When `3ds-required` card triggers authentication:

1. **Detect Modal**: Look for Stripe 3DS iframe/modal
2. **Narrate**: Express surprise/concern based on persona
3. **Complete**: In test mode, there's usually a "Complete authentication" button
4. **Continue**: Return to confirmation flow

Persona reactions to 3DS:
- Tech-averse: "Oh no, what's this popup? Is something wrong?"
- Tech-friendly: "Ah, extra security. Like my bank does."
- Tech-skeptic: "3D Secure... okay, that's actually good."
- Digital native: "Ugh, another step? Just let me pay!"

## Report Section: Payment Experience

Add this section to reports when `--stripe` flag is used:

```markdown
## Payment Experience

### Checkout Summary
- **Checkout Type**: Stripe Elements (embedded) / Hosted
- **Express Options**: Apple Pay [Yes/No], Google Pay [Yes/No]
- **Guest Checkout**: [Available/Required Account]
- **Test Card Used**: [scenario] ([card number prefix]...)
- **3D Secure**: [Triggered/Not Triggered]
- **Result**: [Payment Successful/Declined/Error]

### Payment Flow Timeline
1. [Time] Reached checkout page
2. [Time] Started filling payment form
3. [Time] Submitted payment
4. [Time] Received confirmation

### Payment Friction Points
- [List issues that slowed or frustrated the payment process]

### Payment Positives
- [List things that made payment smooth or trustworthy]

### Security Perception
- [How secure did the checkout feel to this persona?]
```

## Integration with Main Testing Flow

When `--stripe` flag is active on `/user-test` or `/stripe-test` is used:

1. **Pre-checkout**: Test normal flows until reaching checkout
2. **Checkout Detection**: Identify Stripe form type
3. **Express Options Check**: Note if Apple Pay / Google Pay available
4. **Form Analysis**: Identify required fields
5. **Auto-Fill Payment**: Fill card details from test scenario
6. **Submit & Wait**: Submit and wait for response
7. **Handle 3DS**: If triggered, complete authentication
8. **Confirmation**: Verify success/failure
9. **Report**: Include Payment Experience section
