luxplus / mobilepay

Luxplus 实现的 MobilePay API 订阅 2.0.0。

v1.2.5 2017-12-27 15:07 UTC

This package is not auto-updated.

Last update: 2024-09-15 02:16:54 UTC


README

  • 7月7日

    • Initial Luxplus implementation of MobilePay Subscription API 1.1.1。
  • 8月10日

    • 实现 MobilePay Subscription API 1.2.6 - 退款。新增两个方法:getRefunds() 和 postRefunds()。
  • 8月11日

    • 修复了从 /recurringpayments-restapi/api//subscriptions/api/ 路径中的错误,以支持退款。
  • 8月14日

    • 修复了 CreateRefundRequest toJSON() 方法中的错误。
    • 在 CreateOnOffPaymentRequest 中实现了 links 参数。
  • 8月23日

    • 将路径从 /recurringpayments-restapi/api/ 全部更改为 /subscriptions/api/
  • 9月18日

    • 将 MobilePay Subscription API 更新到 2.0.0
    • 实现了 postPaymentRequestsBatch() 方法,该方法接受一个 CreatePaymentRequest 实例数组。
    • 将 postPaymentRequests() 方法修改为接受 CreatePaymentRequest 实例或 CreatePaymentRequest 数组实例(无论哪种情况都会调用 postPaymentRequestsBatch())。
    • 在抽象类 Request 中移除了抽象方法 toJSON(),并替换为 JsonSerializable 接口。jsonSerialize() 方法返回一个数组而不是 json 编码的字符串。
    • 添加以下异常类
      • MobilePayException 扩展 Exception
      • PreconditionFailedException 扩展 MobilePayException
      • NotFoundException 扩展 MobilePayException
      • InternalServerErrorException 扩展 MobilePayException
      • IdNotProvidedException 扩展 MobilePayException
      • BadRequestException 扩展 MobilePayException
      • CurlException 扩展 Exception
    • 使用适当的异常和错误消息重写了 MobilePayConnection 类 connect() 方法和其他地方的错误处理代码。
    • 添加 ErrorResponse 类以更好地处理 HTTP 响应代码错误。
    • 添加了在调用时提供关联 ID 的可能性。
    • 在 MobilePaySubscriptionClient 中添加了 createGUID() 方法,用于关联 ID。
  • 12月27日

    • 修复了在 9月18日更新中引入的 MobilePayConnection post()-方法中的错误。由 postPaymentRequestsBatch 引入。
  • 2018年4月23日

    • 修复了 ErrorResponse 的问题,并添加了 getFullResponse() 方法,用于记录目的。
  • 2018年4月28日

    • 修复了 HttpResponseException 错误。
  • 2018年5月29日

    • createSimpleInstance 方法现在使用 2 周的 expirationTimeoutMinutes 而不是 5 分钟。
    • 删除了未使用的依赖项。