Hi list,

I'm attempting to extend Tivix's payment processor for Braintree:
https://github.com/Tivix/satchmo-braintree

I'm working on supporting authorizations, and I'm encountering a
strange issue.  In my authorize_payment function, I'm calling
record_authorization:

self.record_authorization(order=order, amount=amount,
transaction_id=result.transaction.id)

Unfortunately, this is duplicating the order (without deleting or
handling the original order).  I've done a little debugging and found
that the new order is created in the PaymentRecorder.  When
PaymentRecorder.authorize_payment is called, it runs self.cleanup();
which runs self.orderpayment.save().  This creates a new order where
paid_in_full is set to true, so that a status of New gets appended to
the new order.

Is this the desired behavior?  If not, how can I prevent the order
from being duplicated?

Thanks,
Matt

-- 
You received this message because you are subscribed to the Google Groups 
"Satchmo users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/satchmo-users?hl=en.

Reply via email to