Download the PHP package aungmyokyaw/lapakgaming without Composer
On this page you can find all versions of the php package aungmyokyaw/lapakgaming. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download aungmyokyaw/lapakgaming
More information about aungmyokyaw/lapakgaming
Files in aungmyokyaw/lapakgaming
Package lapakgaming
Short Description Laravel package for LapakGaming Reseller API integration
License MIT
Informations about the package lapakgaming
LapakGaming Reseller API
Laravel package for LapakGaming Reseller API integration.
About
This package provides a simple and efficient method to integrate with LapakGaming Reseller API using Laravel. It supports all major operations including product management, order creation, and balance checking.
Installation
Configuration
You will need to publish the configuration file to your application:
After publishing, you will find the configuration file at config/lapakgaming.php
. Fill out the necessary data:
api_key
: Your LapakGaming API Secret Keyenvironment
: 'development' or 'production'callback_url
: Your webhook callback URL (optional)
Usage Examples
- Get Categories
- Get Products
- Get All Products
- Get Best Products
- Get Balance
- Order
- Order Status
- Supported Country Codes
Get Categories
Get Products
Get Products by Category
Get Products by Product Code
Get Products with Both Filters
Get All Products
Get Best Products
Get Best Products by Category
Get Best Products by Group Product Code
Get Best Products with Both Filters
Get Balance
Order
Basic Order with Product Code
Order with Zone/Server Information
Order with Complete Additional Information
Order with Price Validation
Order with Custom Quantity
Order with Country Code
Order with Login Game Details
Order with Idempotency Protection
Order with Custom Callback URL
Order using Group Product
Complete Advanced Order
Parameter Usage Summary
Method | Parameter | Required | Example |
---|---|---|---|
setProduct() |
product_code, price | product_code required | setProduct('ML78_8-S2', 15000) |
setGroupProduct() |
group_product, country | group_product required | setGroupProduct('mobile-legends', 'id') |
setUser() |
user_id, additional_id, additional_info | user_id for most games | setUser('123456789', '2345', 'additional_information') |
setQuantity() |
count_order | optional (default: 1) | setQuantity(5) |
setCountryCode() |
country_code | optional | setCountryCode('my') |
setOrderDetail() |
orderdetail | optional | setOrderDetail('Password : 123') |
setPartnerReferenceId() |
partner_reference_id | optional | setPartnerReferenceId('unique-123') |
setCallbackUrl() |
override_callback_url | optional | setCallbackUrl('https://site.com/cb') |
Order Parameters Explained
Based on LapakGaming API documentation, here are all the parameters you can use when creating orders:
Required Parameters
Product Identification (Choose One)
- product_code: Specific product code from
getProductsByCategory()
orgetProductsByCode()
- group_product: Group product code from
getBestProductsByCategory()
orgetBestProductsByGroupCode()
Order Quantity
- count_order: Number of items to order (defaults to 1)
Optional Parameters
User Information (Game-specific)
- user_id: Game User ID (required for most games, optional for vouchers)
- additional_id: Zone ID or Server ID (required for some games)
- additional_information: Username ID (required for some games)
Login Game Details
- orderdetail: Detailed information for games requiring login credentials
- Example: "Password : 123 Nickname : nick ingame Security code : 1234"
Validation & Control
- price: Price validation to prevent order if price changed
- country_code: Country specification (optional, default: 'id')
- partner_reference_id: Unique identifier to prevent duplicate orders
- override_callback_url: Custom callback URL for this order
Order Status
Check Status by Transaction ID
Check Status by Partner Reference ID
Check Status with Both Parameters
Check Status with Flexible Parameters
Supported Country Codes
When using group products or country-specific operations, use these country codes:
id
- Indonesia (default)my
- Malaysiaph
- Philippinesth
- Thailandus
- United Statesbr
- Brazilvn
- Vietnam
License
MIT License
All versions of lapakgaming with dependencies
illuminate/support Version ^8.0|^9.0|^10.0|^11.0|^12.0
guzzlehttp/guzzle Version ^7.0