Tài liệu dành cho Developer

Tích hợp thanh toán toàn cầu qua API RESTful và SDK đa nền tảng, đáp ứng tiêu chuẩn bảo mật cao nhất.

payout.js
// Khởi tạo Pay27 client
import { Pay27 } from '@pay27/sdk';

const client = new Pay27({
  apiKey: 'pb_live_...',
  environment: 'production'
});

// Tạo payout tự động
const payout = await client.payouts.create({
  gateway: 'paypal',
  amount: 100.00,
  currency: 'USD',
  recipient: 'user@example.com'
});

console.log(payout.id); // txn_xxx

Các Module API Chính

Payouts API

Khởi tạo và xử lý giao dịch chuyển tiền tự động đến tài khoản người nhận.

POST /v1/payouts
GET /v1/payouts/:id
POST /v1/payouts/:id/cancel
Xem chi tiết tài liệu API

Connections API

Kiểm tra cấu hình cổng, kích hoạt và lấy trạng thái kết nối cổng thanh toán.

GET /v1/connections
POST /v1/connections
DELETE /v1/connections/:id
Xem chi tiết tài liệu API

Webhooks API

Cấu hình router webhook, chuyển tiếp dữ liệu giao dịch real-time.

POST /v1/webhooks
GET /v1/webhooks
POST /v1/webhooks/test
Xem chi tiết tài liệu API