Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[16.0] [ADD] recurring_payment_stripe module #1151

Open
wants to merge 40 commits into
base: 16.0
Choose a base branch
from

Conversation

mjavint
Copy link

@mjavint mjavint commented Dec 3, 2024

Add recurring payments with stripe

Copy link

@janikvonrotz janikvonrotz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a Stripe API to run tests?

It would be nice to see a tests/test_sale_subscription.py and I guess this would require some kind of mocking of the actual Stripe API.

metadata={"odoo_invoice_id": str(invoice.id)},
)

# Manejar el resultado del PaymentIntent

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comments should be in English.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed translation problem in the comment

{
"name": "Recurring Payments with Stripe",
"version": "16.0.1.0.0",
"summary": """ Recurring Payments with Stripe """,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure about the spacing before and after the """.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed spaces before and after within summary content

@pedrobaeza
Copy link
Member

Module name shouldn't contain plurals. Coupling this also to subscription module doesn't seem modular. A base module with the API, and another for linking with subscriptions is a better design.

Copy link

@jorgeglez1990 jorgeglez1990 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have reviewed the addon, and it appears to be functioning well. However, I’ve noticed that while the payment for the first invoice related to the subscription is being correctly recorded, the corresponding entries are not being created in the payment_transaction table for subsequent invoices. While the payment for the first invoice shows up as expected, the payment transactions for the following invoices are not being registered in payment_transaction.

@rousseldenis
Copy link
Contributor

Module name shouldn't contain plurals. Coupling this also to subscription module doesn't seem modular. A base module with the API, and another for linking with subscriptions is a better design.

Agree

@rousseldenis rousseldenis added this to the 16.0 milestone Dec 6, 2024
@mjavint mjavint changed the title [16.0] [ADD] recurring_payments_stripe module [16.0] [ADD] recurring_payment_stripe module Dec 6, 2024
mjavint and others added 15 commits December 30, 2024 15:20
* [FIX] Fixed payment transaction and design modular

* [FIX] Fixed test implementation

* [FIX] Fixed test implementation

* [FIX] Fixed test implementation
* [FIX] Fixed payment transaction and design modular

* [FIX] Fixed test implementation

* [FIX] Fixed test implementation

* [FIX] Fixed test implementation

* [FIX] Fixed test implementation
* [FIX] Fixed payment transaction and design modular

* [FIX] Fixed test implementation

* [FIX] Fixed test implementation

* [FIX] Fixed test implementation

* [FIX] Fixed test implementation

* [FIX] Fixed precommit
* [FIX] Fixed payment transaction and design modular

* [FIX] Fixed test implementation

* [FIX] Fixed test implementation

* [FIX] Fixed test implementation

* [FIX] Fixed test implementation

* [FIX] Fixed precommit

* [FIX] Fixed implementation
* [FIX] Fixed payment transaction and design modular

* [FIX] Fixed test implementation

* [FIX] Fixed test implementation

* [FIX] Fixed test implementation

* [FIX] Fixed test implementation

* [FIX] Fixed precommit

* [FIX] Fixed implementation
@mjavint mjavint force-pushed the 16.0-add-recurring_payments_stripe branch 2 times, most recently from 0b00b1c to 5329d7c Compare January 21, 2025 16:09
# This is the 1st commit message:

[FIX] Fixed recurring payments

# This is the commit message #2:

[FIX] Resolved all suggestion

# This is the commit message #3:

[ADD] Add precommit rules

# This is the commit message #4:

[ADD] Add stripe library

# This is the commit message #5:

[ADD] Add stripe library

# This is the commit message #6:

[FIX] Fixed precommit error

# This is the commit message #7:

[FIX] Fixed precommit error

# This is the commit message #8:

[FIX] Fixed precommit flake error

# This is the commit message #9:

[FIX] Fixed translation error in account_move.py and spaces inside summary

# This is the commit message #10:

[FIX] Fixed translation error in account_move.py and spaces inside summary

# This is the commit message #11:

[FIX] Fixed payment transaction and design modular

# This is the commit message #12:

[FIX] Fixed test implementation
@mjavint mjavint force-pushed the 16.0-add-recurring_payments_stripe branch from db7f883 to 4a83366 Compare January 21, 2025 18:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants