Cordova Android Alipay Plugin
Java JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src/android
www
README.md
com.h2ocube.alipay.sublime-project
com.h2ocube.alipay.sublime-workspace
plugin.xml

README.md

Cordova Android Alipay Plugin

Developing, don't use at production environment.

Installation

cordova plugin add com.h2ocube.alipay

Use

alipay.settings = {
  partner: '2088***',
  seller_id: 'ben@h2ocube.com',
  private_key: '***',
  debug: false
}

alipay.pay({
  out_trade_no: new Date().getTime(),
  subject: '商品标题',
  body: '商品描述',
  total_fee: '0.01',
  notify_url: 'http://m.alipay.com',
  return_url: 'http://m.alipay.com'
}, succ_callback, fail_callback);

Supported Platforms

  • Android