Skip to content

Commit edbdb6b

Browse files
TheNorthMemoryxy-peng
authored andcommitted
doc: note of the Stringable values & new APIv2 sandbox usage
1 parent df975e5 commit edbdb6b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README_APIv2.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,8 @@ $res = $instance
143143
print_r($res);
144144
```
145145

146+
SDK自v1.4.6调整了XML转换函数,支持了[Stringable](https://www.php.net/manual/zh/class.stringable.php) 值的转换,对于 [Scalar](https://www.php.net/manual/zh/function.is-scalar.php) 标量值及实现了 [__toString](https://www.php.net/manual/zh/language.types.string.php#language.types.string.casting) 方法的对象,均支持直接转换,详细可参考 [TransformerTest.php](tests/TransformerTest.php) 的用例用法示例。
147+
146148
## 刷脸支付-人脸识别-获取调用凭证
147149

148150
[官方开发文档地址](https://pay.weixin.qq.com/wiki/doc/wxfacepay/develop/android/faceuser.html)
@@ -182,7 +184,7 @@ print_r($res);
182184
```php
183185
use WeChatPay\Transformer;
184186
$res = $instance
185-
->v2->sandboxnew->pay->getsignkey
187+
->v2->xdc->apiv2getsignkey->sign->getsignkey
186188
->postAsync([
187189
'xml' => [
188190
'mch_id' => '1900000109',

0 commit comments

Comments
 (0)