All Projects → shaowangzhen → alipay

shaowangzhen / alipay

Licence: other
laravel lumen alipay 最简单,最安全,无验签,支付宝转账支付

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to alipay

CGYPay
统一支付接口(仅供参考)
Stars: ✭ 13 (-27.78%)
Mutual labels:  alipay
inspector-laravel
Connect your Laravel application to Inspector.
Stars: ✭ 164 (+811.11%)
Mutual labels:  lumen
laravel-lumen-mysql-encryption
Database fields encryption in laravel and lumen for mysql databases with native search.
Stars: ✭ 20 (+11.11%)
Mutual labels:  lumen
lumen-realworld-example-app
Exemplary real world backend API built with Lumen + MongoDB
Stars: ✭ 50 (+177.78%)
Mutual labels:  lumen
LeXun.Security.OAuth
用于 Asp.Net 和 Asp.Net Core 的OAuth2社交身份验证提供程序。支持支付宝,QQ,微信,百度等第三方登录
Stars: ✭ 19 (+5.56%)
Mutual labels:  alipay
lumen-newrelic
New Relic instrumentation for the Lumen framework
Stars: ✭ 26 (+44.44%)
Mutual labels:  lumen
benotes
An open source self hosted notes and bookmarks taking web app.
Stars: ✭ 260 (+1344.44%)
Mutual labels:  lumen
artisan-standalone
Allows you to use Artisan outside of a Laravel install.
Stars: ✭ 30 (+66.67%)
Mutual labels:  lumen
nippo
本アプリケーションはYAPC::Hokkaido 2016の「Vue.jsによるWebアプリケーション開発」用に実装したサンプルアプリケーションです。
Stars: ✭ 17 (-5.56%)
Mutual labels:  lumen
php-framework-benchmark
php framework benchmark (include laravel、symfony、silex、lumen、slim、yii2、tastphp etc)
Stars: ✭ 17 (-5.56%)
Mutual labels:  lumen
entrust
This package is based on Zizaco/entrust to support Laravel/Lumen 6+ versions
Stars: ✭ 22 (+22.22%)
Mutual labels:  lumen
A3Mall
A3Mall B2C开源商城系统使用Thinkphp6开源框架,前端采用uniapp开发,支持微信公众号商城、H5商城、小程序商城、APP商城、PC商城,前后端源码100%开源,支持免费商用。
Stars: ✭ 142 (+688.89%)
Mutual labels:  alipay
Lumen-Doctrine-DDD-Example
Domain Driven Design Application Example, built with Lumen 5.3 and Doctrine.
Stars: ✭ 72 (+300%)
Mutual labels:  lumen
lumen-session-example
Enable session in lumen framework (Laravel)
Stars: ✭ 22 (+22.22%)
Mutual labels:  lumen
jacky
🐄 HTTP JSON API Client for Laravel & Lumen
Stars: ✭ 17 (-5.56%)
Mutual labels:  lumen
Laravel-FluentLogger
fluent logger for laravel (with Monolog handler for Fluentd)
Stars: ✭ 55 (+205.56%)
Mutual labels:  lumen
donate
捐赠我们
Stars: ✭ 12 (-33.33%)
Mutual labels:  alipay
AppPay
💸 AppPay专注于App支付的库,几句代码轻松搞定微信支付、支付宝支付。集成更简单。
Stars: ✭ 33 (+83.33%)
Mutual labels:  alipay
PHP-Frameworks-Bench
Popular PHP Frameworks Benchmark.
Stars: ✭ 28 (+55.56%)
Mutual labels:  lumen
forum live-tangshan
django后台,移动app,功能有登录,支付、充值,礼物贴现申请,直播,论坛,好友,地区选择功能。
Stars: ✭ 38 (+111.11%)
Mutual labels:  alipay

alipay

前言

  github上有很多支持 支付宝支付、转账等等的代码库,看了下,他们的做法一般都是,改写支付宝的sdk,并开放出来接口给大家来使用;
  但是牵涉到钱,不是官网提供的代码,总是不让人那么放心!并且支付宝如果修复了一个bug,那么这些代码库也不方便更新!

  因此,还是直接用支付宝官方提供的sdk 吧;

所以,我的这个alipay 库,目标是,提供在lumen 或者 laravel 引入支付宝sdk,以及后续 升级sdk 的方法;并且,同时,在alipay.php 中提供了 基于支付宝官方sdk 封装的转账和查询转账结果的两个接口;希望小伙伴们,也可以按照 现在的方式,把你们基于支付宝sdk 封装的,并且使用安全的接口,维护到 alipay.php 中,期待你的code!

文件结构

1.AliPay

AliPay/AliPay.php 对支付宝 转账、以及转账结果查询的接口:

转账接口:fundTransToAccount($outBizNo,$payeeAccount,$amount,$payerShowName = '',$payeeRealName = '',$remark = '')

转账查询接口:fundTransOrderQuery($outBizNo = '',$orderId = '')

AliPay/AliPayConfig.php 支付宝账号的配置信息;

2.vendor

在vendor中新建alipay-sdk-php 文件夹,然后从官网https://doc.open.alipay.com/doc2/detail?treeId=54&articleId=103419&docType=1 下载 php版本的 sdk

把sdk中的aop文件夹copy 到 alipay-sdk-php 文件中(忽略 sdk中lotusphp_runtime 和 AopSdk.php)

3.composer.json

在composer.json 的 autoload 节点里加入:

"classmap": [
    "vendor/alipay-sdk-php/aop"
  ]

运行composer dump-autoload 在项目里不用 require ,直接:

$a = new \AopClient(); 
$b = new \AlipayAppTokenGetRequest(); 
$c = $a->execute($b); 

有问题随时联系 谢谢

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].