admin 发表于 2025-11-24 16:07:54

微信支付V3回调通知结果内容

1、原始内容:

Yansongda\Supports\Collection::__set_state(array(
   'items' =>
array (
    'id' => '331f3c24-abfb-5a7e-9429-daf40dc4c774',
    'create_time' => '2025-11-24T15:48:41+08:00',
    'resource_type' => 'encrypt-resource',
    'event_type' => 'TRANSACTION.SUCCESS',
    'summary' => '支付成功',
    'resource' =>
    array (
      'original_type' => 'transaction',
      'algorithm' => 'AEAD_AES_256_GCM',
      'ciphertext' =>
      array (
      'mchid' => '1730810353',
      'appid' => 'wx558e7c46f7df7099',
      'out_trade_no' => '202511241547177956',
      'transaction_id' => '4200002927202511246945528087',
      'trade_type' => 'JSAPI',
      'trade_state' => 'SUCCESS',
      'trade_state_desc' => '支付成功',
      'bank_type' => 'OTHERS',
      'attach' => '',
      'success_time' => '2025-11-24T15:48:41+08:00',
      'payer' =>
      array (
          'openid' => 'oj7pv13IpiuOkDccuC-SBRMk7NZs',
      ),
      'amount' =>
      array (
          'total' => 1,
          'payer_total' => 1,
          'currency' => 'CNY',
          'payer_currency' => 'CNY',
      ),
      ),
      'associated_data' => 'transaction',
      'nonce' => 'OPc9ACtXzvdU',
    ),
),
))

2、解析数组内容:
array (
'id' => '331f3c24-abfb-5a7e-9429-daf40dc4c774',
'create_time' => '2025-11-24T15:48:41+08:00',
'resource_type' => 'encrypt-resource',
'event_type' => 'TRANSACTION.SUCCESS',
'summary' => '支付成功',
'resource' =>
array (
    'original_type' => 'transaction',
    'algorithm' => 'AEAD_AES_256_GCM',
    'ciphertext' =>
    array (
      'mchid' => '1730810353',
      'appid' => 'wx558e7c46f7df7099',
      'out_trade_no' => '202511241547177956',
      'transaction_id' => '4200002927202511246945528087',
      'trade_type' => 'JSAPI',
      'trade_state' => 'SUCCESS',
      'trade_state_desc' => '支付成功',
      'bank_type' => 'OTHERS',
      'attach' => '',
      'success_time' => '2025-11-24T15:48:41+08:00',
      'payer' =>
      array (
      'openid' => 'oj7pv13IpiuOkDccuC-SBRMk7NZs',
      ),
      'amount' =>
      array (
      'total' => 1,
      'payer_total' => 1,
      'currency' => 'CNY',
      'payer_currency' => 'CNY',
      ),
    ),
    'associated_data' => 'transaction',
    'nonce' => 'OPc9ACtXzvdU',
),
)

页: [1]
查看完整版本: 微信支付V3回调通知结果内容