Hi,
I'm trying to integrate the Moneris payment gateway to a particular WordPress plugin using the PHP API. Below is the code.
$txnArray = array( 'type' => 'purchase', 'order_id' => 'order id', 'cust_id' => 'cust id', 'amount' => $amount, 'pan' => '', 'expdate' => '', 'crypt_type'=> '7', ); $mpgTxn = new mpgTransaction($txnArray); $cvdTemplate = array( 'cvd_indicator' => '1', 'cvd_value' => '' ); $mpgCvdInfo = new mpgCvdInfo($cvdTemplate); $mpgTxn->setCvdInfo($mpgCvdInfo); if($recurring) { $recurArray = array( 'recur_unit' => 'day', 'start_date' => date('Y/m/d', strtotime( '+ 30 day')), 'num_recurs' => '99', 'start_now' => 'false', 'period' => 30, 'recur_amount' => $amount ); $mpgRecur = new mpgRecur($recurArray); $mpgTxn->setRecur($mpgRecur); } $mpgRequest = new mpgRequest($mpgTxn); $mpgRequest->setProcCountryCode('CA'); $mpgRequest->setTestMode(true); $mpgHttpPost = new mpgHttpsPost($store_id, $api_token, $mpgRequest);
I've verified the recurring bill pushes through. What I'm concerned about is the initial payment, credit card verification, and response code. The initial payment does not happen. Nothing regards the CVD. The response code returns null, which by the documentation means the transaction was cancelled.
Am I doing something wrong?
In reply to RR_Moneris:
In reply to ChangeLeaderSolutions: