Stripe Grid Integration
The Stripe Grid integration allows finance, billing, and sales teams to view, search, inline-edit, and export records from Stripe (Customers, Invoices, Subscriptions, and Charges) directly inside AppColab Grid without duplicating payment data in Salesforce.

What’s Deployed
| Component | Name | Purpose |
|---|---|---|
| Named Credential | Stripe |
Connects to https://api.stripe.com via Stripe External Credential |
| External Credential | Stripe |
Custom authentication with Bearer <Stripe_Secret_Key> |
| Apex Client | StripeClient.cls |
REST client supporting listResources, getResource, createResource, updateResource, deleteResource |
| Apex Data Provider | StripeGridDataProvider.cls |
Implements appcg.GridDataProviderV1 and appcg.GridDataMutationProviderV1 with full CRUD for Customers and Read/Search for Invoices/Subscriptions |
| Permission Set | Integration_Admin |
Grants access to Stripe → ApiKey external credential principal |
One-Time Manual Setup
1. Obtain Your Stripe Secret Key
- In your Stripe Dashboard, switch to Test Mode (or Production).
- Go to Developers → API keys.
- Under Standard keys, copy the Secret key (starts with
sk_test_...orsk_live_...).

2. Configure Credentials in Salesforce Setup
2.1 Create the External Credential
- Go to Setup (gear icon ⚙️ → Setup).
- In the Quick Find box, enter Named Credentials and select Named Credentials.
- Click the External Credentials tab → click New:
- Label:
Stripe - Name:
Stripe - Authentication Protocol:
Custom - Click Save.
- Label:
- In the Principals section, click New:
- Parameter Name:
ApiKey - Sequence:
1 - Click Save.
- Parameter Name:
- In the Custom Headers section, click New:
- Name:
Authorization - Value:
Bearer YOUR_STRIPE_SECRET_KEY(e.g.Bearer sk_test_...) - Sequence Number:
1 - Click Save.
- Name:

2.2 Create the Named Credential
- Click the Named Credentials tab (next to External Credentials) → click New:
- Label:
Stripe - Name:
Stripe - URL:
https://api.stripe.com - External Credential: Select
Stripe - Generate Authorization Header: Leave Unchecked (handled by custom Authorization header)
- Allow Formulas in HTTP Header: Checked
- Label:
- Click Save.

3. Assign Permission Set Access
- In Salesforce Setup, enter Permission Sets in Quick Find.
- Select Integration Admin (or
Appcolab Grid Admin). - Click External Credential Principal Access → click Edit.
- Add
Stripe - ApiKeyto Enabled External Credential Principals. - Click Save and verify the permission set is assigned to your Salesforce users.
Creating a Stripe Grid Definition
- In Salesforce, open AppColab Grid app → Grid Definitions tab → click New Grid Definition.
- Fill in:
- Grid Settings Name:
Stripe_Customers_Grid - Grid Label:
Stripe Customers - Is Active?: Checked
- Data Provider Class:
StripeGridDataProvider - Data Provider Configuration:
{ "resource": "customers" }Tip: Change
"resource"to"invoices","subscriptions", or"charges"to create dedicated grids for other Stripe entities.
- Grid Settings Name:
- Click Save & Next → proceed to Preview.
- Customers load live with Name, Email, Currency, Account Balance, Delinquent status, and Creation Date!

Supported Grid Features
| Resource | Supported Actions | Included Columns |
|---|---|---|
| Customers | View, Search, Inline Edit, Add Customer, Delete | Customer ID, Name, Email, Phone, Currency, Balance, Delinquent, Created |
| Invoices | View, Search, Filter, Export | Invoice ID, Number, Customer Name/Email, Total, Amount Due, Status, Due Date |
| Subscriptions | View, Search, Filter, Export | Subscription ID, Customer, Plan, Status, Current Period Start/End, Cancel at Period End |
| Charges | View, Search, Filter, Export | Charge ID, Customer, Amount, Currency, Status, Paid, Payment Method, Created |
Troubleshooting
401 Unauthorized: Invalid API Key provided: Verify that your Stripe secret key starts withsk_test_orsk_live_and has no trailing whitespace.User doesn't have access to the external credential principal: Assign theIntegration Adminpermission set to your Salesforce user.