You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Creditcard payments are considered safe directly after authorization by docdata. The captures are processed through a nightly capture batch with the acquirer.
Docdata facade set the status "pending" until the nightly capture batch has been running.
The result is that my actual shop action is not executed until the next day. But it will be safe to execute the shop action, after the first step (payment is considered as safe after authorization)
Here a example diff between a not save and a save authorization:
I take a look into oscar_docdata/interface.py and i think the
oscar_docdata.interface.Interface._process_authorized_payment() is the right code part to handle this.
This is interesting:
# Integration Manual Order API 1.0 - Document version 1.0, 08-12-2012 - Page 33:
#
# Safe route: The safest route to check whether all payments were made is for the merchants
# to refer to the "Total captured" amount to see whether this equals the "Total registered
# amount". While this may be the safest indicator, the downside is that it can sometimes take a
# long time for acquirers or shoppers to actually have the money transferred and it can be
# captured.
#
if totals.totalCaptured < (totals.totalRegistered - margin):
return None
I conclude from this that it is a conscious decision not to use the "safe" status and wait for the actual payment?
Creditcard payments are considered safe directly after authorization by docdata. The captures are processed through a nightly capture batch with the acquirer.
Docdata facade set the status "pending" until the nightly capture batch has been running.
The result is that my actual shop action is not executed until the next day. But it will be safe to execute the shop action, after the first step (payment is considered as safe after authorization)
Here a example diff between a not save and a save authorization:
I don't know if this is just due to a wrong setting in my project or if code changes in django-oscar-docdata are necessary?
The text was updated successfully, but these errors were encountered: