mobicardsystems/laravel-scanapi
最新稳定版本:1.0.1
Composer 安装命令:
composer require mobicardsystems/laravel-scanapi
包简介
Mobicard card scanning package for Laravel
README 文档
README
Transform user checkout experiences with our intelligent card scanning technology. Let users scan or upload payment cards to automatically extract and validate card data.
- Extract: Card number, expiry date, brand, and EXIF metadata
- Validate: Automatic validation checks and risk assessment
- Tokenize: Seamless integration with MobiToken for secure storage
- Flexible: Two implementation methods with full code samples
- Fast: Reduce checkout time by up to 70%
Installation
Follow these complete installation steps to set up the mobicardsystems/laravel-scanapi package in your Laravel project.
1. Install via Composer
Run the following command in your terminal:
composer require mobicardsystems/laravel-scanapi
2. Publish Configuration File
This copies config/scanapi.php to your Laravel config directory, allowing you to customize the package behavior.
php artisan vendor:publish --tag=scanapi-config
3. Add Environment Variables
Add the following credentials and settings to your .env file:
SCANAPI_VERSION=2.0 SCANAPI_MODE=LIVE SCANAPI_MERCHANT_ID=4 SCANAPI_API_KEY=your_api_key_here SCANAPI_SECRET_KEY=your_secret_key_here SCANAPI_SERVICE_ID=20000 SCANAPI_SERVICE_TYPE=1 SCANAPI_BASE_URL=[https://mobicardsystems.com/api/v1](https://mobicardsystems.com/api/v1)
4. Clear Configuration Cache
To ensure your environment changes are recognized, clear the configuration cache:
php artisan config:clear
If you use configuration caching in a production environment:
php artisan config:cache
5. (Optional) Publish Views
If you want to customize the look and feel of the scanner views:
php artisan vendor:publish --tag=scanapi-views
6. (Optional) Publish Assets
To publish the necessary CSS, JS, and image assets:
php artisan vendor:publish --tag=scanapi-assets
6. Test the Package
https://your-project-url/mobicard/scan
统计信息
- 总下载量: 7
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 6
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-04-20