Pay4Fun
Quick Start
- Sign up at pay4fun.com and obtain API credentials
- Create a terminal in the Admin Console with the parameters below
- Start processing — the adapter is pre-built and ready to use
Overview
Pay4Fun payment integration
| Provider ID | pay4fun |
| Category | Local Payment Methods |
| Website | pay4fun.com |
Authentication
- Method: Bearer token
- Base URL:
https://api.pay4fun.com/v1
Configuration
Required Parameters
| Parameter | Description |
|---|---|
merchant_id | Merchant ID |
merchant_key | Merchant Key |
merchant_secret | Merchant Secret |
Example Configuration
{
"provider": "pay4fun",
"provider_params": {
"merchant_id": "your_merchant_id_here",
"merchant_key": "your_merchant_key_here",
"merchant_secret": "your_merchant_secret_here"
}
}
Status Mapping
| Provider Status | 4pay Status | Description |
|---|---|---|
paid | charged | |
pending | charging | |
refunded | refunded | |
failed | rejected |
API Reference
| Method | Endpoint | Description |
|---|---|---|
| POST | /payment | |
| GET | /payment/#{URI.encode(payment_id)} | |
| POST | /payment/#{URI.encode(payment_id)}/refund |