GithubHelp home page GithubHelp logo

finogeeks / applet-payment-demo Goto Github PK

View Code? Open in Web Editor NEW
1.0 6.0 1.0 146 KB

FinClip 小程序支付 DEMO / Payment DEMO for FinClip

Home Page: https://finclip.com

JavaScript 100.00%
finclip mini-program wepay

applet-payment-demo's Introduction

FinClip Payment DEMO

本项目提供在小程序中的支付 DEMO 样例

👉 https://www.finclip.com/ 👈


🤔 FinClip 是什么?

有没有想过,开发好的微信小程序能放在自己的 APP 里直接运行,只需要开发一次小程序,就能在不同的应用中打开它,是不是很不可思议?

有没有试过,在自己的 APP 中引入一个 SDK ,应用中不仅可以打开小程序,还能自定义小程序接口,修改小程序样式,是不是觉得更不可思议?

这就是 FinClip ,就是有这么多不可思议!

⚙️ 操作步骤

小程序如需支持 login 和 getUserProfile api,需要在 APP 以注入 API 的方式实现

需要注意的是,login 和 getUserProfile 为小程序默认注入接口,无需在小程序根目录配置 FinChatConf 即可调通该两个接口。

APP 未注入相关接口时,调用会报错并执行 fail 回调。

第一步,调起登录接口

wx.login({
  param1: '', // 按需添加参数,会透传给 APP 处理
  success: (res) => {
    console.log(res)
  },
  fail: (res) => {
    console.log(res.errMsg)
  }
})

第二步,调起获取用户信息接口

wx.getUserProfile({
  success: (res) => {
    console.log('getUserProfile success', res)
  },
  fail: (res) => {
    console.log('getUserProfile fail', res.errMsg)
  }
})

🔗 常用链接

以下内容是您在 FinClip 进行开发与体验时,常见的问题与指引信息

☎️ 联系我们

微信扫描下面二维码,关注官方公众号 「凡泰极客」,获取更多精彩内容。

微信扫描下面二维码,加入官方微信交流群,获取更多精彩内容。

Stargazers

Stargazers repo roster for @finogeeks/finclip-ios-demo

Forkers

Forkers repo roster for @finogeeks/finclip-ios-demo

applet-payment-demo's People

Contributors

wangzi0218 avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

wangzi0218

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.