Skip to content

Hoolay-CN/clj-pingpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

clj-pingpp

A Clojure wrapper of the ping++ API.

Usage

Here's the latest Leiningen version info: Clojars Project

You'll need this in your environment:

export PINGPP_SECRET="pingpp_secret_token"
(def charge {:order_no "1234567890"
             "app[id]" "your app id"
             :amount "100"
             :channel "alipay"
             :client_ip "127.0.0.1"
             :subject "苹果2"
             :body "一个大苹果"})

;; create charge
(create-charge charge)

;; get charge by id
(get-charge charge-id)

;; get all charges
(get-charges)

;; create refund
(create-refund {:id charge-id
                :description description})

;; get refund by charge id and refund id
(get-refund charge-id refund-id)

;; get all refunds
(get-refunds)

License

Copyright © 2015 Hoolay.CN

Distributed under the Eclipse Public License either version 1.0.

About

ping++ clojure bindings.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published