I've been working on amending the xslt examples in the UCommerce starter kit, all has been going well apart from UpdatePayment section. My current code used for creating the payment is:
@{
int paymentMethodId = 0;
int.TryParse(umbraco.library.RequestForm("paymentMethodInput"), out paymentMethodId);
}
@*Check to see if a payment method is posted back*@
@if (paymentMethodId != 0)
{
var result = UCommerce.Xslt.Library.CreatePayment(paymentMethodId);
var pipelineResult = UCommerce.Xslt.Library.ExecuteBasketPipeline();
}
And on the next screen which shows as break down of the order
I have seen this working so It has to be something I have done but after debugging everything seems to work absolutely fine, both the result and pipelineResult return success. Is there anything I could have missed that is making this now work?
You're doing it right. An issue was discovered in 2.0.5, which caused the payment to be saved, but not show up on the order until the subsequent page view. uCommerce 2.1 fixes this issue.
Perfect. Next time you can safely skip the uninstall step and just install the newer package on top of the existing one. uCommerce will figure out the upgrade for you.
CreatePayment not adding a payment
Hi,
I've been working on amending the xslt examples in the UCommerce starter kit, all has been going well apart from UpdatePayment section. My current code used for creating the payment is:
And on the next screen which shows as break down of the order
I have seen this working so It has to be something I have done but after debugging everything seems to work absolutely fine, both the result and pipelineResult return success. Is there anything I could have missed that is making this now work?
Thanks
John
Hi John,
You're doing it right. An issue was discovered in 2.0.5, which caused the payment to be saved, but not show up on the order until the subsequent page view. uCommerce 2.1 fixes this issue.
Hi Soren,
Thanks for that I just un-installed verson 2.05 and updated to 2.10, added back in my edited pipelines and all seems to be working now.
John
Perfect. Next time you can safely skip the uninstall step and just install the newer package on top of the existing one. uCommerce will figure out the upgrade for you.
Great yeah I wasn't totally sure which way to go about it but will just do that next time.
is working on a reply...