|
Posted by Afshin Alikhani on July 26, 2006, 10:48 pm
Please log in for more thread options
We are doing an RMS advance tchnical training for devellopers in Sydney in
August and in London in September. If you want to attend contact me.
Afshin Alikhani - [ afshin@retailrealm.co.uk ]
CEO - Retail Realm
= = = = = =
> This button should do some custom functionality like sending some data to
> payment processor (it's already implemented) after this order should be
> mark
> as Closed, Inventory should be updated etc.
>
>
>
> The problem is that I cannot find any mention of how to finalize the order
> (for some reasons Transaction.Post doesn't work).
>
>
>
> It's a code that I currently use. What else can I do to meet my purpose?
>
>
>
> int setDepositResult =
> Convert.ToInt32(transactionComType.InvokeMember("SetDepositTotal",BindingFlags.InvokeMethod,
> null,transaction,new object[1] ));
>
>
>
> object tender =
> sessionComType.InvokeMember("TenderDefault",BindingFlags.GetProperty,
> null,transaction,null);
>
>
>
> Type tenderComType = tender.GetType();
>
>
>
> tenderComType.InvokeMember("AmountIn", BindingFlags.SetProperty, null,
> tender, new object[1] );
>
>
>
> int tendersForceValidationResult =
> Convert.ToInt32(transactionComType.InvokeMember("TendersForceValidation",BindingFlags.InvokeMethod,
> null, transaction, null));
>
>
>
> int postFunctionResult =
> Convert.ToInt32(transactionComType.InvokeMember("Post",
> BindingFlags.InvokeMethod, null, transaction, null));
>
>
>
>
>
>
>
> If necessary I'm ready use VB6 or VB.NET. Just extremely need this button
> to
> work.
>
|