#slimhakz
1 messages ยท Page 1 of 1 (latest)
Hello! What's up?
hi
Just done my first test transaction with stripe; however I wish to be able to pass hidden information e.g. email and booking reference to the success page so that the booking on our side can be confirmed when it reaches the success page.
How can this be done, using full stripe checkout.
You can set metadata on the Checkout Session when you create it: https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-metadata
I can't see a applicable example?
Not sure I understand, can you provide more details?
$checkout_session = \Stripe\Checkout\Session::create([
'customer_email' => $Customer_Email,
'metadata' => [
"BookingID" => $BR,
"CustomerEmail" => $Customer_Email
],
'mode' => 'payment',
Is this correct?
I can't review your code or tell you if it's correct or not. The best way to know if your code works is to run it in test mode and see if it does what you expect or not.
Not sure I understand?
I'll take a look in a few hours again thank you ๐
Happy to help!