Can not generate receipt after successful sending request
kamal0003 opened this issue · 6 comments
kamal0003 commented
hello, i am facing a problem that after successful sending request to paytm gateway. It did not generate receipt can you please help me in this
adityaraval commented
is there any problem in rendering response.ejs?
kamal0003 commented
Yes Sir page was not render and {} were shown in webpage
…On Tue, Nov 20, 2018 at 5:14 PM Aditya Raval ***@***.***> wrote:
is there any problem in rendering response.ejs?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/Ai9Zee5AQweXHeAJTZPnmSeBxAzhIyK2ks5uw-sTgaJpZM4Yq7Mz>
.
adityaraval commented
Inside server.js
on line 37
replace below line
res.render("response.ejs", {resultData: "true", responseData: success});
with
res.send(success);
And check what kind of response is being sent by paytm.
kamal0003 commented
I tried that already.
Actually i include your code in my main site code and
include all file path in code
kamal0003 commented
when i using your code separate it work fine and
generate receipt but
when i include in my main code it did not generate payment receipt
…On Tue, Nov 20, 2018 at 6:03 PM KAMAL SHARMA ***@***.***> wrote:
I tried that already.
Actually i include your code in my main site code and
include all file path in code
adityaraval commented
There must be some small mistake you are doing, just try to debug in each and every steps so you can find issue occurring at exact place.