Payment integration module for Astro projects - SumUp checkout and pricing utilities.
Add as a git submodule:
git submodule add https://github.com/info-evry/astro-payments.git paymentsimport { createCheckout, formatPrice } from 'astro-payments';
// Create a SumUp checkout
const checkout = await createCheckout({
amount: 10.00,
currency: 'EUR',
description: 'Membership fee'
});
// Format price for display
const formatted = formatPrice(10.00, 'EUR'); // "10,00 €"# Install dependencies
bun install
# Run tests
bun test
# Watch mode
bun run test:watchAGPL-3.0 - Asso Info Evry