我正在尝试将PayUMoney与我的Angularjs1.6应用程序集成,但它显示了
纠正措施请注意,这是PayU的测试环境- https://test.payu.in/ ,但是您使用的密钥(*)不是测试环境密钥。
我不知道我做错了什么。
用AngularJS-1.6为PayUMoney测试环境推荐一个合适的解决方案
发布于 2018-04-14 11:33:36
这是我的工作密码。在角2上写了2天后的only..Its .检查是否正确传递参数。
<form ngNoForm cl action="https://test.payu.in/_payment" method="POST" style="display:none">
<input type="text" name="key" [value]="paymentInfo.hash_sequence.key" />
<input type="text" name="txnid" [value]="paymentInfo.hash_sequence.txnid"/>
<input type ="text" name="amount" [value]="paymentInfo.hash_sequence.amount"/>
<input type="text" name="currency" value="paymentInfo.hash_sequence.currency" />
<input type="text" name="productinfo" [value]="paymentInfo.hash_sequence.productinfo" />
<input type ="text" name="firstname" [value]="paymentInfo.hash_sequence.firstname"/>
<input type="text" name="email" [value]="paymentInfo.hash_sequence.email" />
<input type ="text" name="phone" [value]="paymentInfo.hash_sequence.mobile"/>
<input type ="text" name="hash" [value]="paymentInfo.hash"/>
<input type ="text" name="surl" value="{{environment.api}}/payment/success"/>
<input type ="text" name="furl" value="{{environment.api}}/payment/failure"/>
<input type ="text" name="curl" value="{{environment.api}}/payment/cancel"/>
<button id="get_payment" type="submit">Submit</button>
</form>如果问题仍然存在,快速黑客将在散列中做出一些错误,并检查您是否收到了hash错误消息。如果您收到了哈希错误消息,那么您的代码就可以了。你得弄清楚你的钥匙在哪里被撬开了。
最好的方法是使表单可见并直观地查看数据。
https://stackoverflow.com/questions/49817876
复制相似问题