Moneris Community
Search
User
User
Product Forums
Blogs
Developer Portal
More
Cancel
Product Forums
Moneris Payment Gateway (Formerly…
Hosted Pay Page With Angu…
State
Not Answered
Date
zipcoincx
Date
20 May 2020 5:48 AM
Replies
0 replies
Subscribers
20 subscribers
Views
1304 views
Hosted Paypage
Integration
javascript
Options
Share
More
Cancel
Related
Hosted Pay Page With Angular
I want to integrate moneris hosted pay page in angular and I am using following code.
<form action="
esqa.moneris.com/.../index.php">
<input type="hidden"name="ps_store_id"value="RADDCtore5">
<input type="hidden"name="hpp_key"value="hpDTY7NKANMU">
<input type="hidden"name="charge_total"value="10.00">
<input type="hidden"name="order_id"value="oid43333">
<input type="submit"value="Click to proceed to Secure Page">
</form>
and when i try to submit this data using nodejs using following code.
const store_id = "74QZStore5"
const hpp_key = "hpVJZZVKITQJ";
const charge_total = "1.00";
//HPPtoken
fetch('
esqa.moneris.com/.../index.php'
, {
method: 'post',
body: { store_id: store_id, hpp_key: hpp_key, charge_total: charge_total, hpp_preload: '' },
})
.then(async resp => {
let test = await resp.text()
console.log(test)
})
.catch(e => {
console.log(e)
})
but getting Source:<br ><br> error
Please help me
Thanks in advance
Reply