Jump to content
Larry Ullman's Book Forums

sdiaz83

Members
  • Posts

    2
  • Joined

  • Last visited

Everything posted by sdiaz83

  1. 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.
  2. 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
×
×
  • Create New...