📖 Payment API Integration Guide

This guide explains how to integrate the **Alipay Payment API**, including payment requests and callback handling.

📌 1. API Overview

This API allows merchants to accept payments through **Alipay**, process payment callbacks, and verify payment statuses.

📌 2. API Endpoints

📌 3. Parameter Description

🔹 3.1 **Payment Request Parameters**

Parameter Type Description
email String User email (used to link the order)
amount Float Payment amount (in US$)
url String Redirect URL after successful payment

🔹 3.2 **Payment Success Callback**

Parameter Type Description
email String User email (used to link the order)
amount Float Payment amount (in US$)
url Redirect URL after successful payment
trade_no String we give each tranctions an id and aftersales details
custom_params String payment password

📌 4. Payment process Examples

🔹 4.1 **Initiate Payment Request**

GET https://p.zlib.store/pay?email=support@z-lib.fm&amount=1&url=https://z-library.sk

🔹 4.2 **Handle Payment Callback**

POST ?email=support@z-lib.fm&amount=1&url=https://z-library.sk&trade_no=20250309191532&password=waittoset

📌 5. Notes

✨ powered by zlib.store ✨