smsheese/skipcash 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

smsheese/skipcash

Composer 安装命令:

composer require smsheese/skipcash

包简介

SkipCash payment gateway integration for Laravel with enhanced security and features.

README 文档

README

A Laravel package for SkipCash payment gateway integration with sandbox/production support.

Requirements

  • PHP 8.1+
  • Laravel 9.0+

Quick Install

composer require smsheese/skipcash
php artisan vendor:publish --tag=config
php artisan migrate

Configuration

Add to .env:

SKIPCASH_MODE=sandbox
SKIPCASH_CLIENT_ID=your_client_id
SKIPCASH_KEY_ID=your_key_id
SKIPCASH_KEY_SECRET=your_key_secret
SKIPCASH_WEBHOOK_KEY=your_webhook_key

Basic Usage

use Smsheese\Skipcash\Services\SkipCashGateway;

$gateway = app(SkipCashGateway::class);

// Create payment
$response = $gateway->createPayment([
    'Uid' => $gateway->generateUuid(),
    'KeyId' => config('skipcash.key_id'),
    'Amount' => '100.00',
    'FirstName' => 'John',
    'LastName' => 'Doe',
    'Phone' => '+97412345678',
    'Email' => 'john@example.com',
]);

// Redirect to payment page
return redirect($response['resultObj']['payUrl']);

Features

  • Secure HMAC-SHA256 signatures - Only non-empty fields in correct order
  • Webhook validation - Signature verification with timing-safe comparison
  • Idempotency - Prevents duplicate webhook processing
  • Tokenization - Save cards for returning customers
  • Recurring payments - Subscription support
  • Refunds - Full and partial refunds

Documentation

Detailed documentation available in docs/skipcash/. These files were fetched from the official SkipCash Developer Portal and saved as Markdown for reference.

Quick usage guide available in docs/USAGE.md.

Routes

Method Endpoint Description
POST /payment/generate-payment-link Create payment
POST /payment/create-with-token Pay with saved token
GET /payment/card-details/{tokenIds} Get card details
ANY /payment/gateway/response/skipcash Return URL
ANY /payment/gateway/response/skipcash/webhook Webhook

Status Codes

ID Text Description
0 new Created
1 pending Awaiting
2 paid Success
3 canceled Cancelled
4 failed Failed
5 rejected Rejected
6 refunded Refunded
7 pending refund Refund pending
8 refund failed Refund failed

License

MIT License - See LICENSE file.

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-02-26

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固