Coder Social home page Coder Social logo

a-real-pingplusplus-pingxx-pingpp-example's Introduction

一个不费脑筋的 PingPlusPlus (pingxx) 前后端实例

简介

PingPlusPlus 的文档写的真心很棒,但是 SDK 的例子却乱七八糟,把用户体验降低了一个档次。

我觉得,使用一个 SDK,最重要的是能先跑起来,然后再研究细节,这个实例就可以让你轻松测试前端 HTML5 和后端 PHP 的 PingPlusPlus SDK。

本实例参考 pinggg-phppingpp-html5

版本要求

PHP 版本 5.3 及以上

你需要

申请一个 PingPlusPlus 帐号。

如何跑起来

使用 Composer 安装依赖

执行

composer update

添加 App key 和 App ID

修改文件:server/pay.php

//你需要设置的
$apiKey = 'YOUR_API_KEY';
$appId = 'YOUR_APP_ID';
  1. 登录 https://dashboard.pingxx.com/ 获取 Test Key 或者 Live Key;

  2. 登录后,选中应用,查看应用信息,获取应用 ID (App Id)。

启动 Server

你可以使用ApacheNginx 等 web server 来启动这个实例。

也可以直接使用 PHP 内置 web server 来启动实例。

$ php -S 127.0.0.1:8989

测试支付

访问:http://127.0.0.1:8989

输入金额,点击银联WAP(upmp) 进行测试,现在你应该已经跑起来了。

想测试别的支付,请查看代码和文档

a-real-pingplusplus-pingxx-pingpp-example's People

Contributors

lijinma avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

guoyu07

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.