#irfanz-android-php

1 messages · Page 1 of 1 (latest)

red forgeBOT
noble wing
#

Can you hit your endpoint via curl, postman, the browser etc?

#

Sounds like your server isn't configured properly and isn't up

red forgeBOT
young crown
#

irfanz-android-php

#

@jagged viper also the first step would be to make all of this work locally on your computer first before you try to upload an app live on your host

jagged viper
#

@young crown so does that I mean that I need to download XAMMP? The strange is, this php code uses php_encode, which what I'm understanding means that all the data such as secretKey, ephermal key would be displayed as json string when this file is clicked in a browser, why isn't it doing that atleast?

young crown
#

@jagged viper I can't really teach you how to do PHP development unfortunately, that's somethign you would usually be fully experienced with before you start building a complex app accepting payments. I just use PHP locally without any additional tool

jagged viper
#

so how do you do it then?

young crown
#

I am a PHP developer, I know how to configure PHP on my laptop, have it running from the command line, start a server, etc.
If you are not an experienced PHP developer that would be the first step: Learn how to run PHP code locally, learn how to render a view, respond to an HTTP request, etc.

jagged viper
#

That would be helpful, but when I watch YouTube videos on how to implement Stripe on Android, they make it look so easy, no php code at all. One video told me that this php code just needs to be placed on a server and then let Volley do its magic, how do they do that?

young crown
#

They are likely experienced developers who have built many mobile apps with a server and are familiar with how to set up and configure everything. I'm really sorry but I can't teach you how to do all of that, that's something you have to learn on your own as a developer. There are thousands of ways to integrate this. PHP on a host, heroku hosting, Firebase and many many more. But that's something you have to experiment with and learn first

jagged viper
#

I wonder if it would be easier to upload this api to Github pages instead?