Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fix installments field serialized as 0 for bank_transfer payment methods#364

Merged
luismeli10 (luismeli10) merged 1 commit into
masterfrom
fix/order-payment-method-installments-null
Jun 11, 2026
Merged

Fix installments field serialized as 0 for bank_transfer payment methods#364
luismeli10 (luismeli10) merged 1 commit into
masterfrom
fix/order-payment-method-installments-null

Conversation

@luismeli10

Copy link
Copy Markdown
Contributor

Change installments from primitive int to Integer in OrderPaymentMethodRequest so Gson omits the field when not explicitly set. This prevents a 400 error from the API when creating PIX payments, which rejects the unsupported installments property on bank_transfer.

Change installments from primitive int to Integer in
OrderPaymentMethodRequest so Gson omits the field when not explicitly
set. This prevents a 400 error from the API when creating PIX payments,
which rejects the unsupported installments property on bank_transfer.

Fixes #346

Co-Authored-By: Claude Sonnet 4.6 (1M context) <[email protected]>
@luismeli10 luismeli10 (luismeli10) merged commit 6a76c69 into master Jun 11, 2026
1 check passed
@luismeli10 luismeli10 (luismeli10) deleted the fix/order-payment-method-installments-null branch June 11, 2026 00:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant