diff --git a/Gemfile.lock b/Gemfile.lock index 3bf7c8b..78eca19 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - zai_payment (2.8.3) + zai_payment (2.8.4) base64 (~> 0.3.0) faraday (~> 2.0) openssl (~> 3.3) diff --git a/changelog.md b/changelog.md index 37d61ee..1b9fd12 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,15 @@ ## [Released] +## [2.8.4] - 2025-12-12 + +### Fixed +- **Webhook Resource Endpoint**: Fixed webhook client to use `core_base` endpoint 🔧 + - Updated `ZaiPayment.webhooks` to use `Client.new(base_endpoint: :core_base)` instead of `va_base` + - Ensures webhooks API uses the correct endpoint for consistency with other resources + - Aligns with the pattern used by other resources (users, items, bank_accounts, etc.) + +**Full Changelog**: https://github.com/Sentia/zai-payment/compare/v2.8.3...v2.8.4 + ## [2.8.3] - 2025-11-21 ### Added diff --git a/lib/zai_payment.rb b/lib/zai_payment.rb index 3d1ea67..abae6ba 100644 --- a/lib/zai_payment.rb +++ b/lib/zai_payment.rb @@ -46,7 +46,7 @@ def token_type = auth.token_type # --- Resource accessors --- # @return [ZaiPayment::Resources::Webhook] webhook resource instance def webhooks - @webhooks ||= Resources::Webhook.new + @webhooks ||= Resources::Webhook.new(client: Client.new(base_endpoint: :core_base)) end # @return [ZaiPayment::Resources::User] user resource instance diff --git a/lib/zai_payment/version.rb b/lib/zai_payment/version.rb index 870107a..caf06e0 100644 --- a/lib/zai_payment/version.rb +++ b/lib/zai_payment/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module ZaiPayment - VERSION = '2.8.3' + VERSION = '2.8.4' end