public function blueTransaction($param) { $bp = new BluePayment(); $bp->sale('25.00'); $bp->setCustInfo('4111111111111111', '123', '1111', 'Chris', 'Jansen', '123 Bluepay Ln', 'Bluesville', 'IL', '60563', 'USA', '123-456-7890', '*****@*****.**'); $bp->process(); $output = $bp->getresponse(); //echo 'Response: '. $bp->getResponse() .'<br />'. // 'TransId: '. $bp->getTransId() .'<br />'. // 'Status: '. $bp->getStatus() .'<br />'. // 'AVS Resp: '. $bp->getAvsResp() .'<br />'. // 'CVV2 Resp: '. $bp->getCvv2Resp() .'<br />'. // 'Auth Code: '. $bp->getAuthCode() .'<br />'. // 'Message: '. $bp->getMessage() .'<br />'. // 'Rebid: '. $bp->getRebid(); $outarray = array('response' => '12or3', 'responsetext' => $bp->getResponse(), 'authcode' => $bp->getAuthCode(), 'transactionid' => $bp->getTransId(), 'avsresponse' => $bp->getAvsResp(), 'cvvresponse' => $bp->getCvv2Resp(), 'orderid' => $bp->getMessage(), 'response_code' => $bp->getResponse()); $response = array_merge_recursive($outarray, $charged); return $response; }