Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
2 Replies
11770 Tampilan

I want to implement a payment acquirer add-on.  So far, I have been following the online documentation and books on implementing a general add-on, and by "reverse engineering" the acquirers that come included (paypal, sips, etc), however there are several things that are not clear per se from those addons.  I wonder if there is any documentation describing the special considerations that need to be followed to develop a payment acquirer?

Avatar
Buang
Jawaban Terbai

Hi,

If you are looking to do a payment gateway integration with Odoo, the easiness of work will depends on the support /documentation provided by the corresponding payment gateway team.


In the following link, it is briefly explained how paytab payment gateway can be integrated to Odoo, have a look at it : Odoo Payment Gateway Integration



Also there are many payment acquirers free module available in the odoo app stores, have a look at the code and see how it is coded.

Sample module: https://www.odoo.com/apps/modules/9.0/payment_wepay_gateway/


Thanks

Avatar
Buang
Penulis

No, I am not talking about "installing" or using an acquirer. I am talking about developing (coding/implementing) one.

Yes for that only i have provided the link, have a look at the first link

Jawaban Terbai

Sorry for the very late reply.
For a better understanding, you should go to the payment module and read the doc string given for every classes and methods defined under payment_acquirer.py. This will give you a basic idea on what each method does and how to use it in your new module. Then as Riyas said, check with other payment acquirer modules available. 
Following are the few methods to be considered

1. *_form_generate_values in 'payment.acquirer'

 This is where you provide the values to the form which needs to be passed to the provider to get the HPP. You will need to set a xml template which will be used to create the form.

2. httpController to manage the response from the provider. It should update the related payment.transaction record.  

Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
0
Jul 22
1856
3
Feb 24
2814
1
Nov 20
10076
1
Sep 20
3014
2
Mei 20
5131