1

Here is my route:

.state('payment-paytm', {
        parent: 'app',
        url: '/pricing/paytm_update',
        component: 'pricing',
        resolve: {
          data: function (PricingService,$stateParams) {
            return PricingService.paytm_update_status($stateParams);
          }
        }
      });

this route is not accepting post request coming from paytm call back.

paramList["CALLBACK_URL"] = "http://localhost:9000/pricing/paytm_update"

this is the url we configured in paytm, this is responding correctly but this post request am not able to handle in my angular.

Gaurav Srivastava
  • 3,232
  • 3
  • 16
  • 36

2 Answers2

1

very first thing,paytm not support REST,so after you are making transaction,you have handle on backend url ( "http://localhost:9000/pricing/paytm_update").from there,use res.redirect("angular url/with paymentid").then by using that id you can display transaction details from your angular frontend

0

I think angular will not be able to capture the post request coming from paytm.

you have to catch it from the server side language and post it to angular route.

for post parameters you could include it in the url ($stateParams) and then you could get the parameters in your angular controller.

Gaurav Srivastava
  • 3,232
  • 3
  • 16
  • 36
  • if am sending call back url to the back end then how can i show the user update status? i want to make a call to back end and get it right? when i can call to back end? how i get to know user done with his transaction or not? – Robin Thomas Jul 07 '17 at 13:41