Bc payments

From OrcaQubits/agentic-commerce-skills-plugins · View interactive version

Bc payments is an AI agent skill from the GitHub repository OrcaQubits/agentic-commerce-skills-plugins. Integrate BigCommerce payments — Payment Processing API, stored payment instruments, payment methods, server-side payment processing for headless, and PCI considerations. Use when building custom payment flows or processing payments programmatically.

How to use this skill

Skill file

BigCommerce Payment Integration

Before writing code

Fetch live docs:

  1. Fetch https://docs.bigcommerce.com/developer/api-reference/rest/admin/payments for the Payments API reference
  2. Web-search site:developer.bigcommerce.com payments processing api for Payment Processing API
  3. Web-search bigcommerce payment methods api configuration for payment method management

Payment Architecture

How Payments Work in BigCommerce

BigCommerce handles payment gateway connections:

Payment Flow (Headless)

  1. Create cart → checkout → order via API
  2. Get accepted payment methods: GET /v3/payments/methods
  3. Create payment access token: POST /v3/payments/access_tokens
  4. Process payment: POST https://payments.bigcommerce.com/stores/{hash}/payments

Payment Processing API

Get Payment Methods

GET /v3/payments/methods?order_id={id} — returns accepted methods for an order:

{
  "data": [
    {
      "id": "stripe.card",
      "name": "Stripe",
      "supported_instruments": [
        { "instrument_type": "VISA", "verification_value_required": true }
      ],
      "test_mode": false,
      "type": "CARD"
    }
  ]
}

Create Payment Access Token

POST /v3/payments/access_tokens:

{
  "order": { "id": 12345 }
}

Returns a single-use access token for the Payments endpoint.

Process Payment

POST https://payments.bigcommerce.com/stores/{hash}/payments

Headers:

{
  "payment": {
    "instrument": {
      "type": "card",
      "number": "4111111111111111",
      "expiry_month": 12,
      "expiry_year": 2025,
      "name": "John Doe",
      "verification_value": "123"
    },
    "payment_method_id": "stripe.card"
  }
}

Important: Sending raw card data requires PCI DSS compliance. Most implementations should use tokenized payment methods instead.

Stored Payment Instruments

Stored Cards

Customers can save payment methods for future purchases:

Using Stored Instruments

{
  "payment": {
    "instrument": {
      "type": "stored_card",
      "token": "abc123tokenvalue",
      "verification_value": "123"
    },
    "payment_method_id": "stripe.card"
  }
}

Payment Method Configuration

Admin-Level

Payment methods configured in BigCommerce admin:

API-Level

GET /v3/payments/methods — list configured payment methods:

Refunds

Via V3 Payment Actions API:

Void / Capture

For gateways supporting authorize-then-capture:

PCI Compliance

Reducing PCI Scope

When PCI Compliance is Required

If you use the Payment Processing API with raw card data (type: "card"), your infrastructure must be PCI DSS compliant.

Best Practices

Fetch the BigCommerce Payment Processing API documentation for exact endpoints, request formats, and supported payment methods before implementing.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.