#MMunir-checkout

1 messages · Page 1 of 1 (latest)

native ermine
#

Hello! Starting up a thread for you

#

What specific errors are you getting?

barren thicket
#

Parse error: syntax error, unexpected 'public' (T_PUBLIC) in /Users/mmunir/Desktop/Final-Test-stripe/server/index.php on line 94

native ermine
#

You're getting this error because you have .NET code in the middle of your PHP file.

#

You need to rewrite your new code to work with the PHP code you already have

barren thicket
#

so the placement is correct and do i have rewrite all of it or only line 94

native ermine
#

I haven't done a comprehensive review of all the code you sent over so I can't guarantee that's the only issue with the code, but the error you're getting now is definitely because of what I mentioned (you're using .NET). I'd recommend just removing the incorrect code you added, rewriting it in php, and then see if it works after that

barren thicket
#

ok thank you

#

was looking at it its different than the video one in video you can extract with javascript and it to html but in doc it create html initself

#

can you request your team to have same tutorial for php slim as it can be easy for us to understand and use it in same way cuz then you can explore better

native ermine
#

Yes, I can definitely flag this as feedback to them

barren thicket
#

and one more thing is it possible to have code for automatic payment method as in my i have manually chosen card

gilded breach
#

Hi, stepping in here. Can you clarify what you mean here?

barren thicket
#

in php above i have written 'payment_method_types' => ['card'],

#

and saw that there is option for automatic payment method as it will provide all option so is it possible in php and what are the code for it

#

cant find anything in doc

gilded breach
barren thicket
#

on my stripe account i only see card payment method,if someone odering stuff from china or some other place will they be able to use other payment mehod

#

and in UAE only card payment option is availaible

gilded breach
#

You'd need to enable those payment methods on yoru Dashboard

barren thicket
#

i dont see any

#

i only see card option

gilded breach