BV Commerce Forum
»
BV Commerce Support
»
General Support
»
356: OPEN - Workflow Task: Recieve Credit Cards error
Rank: Member
Joined: 1/23/2006(UTC) Posts: 103
|
I'm using the tutorial from: http://www.bvsoftware.co...;s/HandlingDeclines.aspxWhen I open the "recieve credit cards" task, enable the checkbox "Throw Errors on Failure", and press save, it does not save the status of the checkbox. If I re-open the task, the checkbox will be unchecked. Also, an error message will not display during the order process if a card is declined.
|
|
|
|
Rank: Member
Joined: 1/23/2006(UTC) Posts: 103
|
Also, I can get the order process to not proceed further if a card is declined but it just refreshes the page and doesn't display an error message.
|
|
|
|
Rank: Member
Joined: 3/1/2006(UTC) Posts: 1,142
|
You should try removing the receive credit cards task and re-adding it to the workflow. It looks like something may have gotten out of sync. |
Justin Etheredge Senior Software Engineer BVSoftware |
|
|
|
Rank: Member
Joined: 1/23/2006(UTC) Posts: 103
|
I remove the "Receive Credit cards" task and then re-added it. The checkbox for "Throw Error" still won't work.
|
|
|
|
Rank: Member
Joined: 1/23/2006(UTC) Posts: 103
|
I tried editing some of the other editable workflow tasks and I'm not able to enable the "throw error" option on any of them. I'm using BVC5 sp1
|
|
|
|
Rank: Member
Joined: 1/23/2006(UTC) Posts: 103
|
I found the problem and implemented a temporary solution. When the button is clicked to place the order and the credit card does not go through, the following code is run:
For Each item As BusinessRules.WorkflowMessage In c.GetCustomerVisibleErrors MessageBox.ShowError(item.Description) Next
For the BVSoftware.Bvc5.Core.BusinessRules.TaskContext.Errors collection, the CustomerVisible() property of the error with the name "Receive Card Failed" is set to false.
I can't find a collection of errors in your database so I figure they are hard coded and I don't have the developer edition so I can't find where the error lists are located at. The code below is a temporary workaround.
'For Each item As BusinessRules.WorkflowMessage In c.GetCustomerVisibleErrors For Each item As BusinessRules.WorkflowMessage In c.Errors If item.Name = "Receive Card Failed" Then MessageBox.ShowError(item.Description) End If Next
|
|
|
|
Rank: Member
Joined: 3/1/2006(UTC) Posts: 1,142
|
Are you seeing any errors in the event log? All of these settings should be saved in the component settings table with the id of the task. Are you seeing any errors involving component settings?
Also, the error message coming from the ReceiveCreditCard task was inadvertently not marked as "display to customer." This will be fixed in the future. |
Justin Etheredge Senior Software Engineer BVSoftware |
|
|
|
Rank: Member
Joined: 1/23/2006(UTC) Posts: 103
|
This error shows up twice when then the place order button is pushed whether the credit card fails or not:
Input string was not in a correct format.[ at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) at BVSoftware.Bvc5.Core.BusinessRules.OrderTasks.ChangeOrderStatusWhenPaymentRemoved.Execute(OrderTaskContext context) at BVSoftware.Bvc5.Core.BusinessRules.OrderTask.Execute(TaskContext context) at BVSoftware.Bvc5.Core.BusinessRules.Workflow.Run(TaskContext c) ]
source is mscorlib
|
|
|
|
Rank: Member
Joined: 10/17/2006(UTC) Posts: 66
|
Hi Christian:
I am seeing the same problems that you are (the "throw errors" checkbox doesn't stick).
I tried the fix you suggestion.
However, I then have this problem...
The "Payment Complete" workflow runs, even though there is a credit card error during the "Process New Order" workflow. I can tell, because mails go to customer, even though the credit card failed.
Does this happen to you, too?
Any idea how can I prevent the "payment complete" workflow from running, since the credit card failed?
-- Jorge.
|
|
|
|
Rank: Member
Joined: 10/17/2006(UTC) Posts: 66
|
The reason the throw errors checkbox doesn't stick is because of a typo in the file: See below: "ThrowErrors" was mispelled at line 32 of: c:\inetpub\wwwroot\srt\BVModules\OrderTasks\Receive Credit Cards\edit.ascx.vb Code: Me.chkThrowErrors.Checked = Me.SettingsManager.GetBooleanSetting("ThrowErrors")
|
|
|
|
Rank: Member
Joined: 1/23/2006(UTC) Posts: 103
|
|
|
|
|
Rank: Member
Joined: 1/23/2006(UTC) Posts: 103
|
I fixed the error as per jorje. If the error is marked visible to customer then everything will work perfectly
|
|
|
|
Rank: Member
Joined: 4/5/2007(UTC) Posts: 22
|
Hi! Everybody,
I fixed the error as jorgem's saying. But the checkout page keeps to block all order through and doesn't show any error messages still. I mean, even input correct credit card info, the checkout page also can't to the thankyou/recipt page and no error message showing. So, Christian Moments, how do you get everything work perfectly? Please give some suggestion. Thanks lot.
|
|
|
|
Rank: Member
Joined: 1/23/2006(UTC) Posts: 103
|
Hi Kliu, SP2 should correct the error so I'd wait for that to fix it but the problem is that "received cards failed" is not a customer visible error. This code fixes it.
'For Each item As BusinessRules.WorkflowMessage In c.GetCustomerVisibleErrors For Each item As BusinessRules.WorkflowMessage In c.Errors If item.Name = "Receive Card Failed" Then MessageBox.ShowError(item.Description) End If Next
Just look for the line "For Each item As BusinessRules.WorkflowMessage In c.GetCustomerVisibleErrors" and replace it with all the above. Once "Recieve cards failed" is marked customer visible in the core software, then the problem will be fixed. Email me if you need some help david [at] libertytec.com.
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.