Reply
Highlighted
Member
Posts: 3
Registered: ‎03-25-2015
Accepted Solution

I need a credit card number, cvv and zip to get a succesful transaction

Hello,

 

I followed your guide from here http://developer.authorize.net/tools/errorgenerationguide/ , but I cannot find a credit card number, with a cvv and a zip that will give me a succesful transaction. I only get declined. I am using a sandbox account to make the tests and or course the sandbox url. If you could tell me a credit card number with a cvv and zip that returns a succesful transaction for the sandbox I would much appreciate it as I cannot seem to get a succesful response.

 

Thank you very much


Accepted Solutions
Highlighted
Solution
Accepted by topic author alexbobeica2015
‎08-21-2015 01:58 AM
Expert
Posts: 4,525
Registered: ‎03-08-2010

Re: I need a credit card number, cvv and zip to get a succesful transaction

http://developer.authorize.net/api/reference/

 

<cardNumber>5424000000000015</cardNumber>
        <expirationDate>1220</expirationDate>
        <cardCode>999</cardCode>

 

<zip>44628</zip>

View solution in original post


All Replies
Highlighted
Solution
Accepted by topic author alexbobeica2015
‎08-21-2015 01:58 AM
Expert
Posts: 4,525
Registered: ‎03-08-2010

Re: I need a credit card number, cvv and zip to get a succesful transaction

http://developer.authorize.net/api/reference/

 

<cardNumber>5424000000000015</cardNumber>
        <expirationDate>1220</expirationDate>
        <cardCode>999</cardCode>

 

<zip>44628</zip>

Highlighted
Member
Posts: 3
Registered: ‎03-25-2015

Re: I need a credit card number, cvv and zip to get a succesful transaction

Hi,

 

Tried those and I'm getting this:

 

DECLINED::1::2::This transaction has been declined.::S

Highlighted
Member
Posts: 3
Registered: ‎03-25-2015

Re: I need a credit card number, cvv and zip to get a succesful transaction

I see that in your link in the test tools those work.

 

This is my code (perhaps I'm doing something wrong):

 

function aim_processTrans($data, $test=false,$type="auth")
{
if($test)
{
$post_url = "https://test.authorize.net/gateway/transact.dll";
$loginid='myid';
$transkey='mykey';
}
else
{
$post_url = "https://secure.authorize.net/gateway/transact.dll";
$loginid='myid';
$transkey='mykey';
}

$post_values = array(
    "x_login"            => $loginid,
    "x_tran_key"        => $transkey,
    "x_version"            => "3.1",
    "x_delim_data"        => "TRUE",
    "x_delim_char"        => "|",
    "x_relay_response"    => "FALSE",
    "x_type"            => "AUTH_CAPTURE",
    "x_method"            => "CC",
    "x_card_num"        => "{$data['cnumber']}",
    "x_exp_date"        => "{$data['emonth']}{$data['eyear']}",
    "x_amount"            => "{$data['price']}",
    "x_description"        => "{$data['lname']}",
    "x_first_name"        => "{$data['fname']}",
    "x_last_name"        => "{$data['lname']}",
    "x_address"            => "{$data['addr']}",
    "x_state"            => "{$data['cstate']}",
    "x_zip"                => "{$data['zip']}"
);

$post_string = "";

foreach( $post_values as $key => $value )
    { $post_string .= "$key=" . urlencode( $value ) . "&"; }

$post_string = rtrim( $post_string, "& " );

$request = curl_init($post_url);
curl_setopt($request, CURLOPT_HEADER, 0);
curl_setopt($request, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($request, CURLOPT_POSTFIELDS, $post_string);
curl_setopt($request, CURLOPT_SSL_VERIFYPEER, FALSE);
$post_response = curl_exec($request);
curl_close ($request);


$response_array = explode($post_values["x_delim_char"],$post_response);

return $response_array;
}

Highlighted
Expert
Posts: 4,525
Registered: ‎03-08-2010

Re: I need a credit card number, cvv and zip to get a succesful transaction

echo out your post string to see what you are trying to send to authorize.net

Highlighted
Member
Posts: 1
Registered: ‎03-21-2018

Re: I need a credit card number, cvv and zip to get a succesful transaction

i need a credit card

Highlighted
Posts: 333
Kudos: 59
Solutions: 36
Registered: ‎03-13-2017

Re: I need a credit card number, cvv and zip to get a succesful transaction

Please check the testing guide for it . 

 

https://developer.authorize.net/hello_world/testing_guide/





Send feedback at developer_feedback@authorize.net
Highlighted
Member
Posts: 2
Registered: ‎03-26-2019

Re: I need a credit card number, cvv and zip to get a succesful transaction

can you please help me or point me in the right direction to be able to get 3 credit card numbers that will have a successful transaction at any store.

Michele Diaz