I can't get the Hosted Tokenization working (in test mode. haven't tried production yet). It's throwing the above error when running this code: $transaction = new mpgTransaction([ 'order_id' => $orderId, 'amount' => $amount, // purchase through the vault 'type' => 'res_purchase_cc', // credit card number / expiry date / cvv token 'data_key' => $dataKey, // SSL enabled merchant 'crypt_type' => "7", ]); $mpgRequest = new mpgRequest($transaction); $mpgRequest->setProcCountryCode("CA"); // false or comment out this line for production transactions $mpgRequest->setTestMode(true); $mpgHttpPost = new mpgHttpsPost( $ini['store_id'], // "LGHAHtore3" $ini['api_token'], // "yesguy" $mpgRequest );
I can't get the Hosted Tokenization working (in test mode. haven't tried production yet). It's throwing the above error when running this code:
$transaction = new mpgTransaction([ 'order_id' => $orderId, 'amount' => $amount, // purchase through the vault 'type' => 'res_purchase_cc', // credit card number / expiry date / cvv token 'data_key' => $dataKey, // SSL enabled merchant 'crypt_type' => "7", ]); $mpgRequest = new mpgRequest($transaction); $mpgRequest->setProcCountryCode("CA"); // false or comment out this line for production transactions $mpgRequest->setTestMode(true); $mpgHttpPost = new mpgHttpsPost( $ini['store_id'], // "LGHAHtore3" $ini['api_token'], // "yesguy" $mpgRequest );
In reply to RR_Moneris: