We have called 3rd party payment provider [Close Brothers]. We make a call to the Payment Provider and make a payment of 10%. Rest is loan amount paid in installment.
Callback returns back total deposit and total loan. We are calling TC method and can only pass Total Authorised Amount. Now, in back-office order screen we have Payment shown as 0. We want that to be 10% of the value. How can we change the Payment Value on the back-office order screen
var callbackInfo = new CallbackInfo(total, id, state.Value);
return callbackInfo;
I think you have to custom code this. Total Authorized Amount is for normal payments. You will have to stear your custom scenario around of that and save information about your deposit somewhere else. Could be in a server side only custom property on the order. How you display it in the back office order view is entirely up to you. You can change that template as much as you want.
\MacroScripts\tea-commerce\edit-order.cshtml is the file we can update only. But changes to this file is not showing up on the Umbraco Back-office order. Do you know how can I update Back-office order layout?
The payment provider system in Tea Commerce can only return the amount authorized in the Callback object. That can't be changed.
So if you want to save other values you will need to save them as order properties. You can do something like order.Properties.AddOrUpdate( new CustomProperty("deposit", amount.ToString()) { ServerSideOnly = true, IsReadOnly = true } );
IsReadOnly is used so the value can only be set once.
Payment Provider - Part Payment
We have called 3rd party payment provider [Close Brothers]. We make a call to the Payment Provider and make a payment of 10%. Rest is loan amount paid in installment.
Callback returns back total deposit and total loan. We are calling TC method and can only pass Total Authorised Amount. Now, in back-office order screen we have Payment shown as 0. We want that to be 10% of the value. How can we change the Payment Value on the back-office order screen
Hi,
I think you have to custom code this. Total Authorized Amount is for normal payments. You will have to stear your custom scenario around of that and save information about your deposit somewhere else. Could be in a server side only custom property on the order. How you display it in the back office order view is entirely up to you. You can change that template as much as you want.
/Rune
\MacroScripts\tea-commerce\edit-order.cshtml is the file we can update only. But changes to this file is not showing up on the Umbraco Back-office order. Do you know how can I update Back-office order layout?
\MacroScripts\tea-commerce\edit-order.cshtml is exactly the one that edits your screenshot above.
/Rune
The payment provider system in Tea Commerce can only return the amount authorized in the Callback object. That can't be changed.
So if you want to save other values you will need to save them as order properties. You can do something like order.Properties.AddOrUpdate( new CustomProperty("deposit", amount.ToString()) { ServerSideOnly = true, IsReadOnly = true } );
IsReadOnly is used so the value can only be set once.
Kind regards
Anders
is working on a reply...