Skip to content

Release notes: 2.34.0

Dory Azar edited this page Nov 28, 2026 · 1 revision

Caligrafy Quill 2.34.0 lets a customer save a card once and be charged later in one tap.

Caligrafy\Payment took payments only while the customer was on a Stripe page. A marketplace that charges after the fact (a meal approved once it is eaten, a renewal) needs the card kept by Stripe and charged without the customer there. It now has saved cards:

$payment = new Caligrafy\Payment();
$customer = $payment->createCustomer($email, $name, array('user_id' => (string) $userId))['data']->id;
// Stripe's page in setup mode: the card is saved, nothing is charged
$page = $payment->createSetupCheckout($customer, $home . 'card/saved?session={CHECKOUT_SESSION_ID}', $home . 'profile', 'usd', null, array(), array('card'));
// back from it: the card and its label ("Visa •••• 4242")
$card = $payment->savedCard($_GET['session']);
// later: charge it, with a marketplace's fee and the seller's share
$paid = $payment->chargeSavedCard(5600, 'usd', $customer, $card['data']['payment_method'], array('order' => '42'), 'Dinner',
    array('application_fee_amount' => 560, 'transfer_data' => array('destination' => 'acct_...')), 'order-42');
  • When the bank wants the cardholder to confirm a charge (3-D Secure), chargeSavedCard() answers 'requires_action' => true: take that payment on a page with them (createCheckout()). A decline gives Stripe's 'code'.
  • An idempotency key per order (and amount) means a double tap or a retry never charges twice.
  • removeSavedCard() detaches a card from its customer.
  • new Payment($client) takes a stand-in for Stripe's client, so a project's tests run without Stripe.
  • Current Stripe API versions refuse payment_method_types on Checkout: createSetupCheckout() sends allowed_payment_method_types (gotcha G191).
php caligrafer.php update

Claude Code plugin 1.46.0.

See the payments page and the changelog.

Caligrafy: Describe it. Approve it. Ship it. Your idea turned into a complete app: every feature built once, for web pages, Vue apps, a REST API and AI agents, and online.

Start here

Why Caligrafy: the benefits, the measurements, and what it is not yet

  1. Quickstart with Claude: describe it, approve it, ship it

    or the Quickstart: the same three steps by hand, in 5 minutes

  2. How Caligrafy works: the ideas in 5 minutes
  3. Your first capability: build a feature, page included

Capabilities

Experiences

Data and people

  1. Models
  2. Relationships
  3. Queries: filters, paging, related rows
  4. Sign-in, users and tokens

Built-in features

Put it online

Build with AI

Reference

Clone this wiki locally