Accept payments and manage transactions through Anythink's built-in Stripe integration. Connect your Stripe account once and use the payments API to create charges, manage payment methods, and review transaction history.
Anythink's payment engine is built on Stripe Connect. You connect your Stripe account to your Anythink project — this is a one-time setup — and from that point, all payments flow through Stripe with Anythink managing the API layer.
This means:
anythink pay status
anythink pay connect
Create a Stripe Connect account:
POST /org/{orgId}/integrations/anythinkpay/stripe-connect
Get your onboarding link (to redirect users to Stripe's onboarding flow):
POST /org/{orgId}/integrations/anythinkpay/stripe-connect/onboarding
Check your account status:
GET /org/{orgId}/integrations/anythinkpay/stripe-connect
The standard Stripe flow for taking a payment.
Create a payment intent:
POST /org/{orgId}/integrations/anythinkpay/payments
Request body:
{
"amount": 2999,
"currency": "gbp",
"description": "Order #1042",
"metadata": {
"orderId": "1042"
}
}
Amount is in the smallest currency unit (pence for GBP, cents for USD).
Confirm a payment intent (after collecting card details client-side with Stripe.js):
POST /org/{orgId}/integrations/anythinkpay/payments/payment-intent/{paymentIntentId}/confirm
Capture an authorised payment (for two-step auth + capture flows):
POST /org/{orgId}/integrations/anythinkpay/payments/payment-intent/{paymentIntentId}/capture
Check payment intent status:
GET /org/{orgId}/integrations/anythinkpay/payments/payment-intent/{paymentIntentId}
If a customer has saved their card (using the setup intent flow below), you can charge them directly.
POST /org/{orgId}/integrations/anythinkpay/payments/charge-payment-method
Request body:
{
"paymentMethodId": "pm_...",
"amount": 1499,
"currency": "gbp"
}
Allow customers to save their payment details for faster checkout.
Use this client-side to collect and vault a card without charging it.
POST /org/{orgId}/integrations/anythinkpay/payment-methods/setup-intent
After the customer completes the Stripe.js form with this setup intent, their payment method is saved and can be charged later.
GET /org/{orgId}/integrations/anythinkpay/payment-methods
DELETE /org/{orgId}/integrations/anythinkpay/payment-methods/{paymentMethodId}
Go to Payments in your Anythink dashboard for a full transaction list with filtering by status.
anythink pay payments
anythink pay payments --limit 50
All payments:
GET /org/{orgId}/integrations/anythinkpay/payments
Filter by status (succeeded, pending, failed):
GET /org/{orgId}/integrations/anythinkpay/payments/status/succeeded
Get a specific payment:
GET /org/{orgId}/integrations/anythinkpay/payments/{paymentId}
If you are building a marketplace where you take a percentage of transactions between buyers and sellers, Anythink supports platform fee configuration.
View your fee configuration:
GET /org/{orgId}/integrations/anythinkpay/stripe-connect/fees
Calculate the fee for a given amount:
POST /org/{orgId}/integrations/anythinkpay/stripe-connect/fees/calculate
During development, use Stripe test cards to simulate payments without real charges. Stripe test card numbers are available in the Stripe documentation.
Your Stripe Connect dashboard will show whether you are in test or live mode. Anythink passes through your Stripe mode automatically.