收藏
回答

V3支付回调验签成功,APIv3密钥确定不会错误,APIv3密钥解密失败,为什么

回调验签可以,但是解密ciphertext一直不成功,ciphertext 原封不动base64解码后乱码怎么是乱码,AesGcm::decrypt解密一直失败,提示Decrypting the input $ciphertext failed, please checking your $key and $iv whether or nor correct.

回答关注问题邀请回答
收藏

2 个回答

  • 支付社区运营
    支付社区运营
    02-25

    检查下v3密钥和商户号是否匹配。修改密钥后,需要重新下单支付,才会用新的密钥加密回调

    02-25
    有用
    回复 1
  • Memory (私信不回复)
    Memory (私信不回复)
    02-25

    直接去解密

    02-25
    有用
    回复 2
    • yvonne
      yvonne
      02-25
      试了,一样报Decrypting the input $ciphertext failed, please checking your $key and $iv whether or nor correct.
      02-25
      回复
    • Memory (私信不回复)
      Memory (私信不回复)
      02-25回复yvonne
      你给的内容有问题,我给你一段html,本地验证吧
      02-25
      回复
登录 后发表内容