rxp-js | Global Payments Ecommerce JavaScript Library | Ecommerce library
kandi X-RAY | rxp-js Summary
kandi X-RAY | rxp-js Summary
Global Payments Ecommerce JavaScript Library
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Initialization function
- Submits the iframe to the iframe
- Submit the specified fields
- Callback for if an iframe is submitted
- Redirect helper functions
- Set the value of a field
- Load a test page
- window . setup
- create a form element
rxp-js Key Features
rxp-js Examples and Code Snippets
Community Discussions
Trending Discussions on rxp-js
QUESTION
i trying to implement a hpp full redirect to realex payment, i have 2 controllers one that send the request to the realex payment server and the second to which the response is sent back. i get the response in json as such
...ANSWER
Answered 2018-Dec-12 at 19:29When using Full Page Redirect (as opposed to an iFrame), the HPP will send the response POST to your second controller. This is sent as a standard HTTP POST, it's not sent as a JSON string.
At the moment as well, the HPP will render any HTML content that is outputted by the second controller to the browser. So what we'd usually recommend at that point is that after checking the response is valid (checking the hash and the timestamp etc.) you can use a JavaScript redirect to redirect the browser to your desired URL. For example, a success or a failure page.
QUESTION
I'm trying to figure out the usage of the Realexpayments javascript sdk, found here: https://github.com/realexpayments/rxp-js (and using the hosted pay page solution).
The usage makes a lot of sense, I have a rxp-hpp.js file that I can use like this:
...ANSWER
Answered 2019-Jan-31 at 14:09Thanks for your question. As jcaron commented above, the JS library is designed to interface with one of our server-side SDKs to build the request and handle the response. We have PHP and Java right now (.NET is coming soon).
Please see our Developer Hub for server-side samples: https://developer.globalpay.com/#!/ecommerce/card-payments/hpp
Best,
Seán
Realex Payments
QUESTION
I really need some help to figure out why the lightbox with the payment form doesn't work.
I've been following the quick guide for Hosted Payment Page (Html+JS with PHP) and I installed rxp-hpp-php library via composer and rxp-js + jQuery libraries manually.
I think I do everything ok but for some reason, the popup doesn't show. No errors and the resources seem to be loaded. Anybody can help me and discover what I am missing?
Here is my code and I also attached an image at the end.
localhost/addon-payments/index.php
...ANSWER
Answered 2018-Apr-17 at 09:13Thanks for your question. The JS Library is expecting a JSON string (or more correctly, jQuery is). So it won't accept:
string(10) "Request..."
before the actual request JSON string starts. What your request endpoint should be passing to the JS Library is:
{"MERCHANT_ID":"bWVyY2hhbnRJZA==",...etc}
Best,
Seán
Global Payments
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install rxp-js
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page