Stripe CC Preauthorization

Bman579

0
Rep
13
Likes
Junior Carder
Posts
31
Threads
2
Joined
Aug 2019
Sign Up or Login to view this post and enjoy everything our site has to offer!
Preauthorization is a means to validate the CC without killing the card. Preauthorization is a means to put a “soft” hold on the CC without actually charging the CC. The Preauth will not show up on the CC statement unless you actually capture the charge within 5-7 days. Otherwise the Preauth hold will expire.

I have written a process using Stripe to Preauth a CC to validate cc number, expiration date and cvv. The process is explained below with the code in PHP. I am assuming you know how to setup a Stripe merchant account. If not then google is your friend.

1. You need to tokenize the CC

function createCardToken($number,$month,$year,$cvc){

try {

$token = "";

$token = \Stripe\Token::create(array(

"card" => array(

"number" => $number,

"exp_month" => $month,

"exp_year" => $year,

"cvc" => $cvc

)));



$retval = "success";

return array($retval,$token->id);



} // END TRY

catch (Exception $e) {

$error = $e->getMessage();

$retval = $error;

echo "Token Creation Error: $error <br>";

return array($retval,"");

}

} // End of createCardToken

2. Use the token to Preauth the CC for $1

// Preauthorize Card

function preauthCard($token){

try {

$charge = \Stripe\Charge::create([

'amount' => 100,

'currency' => 'usd',

'description' => 'Preauth charge',

'source' => $token,

'capture' => false,

]);



$retval = "success";

return array($retval,$charge->id);



} // END TRY

catch (Exception $e) {

$error = $e->getMessage();

$retval = $error;

echo "Preauth Error: $error <br>";

return array($retval,"");

}

} // end of Preauth

3. If the Preauth charge is successful then the card is LIVE and CVV is valid. At this point you can either issue a refund or let the Preauth expire on its own.

// Refund the Charge

function createRefund($cid){

try {

$re = \Stripe\Refund::create([

"charge" => $cid ]);



$ref_id = $re->id;



$retval = "success";

return array($retval,$ref_id);



} // END TRY

catch (Exception $e) {

$error = $e->getMessage();

$retval = $error;

echo "Refund Error: $error <br>";

return array($retval,"");

}

} // end of refund charge
 

Bman579

0
Rep
13
Likes
Junior Carder
Posts
31
Threads
2
Joined
Aug 2019
Sign Up or Login to view this post and enjoy everything our site has to offer!
Also I am selling the complete set of code to parse a checker formatted file so you can Preauth a Batch of CCV.

Format: cards.txt

4147205217882456|08|2024||877
4147208087616111|12|2022||453
4147208286107243|11|2021||226
4147208735740883|10|2023||166
4147201380527689|02|2021||207
4147206276847133|10|2021||182
4147205775720064|07|2023||112
4147205385551149|11|2023||232
4147205745388083|06|2022||577

The cost of script is 5$ in BTC. Email me if you want to purchase.

Bman579@consultant.com
 

Sergegee

0
Rep
1
Likes
Junior Carder
Posts
39
Threads
0
Joined
Feb 2020
Sign Up or Login to view this post and enjoy everything our site has to offer!
Very Interested in Stripe method mate, but am a Noob. Any way to get step by step guide on how to good on that platform