Skip to content

Commit

Permalink
Update examples.md
Browse files Browse the repository at this point in the history
  • Loading branch information
overtrue authored Jan 10, 2025
1 parent 32023cd commit c1a06c3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/src/6.x/pay/examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ print_r($response->toArray());
</details>

<details>
<summary>敏感信息加密</summary>
<summary>敏感信息加密 <version-tag>6.17.0+</version-tag> </summary>

> 官方文档:<https://pay.weixin.qq.com/doc/v3/merchant/4013053257>
> 使用默认公钥 ID
Expand All @@ -183,7 +183,7 @@ $utils = $app->getUtils();
$response = $app->getClient()->withSerialHeader()->postJson("v3/applyment4sub/applyment/", [
"business_code" => "12345678",
'contact_info' => [
'contact_name' => $utils->createRsaEncrypt('张三'),
'contact_name' => $utils->encryptWithRsaPublicKey('张三'),
//...
],
//...
Expand All @@ -199,7 +199,7 @@ $utils = $app->getUtils();
$response = $app->getClient()->withSerialHeader("PUB_KEY_ID_123456")->postJson("v3/applyment4sub/applyment/", [
"business_code" => "12345678",
'contact_info' => [
'contact_name' => $utils->createRsaEncrypt("张三","PUB_KEY_ID_123456"),
'contact_name' => $utils->encryptWithRsaPublicKey("张三","PUB_KEY_ID_123456"),
//...
],
//...
Expand Down

0 comments on commit c1a06c3

Please sign in to comment.