Commit 47b5668a authored by Łukasz Nowak's avatar Łukasz Nowak

Confirm *after* sane response from Payzen.

parent ad0cac4e
......@@ -96,6 +96,9 @@ if transaction_status in mark_transaction_id_list:\n
storeWorkflowComment(transaction, \'Transaction status %s (%s) did not changed the document state\' % (transaction_status, transaction_status_description))\n
payzen_event.confirm()\n
payzen_event.acknowledge(comment=\'Automatic acknowledge as result of correct communication\')\n
if transaction.getSimulationState() == \'planned\':\n
transaction.activate().PaymentTransaction_confirm()\n
\n
elif transaction_status in continue_transaction_id_list:\n
# Check authAmount and authDevise and if match, start transaction\n
auth_amount = int(data_kw[\'authAmount\'])\n
......
......@@ -115,7 +115,6 @@ data_kw, signature, sent_text, received_text = service.soap_duplicate(**payzen_d
\n
sent = payzen_event.newContent(title=\'Sent SOAP\', portal_type=\'Payzen Event Message\', text_content=sent_text)\n
received = payzen_event.newContent(title=\'Received SOAP\', text_content=received_text, predecessor_value=sent, portal_type=\'Payzen Event Message\')\n
transaction.activate().PaymentTransaction_confirm()\n
context.PayzenEvent_processUpdate(state_change, data_kw, signature)\n
</string> </value>
</item>
......
47
\ No newline at end of file
48
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment