I'm having some issues trying to write a module for a payment gateway. The External API we need to use requires 3 things through a POST request:
1. ClientID: Token given by the API Issuer
2. Amount: Total amount to pay
3. TransactionID: Field provided by Odoo with the ID for the entire transaction
When I code it outside of Odoo everything works fine, I'm new to Odoo syntax so I don't know how to move all that to my module despite of mimicking 3 similar modules like "stripe", "payumoney" and "paytm".
External Code:
My Code in Odoo (Controller):
My Code in Models > Payment:
Any Help is really appreciated...Thanks in advance.