Skip to content

Commit

Permalink
Merge pull request #7 from realexpayments-developers/master
Browse files Browse the repository at this point in the history
Updated version, license and readme, changed default endpoint for TLS 1.2
  • Loading branch information
RealexITSO authored Jan 24, 2017
2 parents 97713dc + 5acff9f commit d2b502d
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion LICENSE-MIT
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2015 Realex Developer
Copyright (c) 2017 Realex Payments Developer

Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Realex JS SDK
You can sign up for a Realex account at https://www.realexpayments.com.
# Realex JS Library
You can sign up for a Realex account at https://developer.realexpayments.com

## Hosted Payment Page (HPP) JS SDK
## Hosted Payment Page (HPP) JS Library

### Usage
The Javascript required to initialise the SDK is below. This code must only be executed when the DOM is fully loaded.
The Javascript required to initialise the library is below. This code must only be executed when the DOM is fully loaded.
```javascript
RealexHpp.init(payButtonId, merchantUrl, jsonFromServerSdk);
```
Expand All @@ -15,7 +15,7 @@ RealexHpp.init(payButtonId, merchantUrl, jsonFromServerSdk);
### Consuming the resulting POST
Once the payment has completed the Realex JSON response will be posted within to the supplied merchantUrl. The name of the field containing the JSON response is hppResponse.

## Remote JS SDK
## Remote JS Library

### Validation functions
* validateCardNumber - validates card number format and performs a Luhn check
Expand Down
4 changes: 2 additions & 2 deletions dist/rxp-js.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! rxp-js - v1.2.0 - 2015-10-28
/*! rxp-js - v1.2.1
* The official Realex Payments JS SDK
* https://github.com/realexpayments/rxp-js
* Licensed MIT
Expand All @@ -7,7 +7,7 @@ var RealexHpp = (function() {

'use strict';

var hppUrl = "https://hpp.realexpayments.com/pay";
var hppUrl = "https://pay.realexpayments.com/pay";

var randomId = randomId || Math.random().toString(16).substr(2,8);

Expand Down
4 changes: 2 additions & 2 deletions dist/rxp-js.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/rxp-hpp.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ var RealexHpp = (function() {

'use strict';

var hppUrl = "https://hpp.realexpayments.com/pay";
var hppUrl = "https://pay.realexpayments.com/pay";

var randomId = randomId || Math.random().toString(16).substr(2,8);

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "rxp-js",
"description": "The official Realex Payments JS SDK",
"version": "1.2.0",
"version": "1.2.1",
"homepage": "https://github.com/realexpayments/rxp-js",
"author": {
"name": "Realex Developer",
Expand Down

0 comments on commit d2b502d

Please sign in to comment.