Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/normangyllenhaal/spring-boot-payment-starter
google play 和 appstore 服务端支付校验
https://github.com/normangyllenhaal/spring-boot-payment-starter
appstore googleplay java payment spring springboot
Last synced: 3 months ago
JSON representation
google play 和 appstore 服务端支付校验
- Host: GitHub
- URL: https://github.com/normangyllenhaal/spring-boot-payment-starter
- Owner: NormanGyllenhaal
- Created: 2017-06-24T09:26:53.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-06-17T01:48:08.000Z (over 2 years ago)
- Last Synced: 2024-09-25T19:02:44.355Z (3 months ago)
- Topics: appstore, googleplay, java, payment, spring, springboot
- Language: Java
- Size: 39.1 KB
- Stars: 28
- Watchers: 3
- Forks: 14
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
### google play 和 ios 支付校验sdk
[![Build Status](https://travis-ci.org/NormanGyllenhaal/spring-boot-payment-starter.svg?branch=master)](https://travis-ci.org/NormanGyllenhaal/spring-boot-payment-starter)
使用retrofit2 封装google play 和 app store 支付验证api
已提交到maven中央仓库
```xmltop.javatool
spring-boot-payment-starter
1.2.0```
```java
//app store 消耗购买验证
AppStorePaymentService.consumeVerify();
//app store 订阅购买验证
AppStorePaymentService.subscriptionVerify();
//google play 消耗购买验证
GooglePlayPaymentService.productVerify();
//google play 订阅购买验证
GooglePlayPaymentService.subscriptionVerify();```
- 使用方法
application.yml 文件配置
```yaml
payment:
appStorePassword: appstore 的验证密码
# app store 的验证地址 正式和测试环境不同
appStoreUrl: https://buy.itunes.apple.com/verifyReceipt/
# google play 的验证地址 正式和测试环境相同
googlePlayUrl: https://www.googleapis.com/
base64PublicKey: google play 本地验证的ras公钥
```