Skip to content

info-evry/astro-payments

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Astro Payments

Payment integration module for Astro projects - SumUp checkout and pricing utilities.

Installation

Add as a git submodule:

git submodule add https://github.com/info-evry/astro-payments.git payments

Usage

import { 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 €"

Development

# Install dependencies
bun install

# Run tests
bun test

# Watch mode
bun run test:watch

License

AGPL-3.0 - Asso Info Evry

About

Payment integration module for Astro projects - SumUp checkout and pricing utilities

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •