定制 mobicardsystems/laravel-scanapi 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: Blade

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-04-20

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固