transaction_id = $_POST[‘transId’]; $this->transaction_status = $_POST[‘transStatus’]; //should be either Y (successful) or C (cancelled) $this->transaction_time = $_POST[‘transTime’]; $this->authorisation_amount = $_POST[‘authAmount’]; $this->authorisation_currency = $_POST[‘authCurrency’]; $this->authorisation_amount_string = $_POST[‘authAmountString’]; $this->raw_auth_message = $_POST[‘rawAuthMessage’]; $this->raw_auth_code = $_POST[‘rawAuthCode’]; $this->callback_password = $_POST[‘callbackPW’]; $this->card_type = $_POST[‘cardType’]; $this->country_match = $_POST[‘countryMatch’]; //Y – Match, N – Mismatch, B – Not Available, I – Country not supplied, S – Issue Country not available $this->waf_merchant_message = $_POST[‘wafMerchMessage’]; $this->authentication = $_POST[‘authentication’]; $this->ip_address = $_POST[‘ipAddress’]; $this->character_encoding = $_POST[‘charenc’]; $this->future_payment_id = $_POST[‘futurePayId’]; $this->future_payment_status_change = $_POST[‘futurePayStatusChange’]; //custom properties $this->mc_custom_property = $_POST[‘MC_custom_property’]; } } ?> Thank you for your payment transaction_status == “Y”){ ?> Transaction Details
transaction_id . “
“; echo “Payment Status: ” . $wp_response->transaction_status . “
“; echo “Transaction Time: ” . $wp_response->transaction_time . “
“; echo “Amount: ” . $wp_response->authorisation_amount_string . “
“; echo “IP Address: ” . $wp_response->ip_address . “

“; }else if($wp_response->transaction_status == “C”) { ?> Transaction Cancelled Your transaction was unsuccessful.