On 2017-02-08 18:48, Mark Shane Hayden wrote:
> 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).

Do not know them but Stripe was chosen for its simple but secure API.

> 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.

It looks similar to the Stripe workflow.

> 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

It looks like you have implemented
https://discuss.tryton.org/t/sale-payment-before-validation/230
It will be great to submit it for inclusion.

> 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.

This is the expected behavior. The invoice will be paid when you will
enter your bank statement which contains the payment.
Otherwise if you want to have clearing done earlier, you must use the
account_payment_clearing module which will move the paid amount on a
clearing account until you receive the statement.

> 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.

I have published our implementation of the Stripe payment at
https://bugs.tryton.org/issue6259

-- 
Cédric Krier - B2CK SPRL
Email/Jabber: [email protected]
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

-- 
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/20170209144502.GG83011%40tetsuo.

Reply via email to