Packages

Elixir client for the Zepto Payments API

Current section

Files

Jump to
zepto CHANGELOG.md
Raw

CHANGELOG.md

# Changelog
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [0.3.0] - 2026-01-16
### Added
- Mock server Payments API implementation
- `POST /payments` - Create payments
- `GET /payments/:id` - Retrieve payment details
- Mock server payment simulation endpoints
- `POST /_simulation/payments/:id/approve` - Simulate payment approval
- `POST /_simulation/payments/:id/reject` - Simulate payment rejection
- Payment schema and state management for mock server
- Additional migrations for payment storage
## [0.2.0] - 2024-12-28
### Added
- Mock server for development and testing (`Zepto.MockServer`)
- OAuth endpoints: `/oauth/authorize` and `/oauth/token`
- Full Contacts API implementation
- Mock control endpoints: `/_mock/reset`, `/_mock/seed`, `/_mock/state`
- Postgres storage via parent app's Ecto Repo
- Embedded mode for mounting in Phoenix routers
- Migrations module for easy setup (`Zepto.MockServer.Migrations`)
### Changed
- `TokenManager.exchange_code/2` now stores all tokens (access_token, refresh_token, expires_at) directly in GenServer state
- Simplified `Zepto.Plug.OAuthCallback` - no longer requires oauth_url, client_id, client_secret in config map
- Removed `TokenManager.set_refresh_token/2` - use `exchange_code/2` instead
## [0.1.0] - 2024-12-28
### Added
- Initial release
- OAuth2 Authorization Code flow support with automatic token refresh
- TokenManager GenServer for managing OAuth tokens across processes
- Token persistence via `Zepto.TokenCallback` behaviour
- OAuth callback plug for Phoenix integration (`Zepto.Plug.OAuthCallback`)
- API resources:
- `Zepto.Agreements` - Payment agreements
- `Zepto.BankAccounts` - Bank account management
- `Zepto.Contacts` - Contact management
- `Zepto.Payments` - Payment processing
- `Zepto.PaymentRequests` - Payment request management
- `Zepto.Refunds` - Refund processing
- `Zepto.Transactions` - Transaction history
- `Zepto.Transfers` - Transfer management
- `Zepto.User` - Current user info
- `Zepto.Webhooks` - Webhook management
- `Zepto.Sandbox` - Sandbox testing utilities
- Support for multiple environments (sandbox, prod)
- Lazy token loading to avoid startup ordering issues