Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

Copy link

Copilot AI commented Nov 25, 2025

Replaces credit card payments with Blockonomics Bitcoin integration, adds configurable shipping methods with weight-based pricing, and provides production deployment infrastructure.

Payment System

  • New blockonomics.py module for Bitcoin payments via Blockonomics API
  • Payment polling with confirmation tracking, automatic wallet crediting
  • Stores amounts as satoshis (BigInteger) for precision

Shipping

  • Configurable shipping methods: DHL, FedEx, National Post, Local Pickup
  • Weight-based cost calculation: total = base_cost + (weight_kg × cost_per_kg)
  • Added weight field to Product model, shipping fields to Order model
[[Shipping.methods]]
id = "dhl"
name = "DHL Express"
base_cost = 1500  # $15.00
cost_per_kg = 500  # $5.00/kg

Database Schema

  • BtcTransaction table for crypto payment tracking
  • Product.weight (Float) for shipping calculations
  • Order.shipping_method, shipping_address, shipping_cost, tracking_number

Deployment

  • greed.service systemd unit for 24/7 operation with auto-restart
  • Multiple instances via CONFIG_PATH environment variable
  • INSTALL.md and DEPLOY.md comprehensive guides

Config Changes

  • Removed [Payments.CreditCard] section
  • Added [Payments.Bitcoin] with API key, min/max amounts, confirmations
  • Added [Shipping] section with methods array
  • Default currency changed to USD, language to English
Original prompt

Debug the whole project add functionality for crypto transactions through blockonomics and remove any other payment configurations and make it able to run 24/7 through a systemd file in a vps and make sure it does not fail and can be used as multiple different bots and does not disconnect on telegram or when making purchases or doing any functionalities. Has a function for shipping configuration with options such as DHL,FEDex or National Post. And defined product options by weight. Create a install guide step by step with commands each explained and necessary packages to install. and a configuration guide to deploy also with commands each explained


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI changed the title [WIP] Add crypto transactions functionality through Blockonomics Add Blockonomics Bitcoin payments, shipping configuration, and systemd deployment Nov 25, 2025
Copilot AI requested a review from bitbybit91 November 25, 2025 10:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants