Giter Club home page Giter Club logo

alipay's Introduction

支付宝SDK

支付宝新版SDK Alipay Easy SDK 未涉及到的接口

[TOC]

安装

composer require xudongyss/alipay

快速使用

初始化

require_once 'vendor/autoload.php';

use XuDongYss\AliPay\Pay;

$appId = '';
/* 应用私钥 */
$merchantPrivateKey = '';
/* 支付宝公钥 */
$alipayPublicKey = '';

Pay::init($appId, $merchantPrivateKey, $alipayPublicKey);

单笔转账

/* 商户端的唯一订单号, 对于同一笔转账请求,商户需保证该订单号唯一 */
$out_biz_no = '';
/* 订单总金额,单位为元m 精确到小数点后两位, 产品取值范围[0.1,100000000] */
$trans_amount = 1;
/* 收款方唯一标识 */
$identity = '';
/* 收款方真实姓名 */
$name = '';
/* 可选:转账业务的标题, 用于在支付宝用户的账单里显示 */
$order_title = '';
/* 可选:收款方标识类型, ALIPAY_LOGON_ID 支付宝登录号,支持邮箱和手机号格式(默认值), ALIPAY_USER_ID 支付宝的会员ID,默认值:ALIPAY_LOGON_ID */
$identity_type = '';
Pay::fundTransUniTransfer($out_biz_no, $trans_amount, $identity, $name, $order_title, $identity_type);

alipay's People

Contributors

xudongyss avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.