*note: Another strange thing that I noticed is that Authorize.net isn't generating a authorization code, so it is as if the system isn't pushing over all the needed information. From what I can see on the transaction on Authorize.net's side everything except for the authorization code is there.
Code: Select all
//CREATE THE PAYMENT OBJECT
Payment payment = GetPayment();
//PROCESS CHECKING OUT EVENT
bool checkOut = true;
if (CheckingOut != null)
{
CheckingOutEventArgs c = new CheckingOutEventArgs(payment);
CheckingOut(this, c);
checkOut = !c.Cancel;
}
if (checkOut)
{
//PROCESS A CHECKOUT
CheckoutRequest checkoutRequest = new CheckoutRequest(payment);
CheckoutResponse checkoutResponse = Token.Instance.User.Basket.Checkout(checkoutRequest);
if (checkoutResponse.Success)
{
if (CheckedOut != null)
CheckedOut(this, new CheckedOutEventArgs(checkoutResponse));
#region PAGE8 CUSTOM CODE
// BEGIN PAGE8 CUSTOM CODE --------------------------------------------------------------
if (payment.PaymentStatus == PaymentStatus.Captured)