Commit 8b56557e authored by Łukasz Nowak's avatar Łukasz Nowak

Make autorefreshing payment processing.

When no payment is available yet, inform that payment information are being
prepared.

When payment is already sent to payzen but still not confirmed, inform about it.

When initial payment is done show order button.
parent 0e4af7e1
......@@ -105,7 +105,6 @@
<value>
<list>
<string>my_description</string>
<string>my_pay_button</string>
</list>
</value>
</item>
......@@ -116,6 +115,9 @@
<string>my_login_button</string>
<string>my_join_button</string>
<string>my_order_button</string>
<string>my_pay_button</string>
<string>your_payment_preparation_js</string>
<string>your_payment_in_progress_js</string>
</list>
</value>
</item>
......
......@@ -143,7 +143,11 @@
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python: not here.portal_membership.isAnonymousUser()</string> </value>
<value> <string encoding="cdata"><![CDATA[
python: not here.portal_membership.isAnonymousUser() and here.portal_catalog.countResults(portal_type=\'Payment Transaction\', default_destination_section_uid=here.ERP5Site_getAuthenticatedMemberPersonValue().getUid())[0][0] > 1 or (here.portal_catalog.countResults(portal_type=\'Payment Transaction\', default_destination_section_uid=here.ERP5Site_getAuthenticatedMemberPersonValue().getUid())[0][0] == 1 and here.portal_catalog.portal_catalog(portal_type=\'Payment Transaction\', default_destination_section_uid=here.ERP5Site_getAuthenticatedMemberPersonValue().getUid())[0].getSimulationState() not in [\'confirmed\', \'planned\'])
]]></string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -145,7 +145,7 @@
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python: not here.portal_membership.isAnonymousUser() and here.ERP5Site_getNextPlannedPaymentTransaction() is not None</string> </value>
<value> <string>python: not here.portal_membership.isAnonymousUser() and here.ERP5Site_getInitialPlannedPaymentTransaction() is not None</string> </value>
</item>
</dictionary>
</pickle>
......@@ -158,7 +158,7 @@
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python: here.ERP5Site_getNextPlannedPaymentTransaction().getRelativeUrl() + \'/AccountingTransaction_startPayment\'</string> </value>
<value> <string>python: here.ERP5Site_getInitialPlannedPaymentTransaction().getRelativeUrl() + \'/AccountingTransaction_startPayment\'</string> </value>
</item>
</dictionary>
</pickle>
......
319
\ No newline at end of file
320
\ 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