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;
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?
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 totals, 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)
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.
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.
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
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.
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.
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
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 totals, 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
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
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
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
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'});
You can find the guid in the database or just change the edit-order.cshtml and write it in that.
/Rune
It's the order.Id property by the way
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
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
Hi Rune
I can see the shipping info added now in the console
so
Delivery is not being added to the order total
any advice plz
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.
is working on a reply...