Hey Guys,
I have an If statement in one of my php files. I want to send an email to my client anytime it IsApproved. So how do I make it send an email to the client when it is approved? Here is some of the code, the first if($response->IsApproved statement is what I need to add a function to email when this is active: How do I do this any suggestions?
if($response->IsApproved())
{
header("Location: " . $GatewaySettings['PaymentApprovedPage']);
}
else
header("Location: " . $GatewaySettings['PaymentDeniedPage'] . "?gateway_error=" . rawurlencode($response->GetField("ResponseReasonText")));
}
else
header("Location: " . $GatewaySettings['PaymentDeniedPage'] . "?gateway_error=" . rawurlencode($transaction->GetErrorString($errorCode)));
?>