• Stars
    star
    293
  • Rank 141,748 (Top 3 %)
  • Language
    Java
  • License
    Apache License 2.0
  • Created about 8 years ago
  • Updated about 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Lightest Alipay Transfer Helper - 最轻量的支付宝转账工具类(Android)

Alipay ZeroSdk

一个第三方轻量支付宝转账工具类


这个能做什么?

可以在应用中直接跳转到支付宝转账的界面,比复制粘贴支付宝账号更加优雅、安全。 然而它的功能就是直接跳转到转账界面,不会获得支付结果。

为什么我做这个?

支付宝的接口基本都是对企业用户开放的,对于只想做一个捐赠入口的个人独立开发者来说没必要去弄这么多东西。

怎么用?

你需要准备一个二维码,二维码可以直接使用 支付宝客户端的收款二维码。

从二维码中获取到所需的参数(一串英文数字混合的字符)后,我们来开始引入这个库

在 Gradle 中配置依赖:

allprojects {
    repositories {
        jcenter()
        maven {
            url "https://jitpack.io"
        }
    }
}

dependencies {
    compile 'moe.feng:AlipayZeroSdk:1.1'
}

AlipayZeroSdk 只有一个类,我们在开始使用转账界面跳转之前,最好检测一下用户是否安装支付宝客户端,以便作出不同的应对方式:

AlipayZeroSdk.hasInstalledAlipayClient(Context)

确认返回结果为 true 后,我们就可以跳转到转账界面了,这时候就需要从二维码获取到的参数:

AlipayZeroSdk.startAlipayClient(Context, String 从二维码获取到的参数)

之后就能看到转账界面跳出了,除了这些功能你还可以查询支付宝应用的版本号、打开支付宝的扫一扫界面或者付款码界面

Demo

你可以从 Github Releases 下载到 Demo 的安装包

联系我

新浪微博:@FungGo

Email:fython#163.com

Telegram:@fython

乐意的话可以支持一下我→ 支付宝:316643843#qq.com

License

Copyright 2016 Fung Go (fython)

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0 
    
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License. 

More Repositories

1

BilibiliAPIDocs

哔哩哔哩开放接口第三方文档(仅提供官方曾公开接口)
2,395
star
2

MaterialStepperView

Steppers - Material Design Components for Android
Java
2,194
star
3

Blackbulb

Night Screen - Material Design Screen Filter
Java
341
star
4

PackageTracker

Track your package simply on Android.
Kotlin
339
star
5

BreadcrumbsView

Material Design Breadcrumbs Navigation Widget on Android
Java
296
star
6

BiometricPromptCompat

A Thrid-party BiometricPrompt compat library.
Java
263
star
7

MaterialStatusBarCompat

Easy to make status bar translucent/tint on both Kitkat and Lollipop (完美地使 Kitkat 与 Lollipop 上的状态栏同时透明/变色)
Kotlin
263
star
8

EnhancedScreenshotNotification

Enhanced Screenshot Notification (Nevolution Decorator)
Java
72
star
9

Kotlinyan

[Deprecated] Make Kotlin Android app development easier and more elegant
Kotlin
67
star
10

kotlin-guides-cn

Android Kotlin Guides 网站(Fork 自 android/kotlin-guides)的第三方简体中文翻译
CSS
49
star
11

ImageGridView

Help you to create a flexible image grid easily.
Java
48
star
12

PackageTracker-NodeServer

Package Tracker (Node.js) Server for third-party api support and fcm push
JavaScript
41
star
13

userscript-enhance-bilibili-player

增强哔哩哔哩播放器的使用体验(Tampermonkey script)
JavaScript
35
star
14

KotlinaGallery

Build multiplatform(JVM/JS) ACG Gallery application with Kotlin
Kotlin
30
star
15

To-Watch-Bangumi-List

烧饼的补番列表 My TO-WATCH Bangumi List
30
star
16

vscode-gwo-android-helper

Browse files on your Android devices with Visual Studio Code
TypeScript
27
star
17

MaterialPreferenceCompat

Use android.support.v7.app.AlertDialog on your Preferences
Java
26
star
18

ExpressHelper

Please move to the new Package Tracker
Java
22
star
19

AnotherEChan

OneEChan (https://github.com/Tlaster/OneEchan) Thrid-Party Android Application
Java
18
star
20

Aoba-TelegramBot

Aoba Telegram Bot written in Kotlin
Kotlin
18
star
21

MacType-SourceHanSerif

Source Han Serif MacType Config
15
star
22

MaterialColorUtils

Get Material colors easily programmatically or in xml.
Kotlin
11
star
23

InvalidMediaCleaner

Scan and clean invalid media on your Android
Java
11
star
24

NyanAndroidArch

(自用) My Android architecture library in Kotlin. Enjoy the convenience of data binding and MVVM mode.
Kotlin
10
star
25

GDGaoKaoQuery-Android

广东高考录取结果查询 Android 端 (Kotlin)
Kotlin
9
star
26

bili-downloader

B 站视频批量下载库
TypeScript
8
star
27

PackageTracker-KotlinServer

[WIP] Package Tracker Push Server for Kotlin
Kotlin
7
star
28

LuSpeed

How fast do you "lu"?
Java
7
star
29

TelegramVisualNovelBot

Play Visual Novel Game on Telegram!
Python
6
star
30

SCUTAutoWiFi-Android

SCUT AutoWiFi Client for Android (Kotlin Lang)
Kotlin
6
star
31

AutoFiles

(WIP)
Java
6
star
32

about-me-page

About me page. Powered by Vue + Vuetify
CSS
5
star
33

YeelightAPI

(Personal use; Unfinished) Java implementation of Yeelight official API
Java
3
star
34

Python_Practice_DMZJ_API

DMZJ Client Api
Python
3
star
35

EventsHelper

EventBus-like utility based on annotation processors
Java
2
star
36

bili-open-live-go

哔哩哔哩直播长连协议客户端 Golang 版本
Go
2
star
37

userscript-weibo-link-go

新浪微博外链自动跳转
JavaScript
2
star
38

heartsteel-web

Heartsteel web emulator from League of Legends
Vue
1
star
39

SCUTAutoWiFi-Python

Just a simple python program
Python
1
star
40

apitest

DO NOT star this repo. Thx
1
star