Ionic Cordova Plugin for iOS

Source: Internet
Author: User
<span id="Label3"></p><p><p>Source code Structure Directory:</p></p><p><p>Payplugin:</p></p><p><p>|_src</p></p><p><p>|_android</p></p><p><p>|_payplugin.java</p></p><p><p>|_ios</p></p><p><p>|_cdvpayplugin.h</p></p><p><p>|_cdvpayplugin.m</p></p><p><p>|_www</p></p><p><p>|_payplugin.js</p></p><p><p>Plugin.xml</p></p><p><p>--======================================</p></p><p><p>Payplugin/www/payplugin.js</p></p><p><p>var exec = require (' cordova/exec ');<br>/*<br>Window.payplugin = function (str, Callback) {<br>Cordova.exec (callback, function (err) {<br>Callback (' nothing to Echo. ');<br>}, "jsnative", "echo", [str]);<br>};<br>var o = new Window.echo ();<br>Module.exports = window.payplugin;*/</p></p><p><p><br>/*<br>var HelloWorld = function () {};<br><br>HelloWorld.prototype.say = function () {<br>Alert ("Hello world");<br>};<br><br>var helloWorld = new HelloWorld ();<br>Module.exports = helloWorld;<br>*/</p></p><p><p>/*window.payplugin = {};<br>Window.payplugin.add = function (args,args2,addsuc,addfaild) {<br>Cordova.exec (addsuc, addfaild, "payplugin", "add", [args,args2]);<br>}<br>Module.exports = window.payplugin;*/</p></p><p><p>var payplugin = function () {};<br><br>PayPlugin.prototype.pay = function (args,args2,addsuc,addfaild) {<br>Cordova.exec (addsuc, addfaild, "payplugin", "pay", [args,args2]);<br>}<br><br>var payplugin = new Payplugin ();<br>Module.exports = payplugin;</p></p><p><p></p></p><p><p></p></p><p><p>Payplugin\plugin.xml</p></p><p><p><?xml version= "1.0" encoding= "UTF-8"?><br><plugin xmlns= "http://apache.org/cordova/ns/plugins/1.0"<br>Id= "com.youpin.payplugin"<br>version= "1.0.0" ><br><name>payplugin</name><br><description>pay plugin</description><br><license>apache 2.0</license><br><keywords>payplugin</keywords></p></p><p><p><js-module src= "www/payplugin.js" name= "payplugin" ><br><clobbers target= "payplugin"/><br></js-module><br><br><!--ios--<br><platform name= "ios" ><br><config-file target= "config" parent= "/*" ><br><feature name= "payplugin" ><br><!--cdvpayplugin is a class name--<br><param name= "ios-package" value= "cdvpayplugin"/><br></feature><br></config-file></p></p><p><p>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.