Skip to content

Wompi Colombia payment acquirer implementation for Odoo

Notifications You must be signed in to change notification settings

AndreCTS/payment_wompicol

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wompi Colombia Payment Acquirer

This is an implementation of the Wompi payment acquirer/gateway for Odoo 13, in the form of web checkout, as specified in the documentation.

Notes

This integration uses the checkout type of integration, in which the client is sent with an HTTP GET request, with the data encoded in the url, to the Wompi site, in which they perform the payment. After the payment has been completed, Wompi servers POST some json to the event url (which is defined in their platform backend, this module will tell you what you should set it to), this data is processed to set the transaction state in Odoo, if the client get's back and no event has been received we ask their api.

Steps

  1. Client redirected to Wompi page with the data encoded in the url.
  2. Wompi POST event (what happened with the transaction).
    1. The posted data is processed to see if it makes sense
    2. Since there's no crypto to verify is legit, we query their endpoint, and compare what they report vs what was received.
    3. Set the transaction state.
  3. Client browser comes back only with Wompi internal transaction id.
    1. We check if there's transaction with reference code that matches wompi transcation id.
    2. If there's one we do nothing, this means the event reached first and it has been processed.
    3. If there's nothing, we call their api with the transaction id, and we simulate as if it was a received event, but in this case their api won't be called for the information to confirm.

STATUS: WORKING Odoo 13.0

License MIT

About

Wompi Colombia payment acquirer implementation for Odoo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 71.5%
  • JavaScript 28.5%