Skip to content

[FIX] payment_xendit: link access token to the current transaction#262002

Closed
fw-bot wants to merge 1 commit intoodoo:saas-19.2from
odoo-dev:saas-19.2-18.0-payment_xendit-fix-kaju-521992-fw
Closed

[FIX] payment_xendit: link access token to the current transaction#262002
fw-bot wants to merge 1 commit intoodoo:saas-19.2from
odoo-dev:saas-19.2-18.0-payment_xendit-fix-kaju-521992-fw

Conversation

@fw-bot
Copy link
Copy Markdown
Contributor

@fw-bot fw-bot commented Apr 29, 2026

Description of the issue/feature this PR addresses:
The /payment/xendit/payment endpoint did not enforce validation of an access token tied to the transaction when processing direct payment requests.

Current behavior before PR:
The endpoint accepted public requests using only the transaction reference, allowing payment execution without verifying that the request was linked to the intended transaction.

Desired behavior after PR is merged:
The endpoint now requires a valid access_token associated with the transaction (reference) before processing. This ensures that payment execution is restricted to the correct transaction.


I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr

Forward-Port-Of: #261912
Forward-Port-Of: #260258

Restrict payment execution to the current transaction by requiring a valid access token.

X-original-commit: 6cea53e
@robodoo
Copy link
Copy Markdown
Contributor

robodoo commented Apr 29, 2026

Pull request status dashboard

@robodoo robodoo added the forwardport This PR was created by @fw-bot label Apr 29, 2026
@fw-bot
Copy link
Copy Markdown
Contributor Author

fw-bot commented Apr 29, 2026

This PR targets saas-19.2 and is part of the forward-port chain. Further PRs will be created up to master.

More info at https://github.com/odoo/odoo/wiki/Mergebot#forward-port

@fw-bot
Copy link
Copy Markdown
Contributor Author

fw-bot commented Apr 29, 2026

@kaju-odoo @AntoineVDV the next pull request (#262045) is in conflict. You can merge the chain up to here by saying

@robodoo r+

More info at https://github.com/odoo/odoo/wiki/Mergebot#forward-port

@kaju-odoo
Copy link
Copy Markdown
Contributor

@robodoo r+

robodoo pushed a commit that referenced this pull request Apr 30, 2026
Restrict payment execution to the current transaction by requiring a valid access token.

closes #262002

X-original-commit: 6cea53e
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
Signed-off-by: Kaleb Juliu (kaju) <kaju@odoo.com>
@robodoo robodoo closed this Apr 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

forwardport This PR was created by @fw-bot

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants