Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
zai_payment (2.6.0)
zai_payment (2.6.1)
base64 (~> 0.3.0)
faraday (~> 2.0)
openssl (~> 3.3)
Expand Down
9 changes: 9 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
## [Released]

## [2.6.1] - 2025-11-03

### Fixed
- **BPay Account Endpoint Configuration**: Fixed 403 CloudFront error when creating BPay accounts
- Changed BPay accounts resource to use `:va_base` endpoint instead of `:core_base`
- The `:core_base` endpoint only supports GET requests (cacheable), causing POST requests to fail
- BPay accounts now correctly use the virtual accounts endpoint that supports all HTTP methods
- Resolves issue where `bpay_accounts.create()` returned "The distribution supports only cachable requests" error

## [2.6.0] - 2025-11-03

### Added
Expand Down
2 changes: 1 addition & 1 deletion lib/zai_payment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def bank_accounts

# @return [ZaiPayment::Resources::BpayAccount] bpay_account resource instance
def bpay_accounts
@bpay_accounts ||= Resources::BpayAccount.new(client: Client.new(base_endpoint: :core_base))
@bpay_accounts ||= Resources::BpayAccount.new(client: Client.new(base_endpoint: :va_base))
end
end
end
2 changes: 1 addition & 1 deletion lib/zai_payment/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module ZaiPayment
VERSION = '2.6.0'
VERSION = '2.6.1'
end