Skip to content

Conversation

fw-bot
Copy link
Contributor

@fw-bot fw-bot commented Jan 6, 2025

Before this commit:
pos_stripe doesn't specify a Stripe version when doing its requests. Because of this, Stripe defaults to the API version defined on the Stripe account. This varies from customer to customer, as it is automatically configured to use the latest API version available when the first API request is received. Stripe regularly makes breaking changes to their API:
https://docs.stripe.com/changelog?breaking=true
for example removing the charges attribute:
https://docs.stripe.com/changelog/2022-11-15/removes-charges-attribute-paymentintent
which we use in pos_stripe.

After this commit:
We rely on payment_stripe._stripe_make_request which hardcode the API version number. Such change was already started in pos_stripe.stripe_capture_payment

opw-4375876

Forward-Port-Of: #192008

Before this commit:
pos_stripe doesn't specify a Stripe version when doing its
requests. Because of this, Stripe defaults to the API version defined
on the Stripe account. This varies from customer to customer, as it is
automatically configured to use the latest API version available when
the first API request is received. Stripe regularly makes breaking
changes to their API [1], for example removing the `charges` attribute
[2] which we use in pos_stripe.

After this commit:
We rely on payment_stripe._stripe_make_request
which hardcode the API version number. Such change was already started
in pos_stripe.stripe_capture_payment

[1] https://docs.stripe.com/changelog?breaking=true
[2] https://docs.stripe.com/changelog/2022-11-15/removes-charges-attribute-paymentintent

opw-4375876

X-original-commit: af5bdb2
@robodoo
Copy link
Contributor

robodoo commented Jan 6, 2025

Pull request status dashboard

@robodoo robodoo added the forwardport This PR was created by @fw-bot label Jan 6, 2025
@fw-bot
Copy link
Contributor Author

fw-bot commented Jan 6, 2025

This PR targets saas-17.4 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

@C3POdoo C3POdoo added the OE the report is linked to a support ticket (opw-...) label Jan 6, 2025
robodoo pushed a commit that referenced this pull request Jan 8, 2025
Before this commit:
pos_stripe doesn't specify a Stripe version when doing its
requests. Because of this, Stripe defaults to the API version defined
on the Stripe account. This varies from customer to customer, as it is
automatically configured to use the latest API version available when
the first API request is received. Stripe regularly makes breaking
changes to their API [1], for example removing the `charges` attribute
[2] which we use in pos_stripe.

After this commit:
We rely on payment_stripe._stripe_make_request
which hardcode the API version number. Such change was already started
in pos_stripe.stripe_capture_payment

[1] https://docs.stripe.com/changelog?breaking=true
[2] https://docs.stripe.com/changelog/2022-11-15/removes-charges-attribute-paymentintent

opw-4375876

closes #192465

X-original-commit: af5bdb2
Signed-off-by: Loan Sens (lse) <lse@odoo.com>
@robodoo robodoo closed this Jan 8, 2025
@fw-bot fw-bot deleted the saas-17.4-17.0-fix_pos_stripe_set_api_version-lse-_TLi-fw branch January 22, 2025 13:52
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 OE the report is linked to a support ticket (opw-...)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants