Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
11856 Lượt xem

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?

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Tác giả

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

Câu trả lời hay nhất

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.  

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 7 22
1897
3
thg 2 24
2880
1
thg 11 20
10145
1
thg 9 20
3041
2
thg 5 20
5165