sdiaz83 replied to Duke's topic in Effortless E-Commerce with PHP and MySQL (2nd Edition)For anyone still looking for way to retrieve the last4 numbers of the credit card so that they are available for the receipt etc, here is the solution: After Larry's code: $charge =\Stripe\charge::create(array( "amount" => $order_total, "currency" => "usd", "source" = > $token, "description" => $_SESSION['email'], )); place the following line of code: $last4 = $charge->source->last4; then update the order query to replace the previous number from $cc_last_four.
sdiaz83 replied to Duke's topic in Effortless E-Commerce with PHP and MySQL (2nd Edition)Retrieving the last 4 digits of the credit card: I'm having problems retrieving the last 4 digits of the credit card used for payment from Stripe, so I can include n the receipt. I have found some information online, but it does not seem to work. Has anyone had any luck with this? Regards, Sam