zai_payment 2.8.4 → 2.8.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/changelog.md +24 -0
- data/lib/zai_payment/client.rb +1 -1
- data/lib/zai_payment/config.rb +2 -2
- data/lib/zai_payment/version.rb +1 -1
- data/lib/zai_payment.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3943f38962a68cdf4a81db8c65bf7e1662499713e2d8c07509626721c943d3eb
|
|
4
|
+
data.tar.gz: 5ecb7d95198390afa550f14f21b85c2204c6ae939f1c8b511fe7526a1022ef31
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9057831bdcdecce3c5af891b543116eb3bc85627a56ebc7c29c69a2070699c4a553f74233a6a958843b4c6cf15ff2ef863235697bc059446de118148f7d5dc8a
|
|
7
|
+
data.tar.gz: 0b55cf6f3d2559d2042f12ab01023d021110ce29910c3c44928d1b55f8de00bbeb2e4d7f7cbe06a1c3fabe24624a9253d1bc3e0ea78b16acffe666c26943ead1
|
data/changelog.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
## [Released]
|
|
2
2
|
|
|
3
|
+
## [2.8.6] - 2025-12-12
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
- **Production API Endpoints**: Fixed incorrect production URL configuration 🔧
|
|
7
|
+
- Corrected `core_base` endpoint to use `https://secure.api.promisepay.com` (was incorrectly set to assemblypay.com)
|
|
8
|
+
- Corrected `va_base` endpoint to use `https://au-0000.api.assemblypay.com` (was incorrectly set to promisepay.com)
|
|
9
|
+
- Removed deprecated `webhook_base_endpoint` method from Config class
|
|
10
|
+
- Production environment now uses correct endpoints for core API and virtual accounts
|
|
11
|
+
- Ensures proper routing of production API requests to Zai servers
|
|
12
|
+
|
|
13
|
+
**Full Changelog**: https://github.com/Sentia/zai-payment/compare/v2.8.5...v2.8.6
|
|
14
|
+
|
|
15
|
+
## [2.8.5] - 2025-12-12
|
|
16
|
+
|
|
17
|
+
### Fixed
|
|
18
|
+
- **Webhook Environment-Based Base URL**: Fixed webhook base URL to dynamically switch based on environment 🔧
|
|
19
|
+
- Added `Config#webhook_base_endpoint` method to determine correct endpoint per environment
|
|
20
|
+
- Production environment: webhooks use `core_base` (`https://au-0000.api.assemblypay.com`)
|
|
21
|
+
- Prelive environment: webhooks use `va_base` (`https://sandbox.au-0000.api.assemblypay.com`)
|
|
22
|
+
- Webhook client now automatically uses correct base URL when switching environments
|
|
23
|
+
- Improves on v2.8.4 which hardcoded to `core_base` for all environments
|
|
24
|
+
|
|
25
|
+
**Full Changelog**: https://github.com/Sentia/zai-payment/compare/v2.8.4...v2.8.5
|
|
26
|
+
|
|
3
27
|
## [2.8.4] - 2025-12-12
|
|
4
28
|
|
|
5
29
|
### Fixed
|
data/lib/zai_payment/client.rb
CHANGED
|
@@ -107,7 +107,7 @@ module ZaiPayment
|
|
|
107
107
|
def base_url
|
|
108
108
|
# Use specified base_endpoint or default to va_base
|
|
109
109
|
# Users API uses core_base endpoint
|
|
110
|
-
# Webhooks API uses va_base
|
|
110
|
+
# Webhooks API uses core_base (production) or va_base (prelive)
|
|
111
111
|
if base_endpoint
|
|
112
112
|
config.endpoints[base_endpoint]
|
|
113
113
|
else
|
data/lib/zai_payment/config.rb
CHANGED
|
@@ -31,8 +31,8 @@ module ZaiPayment
|
|
|
31
31
|
}
|
|
32
32
|
when :production
|
|
33
33
|
{
|
|
34
|
-
core_base: 'https://
|
|
35
|
-
va_base: 'https://
|
|
34
|
+
core_base: 'https://secure.api.promisepay.com',
|
|
35
|
+
va_base: 'https://au-0000.api.assemblypay.com',
|
|
36
36
|
auth_base: 'https://au-0000.auth.assemblypay.com'
|
|
37
37
|
}
|
|
38
38
|
else
|
data/lib/zai_payment/version.rb
CHANGED
data/lib/zai_payment.rb
CHANGED
|
@@ -46,7 +46,7 @@ module ZaiPayment
|
|
|
46
46
|
# --- Resource accessors ---
|
|
47
47
|
# @return [ZaiPayment::Resources::Webhook] webhook resource instance
|
|
48
48
|
def webhooks
|
|
49
|
-
@webhooks ||= Resources::Webhook.new(client: Client.new(base_endpoint: :
|
|
49
|
+
@webhooks ||= Resources::Webhook.new(client: Client.new(base_endpoint: :va_base))
|
|
50
50
|
end
|
|
51
51
|
|
|
52
52
|
# @return [ZaiPayment::Resources::User] user resource instance
|