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

[12.0][ADD] payment_payfip #285

Closed
wants to merge 1 commit into from
Closed

Conversation

ivantodorovich
Copy link

This module adds the payment acquirer PayFIP.

@ivantodorovich ivantodorovich force-pushed the 12.0-add-payfip branch 4 times, most recently from 95efbd4 to e6256cf Compare May 4, 2021 17:12
@ivantodorovich
Copy link
Author

CI is broken because of other modules.
Check #286

@gregory-moka
Copy link
Contributor

@ivantodorovich Why this addon is not merged ?

@ivantodorovich
Copy link
Author

rebased on top of your cleaning @legalsylvain 🙏 this is green now

@legalsylvain
Copy link
Contributor

General question :

  • if it's a french module, it should be prefixed by l10n_fr_ don't you think ?
  • if it's a global module, maybe it should move in some OCA / payment repository ?

@ivantodorovich
Copy link
Author

  • if it's a french module, it should be prefixed by l10n_fr_ don't you think ?

It's a french module, but not a localization module, so I wouldn't add l10n_fr

  • if it's a global module, maybe it should move in some OCA / payment repository ?

I kindof followed what's been done here: https://github.com/OCA/l10n-spain/tree/14.0/payment_redsys
I think it's ok here because this payment provider doesn't make sense outside france. I guess the same happens with redsys and spain

@legalsylvain legalsylvain added this to the 12.0 milestone Aug 11, 2021
To use this module you'll need to get your **Nº Client Payfip**

You can do so by following the steps described on
`the official website <https://www.payfip.gouv.fr/>`_.
Copy link
Contributor

Choose a reason for hiding this comment

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


@api.multi
def payfip_get_form_action_url(self):
return "https://www.tipi.budget.gouv.fr/tpa/paiement.web"
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe an irconfig parameter could be great here, if the url change sometimes.
(Not a blocking point, can be done in a second step)

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, no chance for us, they changed the URL the same year we started to work on the addon :/

self.assertEqual(len(data_set), 1)
self.assertEqual(
data_set[0].get("data-action-url"),
"https://www.tipi.budget.gouv.fr/tpa/paiement.web",
Copy link
Contributor

Choose a reason for hiding this comment

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

or ''
),
"urlcl": urls.url_join(self.get_base_url(), "/payment/payfip/return"),
"saisie": "X" if self.environment == "prod" else "T",
Copy link
Contributor

Choose a reason for hiding this comment

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

3 values are needed here :

  • T for Test
  • X for activation (when test are ok)
  • W for real payment > I don't see the W value in the code.

Source : p12

@gregory-moka
Copy link
Contributor

@ivantodorovich
In the documentation, the payfip webservice can't push the payment confirmation. Odoo needs to check the status from a call detailed in this document at the p 13-15 :
Call url : https://www.payfip.gouv.fr/tpa/paiementws.web?idop=.

@github-actions
Copy link

github-actions bot commented Mar 6, 2022

There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label Mar 6, 2022
@github-actions github-actions bot closed this Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale PR/Issue without recent activity, it'll be soon closed automatically.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants