Skip to content
Back to skills

191 Client Ea89bd96

ASecurity

Client-side JavaScript library for secure payment collection.

  • 9 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 11, 2026
developmentjavascriptgojavabashexpressapisecurity

Works with

  • cli
  • api

Security analysis

A96/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro shows the line behind each finding and how to fix it

Scanned October 11, 2026

npx -y skills add tools-only/X-Skills --skill 191-client_ea89bd96 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 191 Client Ea89bd96?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for 191 Client Ea89bd96
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tools-only-191-client-ea89bd96/badge)](https://www.skillsdirectory.com/skills/tools-only-191-client-ea89bd96)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

SKILL.md
# Stripe.js Reference

Client-side JavaScript library for secure payment collection.

## Installation

Include on **every page** (enables fraud detection):

```html
<script src="https://js.stripe.com/v3/"></script>
```

Or via npm:
```bash
npm install @stripe/stripe-js
```

```javascript
import { loadStripe } from '@stripe/stripe-js';
const stripe = await loadStripe('pk_test_...');
```

## Initialization

```javascript
const stripe = Stripe('pk_test_...', {
  apiVersion: '2024-12-18.acacia',  // Optional
  locale: 'auto',                    // Optional
  stripeAccount: 'acct_xxx',        // For Connect
});
```

## Elements (Payment Forms)

Create container for UI components:

```javascript
const elements = stripe.elements({
  clientSecret: 'pi_xxx_secret_xxx',
  appearance: { theme: 'stripe' },
});
```

### Payment Element (Recommended)

Auto-renders available payment methods:

```javascript
const paymentElement = elements.create('payment');
paymentElement.mount('#payment-element');
```

### Confirm Payment

```javascript
const { error } = await stripe.confirmPayment({
  elements,
  confirmParams: {
    return_url: 'https://example.com/complete',
  },
});

if (error) {
  // Show error to customer
}
```

## Embedded Checkout

Mount Stripe-hosted checkout in your page:

```javascript
const checkout = await stripe.initEmbeddedCheckout({
  clientSecret: 'cs_xxx',
});
checkout.mount('#checkout');
```

## Element Types

| Element | Use Case |
|---------|----------|
| `payment` | Full payment form (recommended) |
| `card` | Card-only input |
| `address` | Shipping/billing address |
| `linkAuthentication` | Link login/signup |
| `expressCheckout` | Apple Pay, Google Pay buttons |

## Appearance API

```javascript
const appearance = {
  theme: 'stripe', // 'night', 'flat', 'none'
  variables: {
    colorPrimary: '#0570de',
    colorBackground: '#ffffff',
    borderRadius: '4px',
  },
  rules: {
    '.Input': { border: '1px solid #ccc' },
  },
};
```

## Security

- **Always load from** `https://js.stripe.com`
- **Only use publishable keys** client-side
- **Never log** card details or tokens
- **Use HTTPS** in production

## Resources

- Full docs: https://docs.stripe.com/js
- Elements: https://docs.stripe.com/payments/elements
- Appearance: https://docs.stripe.com/elements/appearance-api

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.