yabacon / paystack-php

A PHP Wrapper for Paystack API - https://www.paystack.com
MIT License
109 stars 70 forks source link

Paystack is not redirecting my function #11

Closed alcantara64 closed 6 years ago

alcantara64 commented 6 years ago

after successful payment ...it does does not insert into database callback callback2 callback3

ezra-obiwale commented 6 years ago

JS

Try

{
    // ...
    callback: function() {
        console.log('callback reached');
        // ...
    }
    // ...
}

... and see if the console logs correctly after payment.

PHP

alcantara64 commented 6 years ago

Thanks for response can you write a js code that sends variable to a php page?

ezra-obiwale commented 6 years ago

I'm sorry, I can't at the moment.

ibrahimlawal commented 6 years ago

Your issue seems to be with Javascript rather than this library. Please consult jQuery's documentation for help on posting data to the server. Testing in Postman (https://www.getpostman.com) before coding in browser can also help.