Giter Club home page Giter Club logo

jialianpos's Introduction

jialianpos

适用用在uniapp中调用嘉联POS机的SDK

嘉联的POS机有如下这么多型号:

  1. 新 国 都:N5、N3、N86、N6

  2. 联 迪:A8、A7

  3. 商 米:P2

  4. 新 大 陆:N910、N920

本插件只支持“新国都”的机型

因为手里只有新国都的机器

使用方法

所需参数参考嘉联支付的开发文档:https://help.jlpay.com/api/docs/document/20191012000110

交易类型(transId)请全部使用英文不要使用汉字。

<template>
	<view>
		<button type="primary" @click="testsyncFunc">消费测试</button>
	</view>

</template>

<script>
	// 引用插件
	var testModule = uni.requireNativePlugin("JiaLianPay")
	export default {
		data() {
			return {}
		},
		onLoad() {

		},
		methods: {
			testsyncFunc() {
				// 调用异步方法
				const res = testModule.JiaLianFunc({
					appName: 'jlpaysdk',
					agentId: '',
					transId: 'Sale',
					isneedPrint: false,
					totalPrint: "1",
					forceLogin: true,
					isShowQRCode: true,
					transData: {
						amt: "1"
					}
				}, (ret) => {
					console.error(ret)
					uni.showModal({
						title: '提示',
						content: JSON.stringify(ret),

					});
				})

			},
			
		}
	}
</script>

<style>
</style>

jialianpos's People

Contributors

349299341 avatar

Watchers

 avatar

jialianpos's Issues

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.