Quote:
Actually im not a developer , i dont know anything about Stripe Api thats the reason i. posted my question
To add to what Dave has said ...
If you don't know about something, the best place to start is with the people who created it: asking a woodworking site about Ikea furniture may get you help, but not as "targeted" and knowledgeable as talking to Ikea themselves for example.
Most API producers provide documentation, ans Stripe is no different - they also provide tech support and since Stripe is not free I'd start there. They want your money and they don't get that until you are up and running!
If you aren't a developer, then you need to start at the beginning and understand both the language you are using - PHP - and the basic structure of error messages before you start wading into APIs of any complexity!
And you should never, ever, accept code from a insecure website to handle anything to do with real money.
You do not know who is giving you the code, you do not know what it does, you do not know that it places the monies correctly into the appropriate account, without passing the details to any third parties.
Only get such code from reputable card transaction service companies - the scope for fraud otherwise is far too large. And remember, you personally could be liable for any monies lost if your action is seen to be negligent - which getting your code from a public forum would most certainly be!