Skip to content
This repository was archived by the owner on Apr 14, 2020. It is now read-only.

Commit bcad914

Browse files
committed
Update README.md
1 parent c632921 commit bcad914

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
Omnipay-Wechat
1+
Omnipay-WeChat
22
===
33

4-
**Wechat Payment driver for the Omnipay PHP payment processing library**
4+
**WeChat Payment driver for the Omnipay PHP payment processing library**
55

66
[![Build Status](https://img.shields.io/travis/labs7in0/omnipay-wechat.svg)](https://travis-ci.org/labs7in0/omnipay-wechat)
77
[![Packagist Status](https://img.shields.io/packagist/v/labs7in0/omnipay-wechat.svg)](https://packagist.org/packages/labs7in0/omnipay-wechat)
@@ -34,6 +34,12 @@ The following gateways are provided by this package:
3434
For general usage instructions, please see the main [Omnipay](https://github.com/thephpleague/omnipay)
3535
repository.
3636

37+
WeChat JSAPI require OAuth openid to submit a new order, use `$WeChat_Express->getAuthCode($callback)` to get an url for WeChat OAuth and `$WeChat_Express-->getOpenid($code)` in callback page to get openid.
38+
39+
p.s. the url for WeChat OAuth must be opened in WeChat In-App broswer, you can use `strpos($_SERVER['HTTP_USER_AGENT'], 'MicroMessenger') === false` to check if the page were not opened in it, and generate a QR code for user.
40+
41+
All methods for WeChat OAuth will be removed in next stable version and I'll publish a WeChat MP library package for composer.
42+
3743
## Donate us
3844

3945
[Donate us](https://7in0.me/#donate)

0 commit comments

Comments
 (0)