Comments on: Stripe Payment Gateway Integration in PHP https://www.codexworld.com/stripe-payment-gateway-integration-php/ Web & Mobile App Development Company Mon, 24 Nov 2025 15:07:19 +0000 hourly 1 By: Eric https://www.codexworld.com/stripe-payment-gateway-integration-php/comment-page-2/#comment-230710 Tue, 14 Mar 2023 21:35:21 +0000 https://www.codexworld.com/?p=2942#comment-230710 With your code, we need to initialize to add price in stripe. How people can select a product into page and update the price ?

]]>
By: Yogesh Kumar https://www.codexworld.com/stripe-payment-gateway-integration-php/comment-page-1/#comment-230680 Tue, 14 Mar 2023 08:36:30 +0000 https://www.codexworld.com/?p=2942#comment-230680 Hi is any way to add amount(price) textfield

]]>
By: Yogesh Kumar https://www.codexworld.com/stripe-payment-gateway-integration-php/comment-page-1/#comment-230677 Tue, 14 Mar 2023 07:14:10 +0000 https://www.codexworld.com/?p=2942#comment-230677 Hello,
how can we add price as a textfield how can we pass price dynamically
thanks

]]>
By: Alfred Li https://www.codexworld.com/stripe-payment-gateway-integration-php/comment-page-1/#comment-224367 Tue, 20 Dec 2022 03:39:19 +0000 https://www.codexworld.com/?p=2942#comment-224367 Is it support PHP 5.x ?

]]>
By: Michael Kilpatrick https://www.codexworld.com/stripe-payment-gateway-integration-php/comment-page-1/#comment-223614 Tue, 06 Dec 2022 23:00:55 +0000 https://www.codexworld.com/?p=2942#comment-223614 Please someone tell me what might be different about my webhosting package which means that the following lines of code in payment_init,php cause the gateway to hang indefinitely and never write the payment to the SQL database? If I delete these lines (and the first part of the following IF statement) then the gateway doesn’t crash and it writes the transaction to the database although it does NOT produce the “payment successful!” message with the details.

        $sqlQ = “SELECT id FROM transactions WHERE txn_id = ?”;
        $stmt = $db->prepare($sqlQ);
        $stmt->bind_param(“s”, $db_txn_id);
        $db_txn_id = $transactionID;
        $stmt->execute();
        $result = $stmt->get_result();
        $prevRow = $result->fetch_assoc();

My web hosting package PHP info can be viewed here. On my PC at home, where this all works fine on my localhost, I have PHP 8.1 using Xampp.
https://www.harmonyinharlem.co.uk/new-stripe/phpinfo.php

]]>
By: saurav https://www.codexworld.com/stripe-payment-gateway-integration-php/comment-page-1/#comment-165400 Thu, 03 Mar 2022 05:43:25 +0000 https://www.codexworld.com/?p=2942#comment-165400 Hello,
How to desing embeded iframes, am not able to do so.
Thanks

]]>
By: Patrick https://www.codexworld.com/stripe-payment-gateway-integration-php/comment-page-1/#comment-162466 Sat, 29 Jan 2022 12:02:25 +0000 https://www.codexworld.com/?p=2942#comment-162466 How can I get the ‘Charge ID’ during this process and have that inserted into the ‘transactions’ table?
Does something have to be added to checkout.js — or to payment_init.php?
I know how to add it to the DB, but I don’t know how to get the data from the API.

Thank you!

“charges”: {
“object”: “list”,
“data”: [
{
“id”: “ch_3KXXXXXDO2l53YI1XXXXXAl5”,
“object”: “charge”,
“amount”: 11000,

]]>
By: alvar onno https://www.codexworld.com/stripe-payment-gateway-integration-php/comment-page-1/#comment-159333 Tue, 21 Dec 2021 10:00:50 +0000 https://www.codexworld.com/?p=2942#comment-159333 is there possible to have a database listing products and not usinf config.php as product.
and “Processing…” keeps processing and does nothing untill you refresh the page…….

]]>
By: CodexWorld https://www.codexworld.com/stripe-payment-gateway-integration-php/comment-page-1/#comment-157170 Tue, 23 Nov 2021 09:47:04 +0000 https://www.codexworld.com/?p=2942#comment-157170 In reply to Alex.

The script has been updated with 3D Secure and SCA features, please download the latest version.

]]>
By: CodexWorld https://www.codexworld.com/stripe-payment-gateway-integration-php/comment-page-1/#comment-157168 Tue, 23 Nov 2021 09:46:44 +0000 https://www.codexworld.com/?p=2942#comment-157168 In reply to Anshu.

The script has been updated with 3D Secure and SCA features, please download the latest version.

]]>