Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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: about 1 month ago
JSON representation

google play 和 appstore 服务端支付校验

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中央仓库
```xml

top.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公钥
```