Hi everyone, Some background:
I am investigating the use of the account_payment module for the purposes of integrating e-commerce on-line payments (as suggested by discussions on the topic of integrating Stripe, but I am looking to add support for services that are used frequently in Canada--notably Moneris and Beanstream). The strategy is to interface with their payment gateways on the client side so communication with payment processing happens directly between the client's browser and the PCI compliant interfaces of the providers. Upon completion the browser submits the results returned from the payment provider (sanitised data like the token, result code, etc) to our server for Tryton to process. We already have a web shop developed to the point where sales and invoices are created and now we are working on payment processing. As suggested here: https://discuss.tryton.org/t/minimal-e-shop-for-tryton/217 I am going to try using account_payment for this processing. I have got it to the point where I can create and process a payment against the AR move line of a posted invoice but now I am stuck: 1. As mentioned in the above link and confirmed by my experimenting, payments do not perform any account moves, so from an accounting perspective it still shows the invoice as being unpaid and an outstanding balance in receivables. HOWEVER, when I go to "pay" the invoice it shows an amount to pay of ZERO. I cannot pay any amount on the invoice because it is more than the amount to pay. I cannot leave the amount at zero because it does nothing and leaves the invoice in "posted" state. 2. If I go to the invoice and hit "pay" first, the receivables move in question is reconciled and I can no longer create a payment against that line. So my question is what is the correct process to create payments against the AR move line associated with an invoice? Is this a bug or am I missing a step, or is it not possible using the "manual" processing method via the Tryton client and I have to make a module/code that does overrides the invoices' "pay" method? I think I know how I could do the last thing, but I want to make sure I do the most "correct" thing. PS. I would be interested in helping out with the payment integration solution for a minimal e-shop as discussed above. Has any coding started on it, or blueprints/planning/etc? I would like to make sure I don't create a one-off design for my "account_payment_beanstream" or "account_payment_moneris" modules if the one for stripe is already underway, and if it hasn't started I could contribute my efforts as a template. Thanks, Mark. -- You received this message because you are subscribed to the Google Groups "tryton" group. To view this discussion on the web visit https://groups.google.com/d/msgid/tryton/CAJ0%2BmOq1sZQJ_Bxn3dt9Wmzj5W8umnOjgLbMkxnsUC%2BkdwhivA%40mail.gmail.com.
