Hi!
I am working on a payment module. My requirements are that a payment
"pre-auth" request is sent to the payment gateway, reserving funds on
the buyer's account, then once the order is ready to be shipped, a
"authorized payment complete" request is sent, transferring the funds
only at that moment.
So I have gotten to the point where when an Order is processed, the
PaymentProcessor's authorize_payment method is called, funds are
reserved on the payment gateway and a transaction identifier is saved
in the order.authorization's "transaction_id", that will be used to
complete the transaction.
I understand that if I switch the order status to "Shipped", the
capture_authorized_payment method will be called and I can send a
request to the payment gateway to transfer the fund.
My question is, what is the best way to set the order status to
"Shipped"? Is this an unimplemented feature?
In addition, I noticed that a OrderAuthorization model in
satchmo_store.shop has a "complete" field. It doesn't seem to do
anything. Is this supposed to be the trigger to try to complete a pre-
authorized payment? What is the OrderPayment complete field supposed
to do?
Kind regards,
Ben
--
You received this message because you are subscribed to the Google Groups "Satchmo developers" group.
To post to this group, send email to satchmo-d...@googlegroups.com.
To unsubscribe from this group, send email to satchmo-develop...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/satchmo-developers?hl=en.