This course is archived!
This tutorial uses an older version of Symfony of the stripe-php SDK. The majority of the concepts are still valid, though there *are* differences. We've done our best to add notes & comments that describe these changes.
02.
10 Comments
Hello,
thank you very much for your tutorial, you did a great job.
In this video, I try to connect stripe to my project (Symfony 5). But it have a lot of change in stripe...
I can't find the bellow in the stripe's document...
<script src="https://checkout.stripe.com..." class="stripe-button" data-key="pk_test_HxZzNHy8LImKK9LDtgMDRBwd" data-amount="999" data-name="Dollar Shear Club" data-description="Widget" data-image="/img/documentation/checkout/marketplace.png" data-locale="auto">
</script>
Hey Viet Son Nguyen !
> thank you very much for your tutorial, you did a great job
Thanks! But I *am* sorry to say that this tutorial is starting to show its age! Several parts are quite old and things have changed :/.
For the embedded checkout form, I'm not sure they support this anymore. They do have a way where you can easily redirect a user to Stripe - https://stripe.com/docs/pay... - or you can build a custom form, the new way is to use Stripe elements - https://stripe.com/docs/str... - which are pretty cool because they give you some control, but take care of a lot of the work for you. I think my embedded code used in this tutorial may still work, but it's not the recommended way of doing it anymore.
Cheers!
can you tell me why this elements dont want to render on my site?
https://ibb.co/8gXrNsB
Is this becouse of xampp server?
Hey Simon,
Thank you for providing the screenshot, it really helps to understand it better!
It looks like those requests to JS files are blocked by something... probably by your browser? I see you're using Chrome, could you try to open it in Incognito mode? Or if still not work, try to open this in another browser, e.g. Firefox? Does it helps?
If still does not work - could you do a right click on a blocked file and open it in a new tab? Do you see its content? Or do you see any errors? Which errors?
P.S. It might be because of the server you use, i.e. XAMPP. I'd recommend you to try it in another server, e.g. Symfony or PHP built-in servers and see if those JS requests are still blocked.
I hope this helps to debug this!
Cheers!
It was adblock. It is known problem to his maker. But unresolved.
Hey Simon,
Ah, yes, that plugin may do things like this too, good find! As a workaround, you probably could whitelist the website and it should be ok.
Cheers!
and by the way rendering was problem made by form-row. In symfony with bootstrap it was cross rendering with some other class. I had to remove class form-row from div and it worked.
Hey simon,
Glad you found the problem! And thanks for sharing your solution with others!
Cheers!
yeah but what about customers ?
Hey Simon,
Sorry, could you tell a bit more?
Cheers!
"Houston: no signs of life"
Start the conversation!