Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Shaishav Karnani 22 posts 94 karma points
    Oct 07, 2018 @ 05:00
    Shaishav Karnani
    0

    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

                var callbackInfo = new CallbackInfo(total, id, state.Value);
                return callbackInfo;
    

    enter image description here enter image description here

  • Rune Grønkjær 1294 posts 2856 karma points
    Oct 08, 2018 @ 09:15
    Rune Grønkjær
    0

    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

  • Shaishav Karnani 22 posts 94 karma points
    Oct 10, 2018 @ 06:49
    Shaishav Karnani
    0

    \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?

  • Rune Grønkjær 1294 posts 2856 karma points
    Oct 10, 2018 @ 06:52
    Rune Grønkjær
    0

    \MacroScripts\tea-commerce\edit-order.cshtml is exactly the one that edits your screenshot above.

    /Rune

  • Anders Burla Johansen 2560 posts 8255 karma points
    Oct 10, 2018 @ 06:57
    Anders Burla Johansen
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft