Modify Example Stripe Checkout for Existing Stripe Customer IDs
Budget: $10 – $50 USD
Hi. I found a simple Stripe Checkout Script that works awesome. It's easy and quick to install and is based around PHP, MySQL and JS. It doesn't need any fancy terminal/command line based installations.
https://www.allphptricks.com/integrate-stripe-payment-gateway-using-php/
I want to modify it so it works with existing Stripe Customer IDs as well. Right now it creates a totally new Customer ID in Stripe for each Transaction/Purchase, so if I use the same email I might have lots of different Stripe Customer IDs.
This doesn't allow you to save a card to your Stripe Customer ID and Account easily.
I can show you a couple of lines of code I modified in the PaymentIntents function which makes the script save the credit card being used in the current purchase to the new Customer ID it creates...
If you can modify it so it can use existing Customer IDs then that card should be able to save to the existing Stripe Customer ID.
I actually already tried this and it works - except when I load an existing Stripe Customer ID somehow it breaks the actual purchase and success parts at the end of the original Checkout process.
I could probably mess around in the code and figure out how to fix this, but I want someone else more experienced with Stripe to do that, so I can focus on the things I'm good at!
This should be pretty easy (for someone who's a better Dev than me and knows Stripe) because like I said - I got it to work by changing 2-3 lines of code - it just breaks the purchase and success functions. I can pay $50 for this.
Thanks!
https://www.allphptricks.com/integrate-stripe-payment-gateway-using-php/
I want to modify it so it works with existing Stripe Customer IDs as well. Right now it creates a totally new Customer ID in Stripe for each Transaction/Purchase, so if I use the same email I might have lots of different Stripe Customer IDs.
This doesn't allow you to save a card to your Stripe Customer ID and Account easily.
I can show you a couple of lines of code I modified in the PaymentIntents function which makes the script save the credit card being used in the current purchase to the new Customer ID it creates...
If you can modify it so it can use existing Customer IDs then that card should be able to save to the existing Stripe Customer ID.
I actually already tried this and it works - except when I load an existing Stripe Customer ID somehow it breaks the actual purchase and success parts at the end of the original Checkout process.
I could probably mess around in the code and figure out how to fix this, but I want someone else more experienced with Stripe to do that, so I can focus on the things I'm good at!
This should be pretty easy (for someone who's a better Dev than me and knows Stripe) because like I said - I got it to work by changing 2-3 lines of code - it just breaks the purchase and success functions. I can pay $50 for this.
Thanks!