Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Łukasz Nowak
slapos.core
Commits
21e37ade
Commit
21e37ade
authored
Aug 30, 2012
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pass url to find back transaction.
parent
274f0b64
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
7 deletions
+9
-7
master/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/AccountingTransaction_startPayment.xml
...kins/vifib_hosting/AccountingTransaction_startPayment.xml
+8
-6
master/bt5/vifib_web/bt/revision
master/bt5/vifib_web/bt/revision
+1
-1
No files found.
master/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/AccountingTransaction_startPayment.xml
View file @
21e37ade
...
...
@@ -51,6 +51,7 @@
<item>
<key>
<string>
_body
</string>
</key>
<value>
<string>
# TODO: Return configured web page in case of system issues.\n
from ZTUtils import make_query\n
from DateTime import DateTime\n
portal = context.getPortalObject()\n
service = portal.portal_secure_payments.find()\n
...
...
@@ -106,6 +107,7 @@ if today != current_today or integration_site.getMappingFromCategory(\'causality
context.setStartDate(now)\n
context.updateCausalityState()\n
callback = context.getWebSiteValue().payzen_callback\n
query = make_query(dict(transaction=context.getRelativeUrl()))\n
payzen_dict = {}\n
payzen_dict.update(\n
vads_currency=integration_site.getMappingFromCategory(\'resource/currency_module/%s\' % context.getResourceReference()).split(\'/\')[-1],\n
...
...
@@ -113,12 +115,12 @@ payzen_dict.update(\n
vads_trans_date=now.toZone(\'UTC\').asdatetime().strftime(\'%Y%m%d%H%M%S\'),\n
vads_trans_id=transaction_id,\n
vads_language=\'en\',\n
vads_url_cancel=callback.cancel.absolute_url(),\n
vads_url_error=callback.error.absolute_url(),\n
vads_url_referral=callback.referral.absolute_url(),\n
vads_url_refused=callback.refused.absolute_url(),\n
vads_url_success=callback.success.absolute_url(),\n
vads_url_return=getattr(callback, \'return\').absolute_url()\n
vads_url_cancel=callback.cancel.absolute_url()
+ \'?\' + query
,\n
vads_url_error=callback.error.absolute_url()
+ \'?\' + query
,\n
vads_url_referral=callback.referral.absolute_url()
+ \'?\' + query
,\n
vads_url_refused=callback.refused.absolute_url()
+ \'?\' + query
,\n
vads_url_success=callback.success.absolute_url()
+ \'?\' + query
,\n
vads_url_return=getattr(callback, \'return\').absolute_url()
+ \'?\' + query
\n
)\n
system_event.confirm()\n
system_event.acknowledge(comment=\'Automatic acknowledge as result of correct communication\')\n
...
...
master/bt5/vifib_web/bt/revision
View file @
21e37ade
418
\ No newline at end of file
419
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment