weegloo-payment

Integrate payment gateway checkout, verification, and webhook callbacks into Weegloo-backed products.

1|2|Updated Feb 20, 2026
One-click install
npx skills add https://github.com/weeglooapi/weegloo-mcp-plugin --skill weegloo-payment-weeglooapi
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: weegloo-payment
Source: https://github.com/weeglooapi/weegloo-mcp-plugin/tree/main/plugins/weegloo/skills/weegloo-payment
Command: npx skills add https://github.com/weeglooapi/weegloo-mcp-plugin --skill weegloo-payment-weeglooapi

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Products built on Weegloo have no hosted backend, so payment logic must run inside Weegloo Scripts. This Skill guides the full integration of any payment gateway (PG) or Merchant-of-Record into a Weegloo product, ensuring payments are verified server-side and never trusted from browser payloads. ## Core Features & Use Cases - Two integration shapes: CONFIRM (frontend hands a payment id to a Script that pulls truth from the PG's verify API) and CALLBACK (the PG POSTs to a Script endpoint whose first statement verifies the signature). - Default provider policy: If no provider is named, it integrates Stripe in test mode, building the entire checkout first and asking for the pk_test_/sk_test_ keys last, with test card numbers displayed in the checkout UI. - Callback authentication: Chooses between a SpaceAccessToken-scoped /execute endpoint and the token-free /execute/anonymous endpoint based on whether the provider can send custom headers, with HMAC signature verification, replay checks, and idempotency handling. - Use Case: A user asks to add a checkout page to their Weegloo-hosted shop. The Skill creates the order ContentType, a session-creating Script, a confirm Script that compares amount_total against the stored order, and a signed webhook receiver for refunds and renewals. ## Quick Start Add a Stripe test-mode checkout with server-side payment confirmation to my Weegloo product.

Frequently Asked Questions about weegloo-payment

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I accept payments in a Weegloo app without a backend?

Run all server-side payment logic inside a Weegloo Script. The frontend creates a pending order, a Script creates the checkout session with the PG, and a second Script confirms payment by calling the provider's verify API and comparing the amount against your stored order.

How do I verify a Stripe webhook signature in a Weegloo Script?

Extract the timestamp and v1 signature from the Stripe-Signature header with a Regex Capture statement, then run a Signature statement computing HMAC-SHA256 over '{timestamp}.{rawPayload}' keyed with the whsec_ secret in Utf8 encoding. Verify as the first statement and return 401 on failure.

Which payment provider does this skill use if I don't name one?

It defaults to Stripe in test mode, building the entire checkout first and asking for your pk_test_ and sk_test_ keys last. If you name a provider like Toss Payments, Paddle, or PortOne, that provider is integrated instead and Stripe is never substituted.

Can a payment gateway POST callbacks to Weegloo without an auth token?

Yes, by enabling anonymousCallEnabled on the Script and registering the /execute/anonymous endpoint. In that case the signature check is the only authentication, so it must run before any read or write, and the :self ownership filter cannot be used.

Why does my Stripe signature verification keep failing?

The most common cause is signing a re-serialized body instead of the raw payload bytes. Also avoid anchoring the regex with ^...$ since test events append a fake v0 scheme, and keep secretEncoding as Utf8 because the whsec_ prefix is part of the key.

Does this skill handle Weegloo subscription or plan billing?

No. It covers only a product charging its own customers through a PG or MoR. Weegloo's own subscription and plan billing is a separate system and is explicitly out of scope.