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 04, 2018 @ 12:02
    Shaishav Karnani
    0

    PayPal fulfillment process not handing Discount Voucher

    Thanks for your assistance to get this project live. Site is LIVE so bit of urgency for us.

    Issue 1:- We keep facing issues with PayPal and need your advice.

    We applied 10% Discount Voucher on $100. So, it showed on PayPal to pay $90. Once payment is made and TC Backoffice Order page is not showing it and Email are showing Discount as 0 and Payment of $100.

    Issue 2:- On another instance, we were writing a Close Brothers Finance Payment Provider. In this case 10% is paid as deposit and balance as installment. When status is returned then we call below callback on completion. var callbackInfo = new CallbackInfo(total, id, state.Value); return callbackInfo;

    But TC order and email are showing deposit as 0.

    Please can you advice how to fix it.

    Many Thanks.

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

    Hi Shaishav,

    Issue 1: So just to be clear. * Before payment the order have 10% discount and shows it perfectly in UI and backoffice? * Customer pays only $90 in paypal? * When the customer is returned from paypal the order no longer have the discount?

    Please check the orders guid before and after payment. Is the guid the same? If not are there anything in the copiedFromOrderId property on the order?

    Issue 2: This one I'm having a hard time understanding. Are you talking about a custom payment provider?

    /Rune

  • TikTakToe 57 posts 97 karma points
    Oct 04, 2018 @ 14:38
    TikTakToe
    0

    Hi Rune

    Apologies, the issue with the discount is not correct - it works, but we didn't realise the value wasn't shown in the order totals. It transpires the discount works and the correct value is passed to the payment provider.

    What we are having issue with is with Deposits and Delivery not being applied to the totalsenter image description here, see here:

    Delivery has been added but the total is incorrect - neither the order or the email shows delivery being added correctly.

    The final issue we have is applying a deposit - I'm not sure whether this is a TC thing or a provider thing - does TC handle deposits and can we apply a deposit to the order total and somehow show it?

    The proviver we use is a 3rd party one, Deko pay ( formerly Close Brothers)

    And help appreciated

    Thanks

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

    Hi mr. Toe,

    Something tells me that something is'nt being written to the view in your screenshot. Have you tried checking the order object, to see which other prices, discounts or giftcards have been applied?

    If you are in doubt on how to see your entire order after it have been finalized you can click into the order in the TC section. You can run the following javascript from a console in the frontend. As long as you are logged into Umbraco backoffice, you can get finalized orders this way.

    TC.getOrder({storeId:1, orderId:'dc354705-c1de-413e-a9d2-756294cfa2ec'});

    Check out the order and see if you can find your missing discount. It have to be there.

    As to deposits, that is not a thing Tea Commerce will handle. Maybe you could do it with gift cards. Sounds a bit like a hack though. A custom payment provider might be able to do it.

    /Rune

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

    Hi Rune,

    Please can you also advice on the above comment "Delivery has been added but the total is incorrect - neither the order or the email shows delivery being added correctly."

    This is also not working only for Custom Payment Provider

  • Rune Grønkjær 1294 posts 2856 karma points
    Oct 05, 2018 @ 07:51
    Rune Grønkjær
    0

    That was the first part of my message. There must be some information on the order that haven't been shown. So check the order for the missing piece.

    /Rune

  • TikTakToe 57 posts 97 karma points
    Oct 05, 2018 @ 07:53
    TikTakToe
    0

    thanks, sorry, missed that bit!

    how do i get the order id guid for the snippet:

    TC.getOrder({storeId:1, orderId:'dc354705-c1de-413e-a9d2-756294cfa2ec'});

  • Rune Grønkjær 1294 posts 2856 karma points
    Oct 05, 2018 @ 07:55
    Rune Grønkjær
    0

    You can find the guid in the database or just change the edit-order.cshtml and write it in that.

    /Rune

  • Rune Grønkjær 1294 posts 2856 karma points
    Oct 05, 2018 @ 07:56
    Rune Grønkjær
    0

    It's the order.Id property by the way

  • TikTakToe 57 posts 97 karma points
    Oct 05, 2018 @ 08:24
    TikTakToe
    0

    enter image description here

    I'm assuming i can get the id of the order from the iframe src - as per my screenshot

    the script you provide returns null

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

    Yes it does. Because the TC javascript file isn't loaded in the general Umbraco backoffice, only in the iframe. You should be able to run it in your frontend or by opening the iframe in a new window.

    /Rune

  • TikTakToe 57 posts 97 karma points
    Oct 05, 2018 @ 10:22
    TikTakToe
    0

    Hi Rune

    I can see the shipping info added now in the consoleenter image description here

    so enter image description here

    Delivery is not being added to the order total

    any advice plz

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

    Hm. That's shouldn't be possible. Do you guys have any custom code messing with the order?

    Try removing features until it works. Something must be doing sometihng i shouldn't.

Please Sign in or register to post replies

Write your reply to:

Draft