laravel - Processing a php POST request prior sending to API -
laravel - Processing a php POST request prior sending to API -
i have faced problem on , on again.
scenario: communicate info api using post request (this time it's payment form, user enters details , gets redirected payment gateway create actual transaction via credit card or whatever..), far good.
one of fields commonly required apis in scenario hash field or such, (basically field md5 hashes of fields entered + secret merchant key).
now..
the way hash these fields + secret key securely via server-side language (i utilize php).
i got around problem taking user's original input, processing , hashing it, prompting user sec page, api required fields hidden it included hash too , asked user click "confirm" button triggering post request api's required fields.
here's issue: don't prompting user sec "confirm" page/button.
i'm using laravel, there way take user's input, process , hash needs hashed , automatically redirect him payment gateway without having him click "confirm" button.
i tried trigger confirm button in sec page via jquery on document ready, create more of smooth experience, browsers consider popup , block it.
thanks in advance, allow me know if need clarify anything.
php laravel
Comments
Post a Comment