#hatempewpew
1 messages · Page 1 of 1 (latest)
Hello! We don't offer screenshares, but I'd be happy to help
Hello
i just need how to get payment
data
like succes and all as json data
php native
as afetr payment its just redirect to my site link
thats it no data to check on it
or send all link of documentation for this point
appreciated any help
We have docs on how to do all of this https://stripe.com/docs/payments/checkout/custom-success-page - if you want to retrieve the Checkout Session from the success page you'd add {CHECKOUT_SESSION_ID} as a template variable to your success URL and you can use that ID to retrieve the Checkout Session
and if you want to listen for all payment success you'd use webhooks and listen for the checkout.session.completed event https://stripe.com/docs/payments/checkout/fulfill-orders
i still get this
like my link refuse getting $_GET
even code succes page all correct
Hi @signal rose I'm taking over this thread
Looks like the session_id is empty. can you do an echo $_GET['session_id'] and see what it prints out?
i got this
Fatal error: Uncaught (Status 404) (Request req_LuOEgkvU7rz9Sj) No such checkout.session: cs_live_a1L2QOeNT6InjELgJttkBn0kiy4KT2JOJNP7PKhrC4qksstarKJgnDQgUB thrown in C:\xampp\htdocs\libs\resuource\views\Stripe\vendor\stripe\stripe-php\lib\Exception\ApiErrorException.php on line 38
will try again
and see
Fatal error: Uncaught (Status 404) (Request req_SBEvLanIQpqfFo) No such checkout.session: cs_live_a1KO3hj7lBZWxwPcofQ6AgrIGv6J9Js5MH5mK7t74mPb0p6O4sH9B39v7V thrown in C:\xampp\htdocs\libs\resuource\views\Stripe\vendor\stripe\stripe-php\lib\Exception\ApiErrorException.php on line 38
same
So you didn't see anything in console after adding echo $_GET['session_id'] ?
Ok, so now get the ID
after i bakc code in link doc
i get this
Fatal error: Uncaught Stripe\Exception\InvalidArgumentException: The resource ID cannot be null or whitespace. in C:\xampp\htdocs\libs\resuource\views\Stripe\vendor\stripe\stripe-php\lib\Service\AbstractService.php:105 Stack trace: #0 C:\xampp\htdocs\libs\resuource\views\Stripe\vendor\stripe\stripe-php\lib\Service\CustomerService.php(277): Stripe\Service\AbstractService->buildPath('/v1/customers/%...', NULL) #1 C:\xampp\htdocs\libs\resuource\views\visa.blade.php(7): Stripe\Service\CustomerService->retrieve(NULL) #2 C:\xampp\htdocs\index.php(144): require('C:\xampp\htdocs...') #3 {main} thrown in C:\xampp\htdocs\libs\resuource\views\Stripe\vendor\stripe\stripe-php\lib\Service\AbstractService.php on line 105
Can you share with me your merchant ID? you can find it from the Stripe Dashboard -> Settings ->Account Details
that's correct
The checkout session cs_live_a1KO3hj7lBZWxwPcofQ6AgrIGv6J9Js5MH5mK7t74mPb0p6O4sH9B39v7V was created with a live mode secret, are you currently uisng the live mode secret in your development?
yeah
Ok https://dashboard.stripe.com/test/logs/req_SBEvLanIQpqfFo looks like you are using the test mode secret in this request
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
But the log says otherwise
thel ive start with sk live
ok letm e try again
check this sir
cs_live_a1YE7AakfvxfMpUp0c3GebTREXtaDUocG3ae9lCtilNTDbd210CW5FyW8p
live mode
same error
- charged me so how test will charge
- my scret start with sk_live
But it looks like the echo $_GET['session_id'] doesn't print out anything?
I don't see it in the page