2016-06-30 10 views
4

Ich habe alle obligatorischen Parameter gesendet. Nachdem Sie auf Senden geklickt haben, ist die Antwortseite wie folgt. Prüfsumme fehlgeschlagen und Anfrage konnte nicht verarbeitet werden.Wie integrieren Sie Payumoney in Angularjs Anwendung?

enter image description here

HTML-Formular

<form action="https://secure.payu.in/_payment" method="post"> 
<input type="text" ng-model="checkout.txnid" name="txnid"> 
<p>{{checkout.txnid="123456"}}</p> 
<input type="text" ng-model="checkout.key" name="key"> 
<p>{{checkout.key="WHlKGc"}}</p> 
<input type="text" ng-model="checkout.amount" name="amount"> 
<p>{{checkout.amount=checkout.grandtotal}}</p> 
<input type="text" ng-model="checkout.productinfo" name="productinfo"> 
<p>{{checkout.productinfo="pending"}}</p> 
<input type="text" ng-model="checkout.firstname" name="firstname"> 
<p>{{checkout.firstname=userinfo.name}}</p> 
<input type="text" ng-model="checkout.email" name="email"> 
<p>{{checkout.email=userinfo.email}}</p> 
<input type="text" ng-model="checkout.phone" name="phone"> 
<p>{{checkout.phone="8125434557"}}</p> 
<input type="text" ng-model="checkout.hash" name="hash"> 
<p>{{checkout.hash=encrypttext}}</p> 
<input type="text" ng-model="checkout.surl" name="surl"> 
<p>{{checkout.surl="www.google.com"}}</p> 
<input type="text" ng-model="checkout.furl" name="furl"> 
<p>{{checkout.furl="www.appqube.in"}}</p> 
<input type="text" ng-model="checkout.service_provider" name="service_provider"> 
<p>{{checkout.service_provider="payu_paisa"}}</p> 
<button class="button style-10" href="" ng-click="ProceedToCheckout(checkout)" type="submit" value="submit">Checkout</button> 

Controller: Die Erzeugung von Hash-Key Mit SHA512.

var string = data.key + '|' + data.txnid + '|' + data.amount + '|' + data.productinfo + '|' + data.firstname + '|' + data.email + '|||||||||||' + data.salt; 
$scope.encrypttext = $crypthmac.encrypt(string,""); 

Ich verwende angulr-HMAC-512 für die Verschlüsselung:

txnid:123456 
key:WHlKGc 
amount:120 
productinfo:pending 
firstname:vasu 
email:[email protected] 
phone:8125434557 
hash:06d5393243d78d0e0518bb5dac11d762be576c23c3e51344f604547550328f6e0c84b9d8fed4543766e4057abb1ae87ccf1d9cb7b069cef498d2fcdcdd5e84dc 
surl:www.google.com 
furl:www.appqube.in 
service_provider:payu_paisa. 

Ich bin neu zu eckig. Bitte helfen Sie mir, wie die Form action Umleitung zu https://secure.payu.in/_payment zu tun.

+0

haben Sie dieses Problem gelöst zu verwalten? – Velkumar

+0

bietet das Salz auf der Client-Seite sicher? – atjoshi

Antwort

0

Sie leiten direkt zur Produktion um. Verwenden Sie stattdessen den von PayU bereitgestellten Testlink. Here ist der Link zum Herunterladen der Anleitung zur Integration von PayU.

Die Test-URL ist https://test.payu.in/_payment

Verwandte Themen