#MMunir-checkout
1 messages · Page 1 of 1 (latest)
Parse error: syntax error, unexpected 'public' (T_PUBLIC) in /Users/mmunir/Desktop/Final-Test-stripe/server/index.php on line 94
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
If you need PHP code snippets, I'd recommend looking at our guides (https://stripe.com/docs/payments/checkout/custom-success-page) since include PHP code
so the placement is correct and do i have rewrite all of it or only line 94
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
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
Yes, I can definitely flag this as feedback to them
and one more thing is it possible to have code for automatic payment method as in my i have manually chosen card
Hi, stepping in here. Can you clarify what you mean here?
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
Yes, here is the guidance you should be referencing: https://stripe.com/docs/connect/automatic-payment-methods
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
You'd need to enable those payment methods on yoru Dashboard
https://dashboard.stripe.com/test/settings/payment_methods is where you can enabled other options, where are you looking?