@bragadeeshs7444 Then you have to make the interface at the first where user will entering the card detsils and after saving the card details you can redirect the user to the payment gatweay. But this strongly not recommended as this process has lot of problem storing this senstaive inofrmtion in you db. .
ok, The first thing is both the URLs should be the same if we use redirectMode == "POST" If you make it "REDIRECT" then you will get the response in the redirect URL if you want to get it on callback URL then use the mode should POST and not redirect.
@@code-180 hello, using angular nd node js for payment, I am successfully getting the payments , but after s2s callback is finished on ejs page, how do I get data back from ejs to localhost angular app ? and how do I make the angular app wait to see if payment is processed ?
Now this is very simple if you think of something like this when you generate the request it first goes from your frontend to the backend. Now backend api gives you only url in return so that you get that url and angular will redirect that to the phone pay page. Now the phone payload have a redirect url and a call back url and redirect mode the redirect mode will be "post" and the call back url and redirect will be the same the url this url will be a node js url. When you get the respond you will redirect to the angular page. Note the url in the call back and redirect url is not a api url it is normal express url which will verify the details of the payment as in my code and redirect to angular website with a success or failure message.
Can you show me how to integrate PhonePe payment gateway in React.js as front-end and Node.js as back-end ? I am getting CORS policy Error while implementing With React.js and Node.js
@shashwatsingh2748 I don't think CORS will be a big problem as there are tons of videos about it, please allow the react URL in the node.js backend and it will solve the problem.
payments are working but health check status api is not working (both is testing with test key and test merchantid) any solution it gives 500 error when health check status
To less info to guess the error, but what i think is there should be something missing in the status API. Key point of check the API URL for AXIO URL status URL are different, Checksum is created properly, or it may be when after successful payment the payment id and transaction id is not being pass properly match the code with my code line by line and I think will found out the error. There must be a error the computer can never be wrong.
where would i get salt key, key Index , and merchantId for testing purpose??
It is inside the official phone pay documentation that I have shown in the video.
will the sane thing work in v4 as well
If that is said in the document then it should.
can i try with the test key and id
@@code-180
how to use saved card details and redirect to payment instead of going to phonepe gateway and entering the card details.
@bragadeeshs7444 Then you have to make the interface at the first where user will entering the card detsils and after saving the card details you can redirect the user to the payment gatweay. But this strongly not recommended as this process has lot of problem storing this senstaive inofrmtion in you db. .
i can get response only in redirect URL not callback URL,how to get s2s response in callback URL?
ok, The first thing is both the URLs should be the same if we use redirectMode == "POST" If you make it "REDIRECT" then you will get the response in the redirect URL if you want to get it on callback URL then use the mode should POST and not redirect.
@@code-180 hello, using angular nd node js for payment, I am successfully getting the payments , but after s2s callback is finished on ejs page, how do I get data back from ejs to localhost angular app ? and how do I make the angular app wait to see if payment is processed ?
Now this is very simple if you think of something like this when you generate the request it first goes from your frontend to the backend. Now backend api gives you only url in return so that you get that url and angular will redirect that to the phone pay page. Now the phone payload have a redirect url and a call back url and redirect mode the redirect mode will be "post" and the call back url and redirect will be the same the url this url will be a node js url. When you get the respond you will redirect to the angular page. Note the url in the call back and redirect url is not a api url it is normal express url which will verify the details of the payment as in my code and redirect to angular website with a success or failure message.
@@code-180 makes sense
Can you show me how to integrate PhonePe payment gateway in React.js as front-end and Node.js as back-end ?
I am getting CORS policy Error while implementing With React.js and Node.js
@shashwatsingh2748 I don't think CORS will be a big problem as there are tons of videos about it, please allow the react URL in the node.js backend and it will solve the problem.
it is not working with production credentials api is worng?
This will not work, the product API URL are different it is mentioned in the document.
payments are working but health check status api is not working (both is testing with test key and test merchantid) any solution it gives 500 error when health check status
To less info to guess the error, but what i think is there should be something missing in the status API. Key point of check the API URL for AXIO URL status URL are different, Checksum is created properly, or it may be when after successful payment the payment id and transaction id is not being pass properly match the code with my code line by line and I think will found out the error. There must be a error the computer can never be wrong.
bro...is it paid service or free use in developer account?
It is a paid payment gateway but integration and testing is free.
Beautiful brother, I am trying to implement in java.
Best of luck
npm install isn' t working
Please do with python and fastapi
Will try that
Thankyou waiting for you lesson
@@code-180
@sannithnalluri5314 This is the video you have ask for - ruclips.net/video/Vpl6-ba-LoM/видео.html
worse never ever try phonepe because of support. (Worse support i ever saw in my 10 year of exp.)