Skip to content

makepay-io/makepay-cpp

Repository files navigation

MakePay C++ SDK

C++17 SDK for creating MakePay payment links from native applications, game servers, embedded services, and Unreal-side backend tools.

Features

  • Header-only client API with a pluggable HTTP transport.
  • Structured payload and response handling through nlohmann::json.
  • MakePay webhook HMAC verifier using OpenSSL Crypto.
  • CMake target: MakePay::makepay.
  • No MakePay credentials in client binaries unless your application supplies them at runtime.

Install

add_subdirectory(makepay-cpp)
target_link_libraries(your_app PRIVATE MakePay::makepay)

Usage

#include <makepay/client.hpp>

makepay::Config config;
config.key_id = std::getenv("MAKEPAY_KEY_ID") ? std::getenv("MAKEPAY_KEY_ID") : "";
config.key_secret = std::getenv("MAKEPAY_KEY_SECRET") ? std::getenv("MAKEPAY_KEY_SECRET") : "";

makepay::Client client(config, your_http_transport);

makepay::PaymentLinkPayload payload;
payload.title = "Game credits";
payload.amount = "9.99";
payload.currency = "USD";
payload.metadata = {{"source", "cpp"}};

auto link = client.create_payment_link(payload);

The SDK accepts any transport matching:

makepay::HttpResponse transport(const makepay::HttpRequest& request);

This keeps the SDK usable with libcurl, cpp-httplib, Unreal HTTP, Boost.Beast, or an internal engine transport.

References

Development

cmake -S . -B build -DMAKEPAY_BUILD_TESTS=ON
cmake --build build --parallel
ctest --test-dir build --output-on-failure
node scripts/validate.mjs

About

C++17 SDK for MakePay payment links and webhook verification. Cryptocurrency payment gateway for direct self-custody merchant-wallet settlement, decentralized swaps, and 70+ coin/20+ chain auto-conversion.

Topics

Resources

License

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors