#slimhakz

1 messages ยท Page 1 of 1 (latest)

uncut juncoBOT
rain zealot
#

Hello! What's up?

sonic tree
#

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.

rain zealot
sonic tree
#

I can't see a applicable example?

rain zealot
#

Not sure I understand, can you provide more details?

sonic tree
#

$checkout_session = \Stripe\Checkout\Session::create([
'customer_email' => $Customer_Email,
'metadata' => [
"BookingID" => $BR,
"CustomerEmail" => $Customer_Email
],
'mode' => 'payment',

#

Is this correct?

rain zealot
#

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.

sonic tree
#

๐Ÿ™‚

#

ok

#

ahh ๐Ÿ˜ฆ

#

Metadata

Edit metadata
No metadata

rain zealot
#

Not sure I understand?

sonic tree
#

I'll take a look in a few hours again thank you ๐Ÿ™‚

rain zealot
#

Happy to help!