« Back to Add-on Library

Stripe Endpoint

Stripe Endpoint
Stripe Endpoint creates a dedicated WordPress endpoint specifically designed to be embedded in FileMaker WebViewer objects. Renders a secure Stripe card payment form that communicates directly with FileMaker scripts, allowing users to process Stripe payments directly from within FileMaker databases without leaving the application.

### Key Features

-
FileMaker WebViewer Embedding - Designed specifically for FileMaker WebViewer objects
-
Custom Endpoint URL - Configurable path for WebViewer source URL
-
Stripe Card Element - Secure card input field from Stripe
-
FileMaker Script Integration - Direct communication with FileMaker scripts
-
Payment Method Generation - Creates Stripe payment method tokens
-
JavaScript Bridge - `createStripePaymentMethod()` callable from FileMaker
-
Query Parameter Support - Pass publishable key and script names via URL

### FileMaker Integration Features

-
WebViewer Source URL - Custom endpoint path set as WebViewer source
-
Query Parameters - Pass publishable key and FileMaker script name via URL
-
JavaScript Functions - Call `window.createStripePaymentMethod()` from FileMaker
-
FileMaker.PerformScript - Automatic callback to FileMaker scripts with payment method ID
-
Error Display - Card errors displayed in-form for user feedback
-
Response Handling - FileMaker scripts receive payment method IDs for processing
-
URL Flexibility - Support dynamic endpoint configuration

### Configuration Options

-
Endpoint Path - Custom URL slug (set in admin settings)
-
Publishable Key - Passed via ?pk= query parameter
-
Script Name - FileMaker script to call via ?script= parameter
-
Card Element Styling - Customizable colors and fonts
-
Error Display - Real-time validation errors in the form
-
Minimal HTML - Lightweight page designed for WebViewer embedding
-
Auto-Sizing - Responsive layout fits various WebViewer dimensions

### Requirements

✓ CWP Snippets Pro plugin installed
✓ Stripe account with API keys
✓ WordPress 5.8 or higpublishable key
✓ WordPress 5.8 or higher with custom endpoint support
✓ PHP 7.4 or higher
✓ SSL/TLS certificate on domain
✓ FileMaker 18 or higher with WebViewer support

### FileMaker Implementation

```
1. Create WebViewer object in FileMaker layout
2. Set source URL: https://yoursite.com/stripe-endpoint/?pk=pk_live_xxx&script=ProcessPayment
3. Create script named "ProcessPayment" to handle payment method ID
4. Call JavaScript from FileMaker: createStripePaymentMethod()
5. Receive payment method ID in FileMaker script parameter
6. Send payment method ID to FileMaker payment processing endpoint
```

### Security Features

- PCI-DSS compliant (Stripe handles card data)
- Publishable key only (no secret key in frontend)
- Query parameter validation
- Origin verification for FileMaker calls
- CORS-aware for WebViewer embedding
- Secure error messages (no sensitive data exposure)
### Ideal For

- FileMaker database payment processing
- Customer payment collection within FileMaker
- Stripe card processing in FileMaker solutions
- Embedded payment forms in FileMaker layouts
- Secure card handling without browser leave
- FileMaker solutions requiring payment capability
- Database-integrated payment workflows

### What's Included

✓ Custom endpoint registration
✓ Stripe Card Element integration
✓ WebViewer-optimized HTML/CSS/JavaScript
✓ `window.createStripePaymentMethod()` function
✓ FileMaker.PerformScript integration
✓ Admin configuration interface
✓ Query parameter handling (pk, script)
✓ Error display and validation
✓ Minimal, responsive design

---

Essential component for FileMaker databases requiring secure Stripe card payment processing without leaving the FileMaker application.

Downloads