checkout-api

module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 15, 2023 License: Apache-2.0

README

checkout-api

Go Reference Go Report Card Tests License

Payment API server based on the Solana blockchain.

Demo

Checkout page is connected to the mainnet node and demonstrates purchasing via QR code, accruing and applying bonuses, and automatic token swapping if needed.

Demo

Features

  • Supports two payment flows: classic (via solana wallet adapter button) and QR code.
  • Webhooks for transaction status updates on the client's server.
  • Transaction status updates via websocket (useful for client-side widgets).
  • Ability to use as a standalone API server or as a library.
  • Oauth2 authorization for client.
  • Support for authomated token swaps, if a customer pays with a token that the merchant does not support (using Jupiter).
  • A loyalty program for customers to earn bonuses for purchases and redeem them for discounts.
Comming soon
  • Project documentation, in addition to the default on pkg.go.dev
  • Split payments between multiple merchants.
  • Typescript/Javascript SDK and widget for quick integration into a project.
  • Plugins for popular CMS (e.g., WordPress, PrestaShop, etc).
  • Web UI to configure payment server options.
  • More options for the loyalty program: bonus cards with different discount levels or additional benefits, bonus for N purchases, etc.

How it works

How it works According to the Solanapay protocol.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL