PaystackJS-Sample-code icon indicating copy to clipboard operation
PaystackJS-Sample-code copied to clipboard

how to run this on localhost?

Open couscousbawl opened this issue 7 years ago • 4 comments

Literally all I did is download this git and run it on my localhost, changed the secret key and opened the path of the folder on my browser!

Showing this on my browser, Your server is set up. / does not exist Open /payment to test the form.

How do I get to test this? what is the recognized paths?

couscousbawl avatar Mar 22 '18 12:03 couscousbawl

change your /index.php to /payment it should work. i'm getting Curl failed with response: 'SSL certificate problem: unable to get local issuer certificate'.

adescode avatar Apr 07 '18 13:04 adescode

@teabread90 apologies for the tardy response... I guess you already figured out that the recognized path is /payment tho.

@adescode this article should help you understand: https://github.com/yabacon/paystack-php/wiki/cURL-error-60:-SSL-certificate-problem:-unable-to-get-local-issuer-certificate-(see-http:--curl.haxx.se-libcurl-c-libcurl-errors.html) .

TL;DR > Your PHP server is old and needs an update.

ibrahimlawal avatar Apr 07 '18 13:04 ibrahimlawal

@teabread90 all you have to do is link it to the folder named paystack and index.php will direct it to pay.php or html and that would be solved

alagaddonjuan avatar Jul 17 '18 08:07 alagaddonjuan

change your /index.php to /payment it should work. i'm getting Curl failed with response: 'SSL certificate problem: unable to get local issuer certificate'.

Still not working

winniegakuru avatar Aug 07 '19 06:08 winniegakuru