diff --git a/lerna.json b/lerna.json index c7cfe00..651f9c9 100644 --- a/lerna.json +++ b/lerna.json @@ -4,7 +4,7 @@ ], "npmClient": "yarn", "useWorkspaces": true, - "version": "1.8.7", + "version": "1.8.9", "command": { "run": { "stream": true diff --git a/package.json b/package.json index 8a1f2b4..97384ed 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,8 @@ "testcafe": "^1.9.4", "tslint": "^6.1.3", "typescript": "^4.1.2", - "web-component-analyzer": "^1.1.6" + "web-component-analyzer": "^1.1.6", + "cross-os": "^1.4.0" }, "dependencies": { "@globalpayments/js": "file:packages/globalpayments-js", diff --git a/packages/globalpayments-js/examples/gp-api.php b/packages/globalpayments-js/examples/gp-api.php index 329c28c..b84d206 100644 --- a/packages/globalpayments-js/examples/gp-api.php +++ b/packages/globalpayments-js/examples/gp-api.php @@ -45,6 +45,7 @@ GlobalPayments.configure({ accessToken: "", env: "qa", + apiVersion: "2021-03-22" }); GlobalPayments.on("error", function (error) { diff --git a/packages/globalpayments-js/package.json b/packages/globalpayments-js/package.json index bcb0084..a2b57ff 100644 --- a/packages/globalpayments-js/package.json +++ b/packages/globalpayments-js/package.json @@ -1,6 +1,6 @@ { "name": "@globalpayments/js", - "version": "1.8.7", + "version": "1.8.9", "author": "Heartland Developer Portal ", "license": "GPL-2.0", "repository": { @@ -41,7 +41,7 @@ } }, "dependencies": { - "globalpayments-lib": "^1.8.12" + "globalpayments-lib": "^1.8.5" }, "devDependencies": { "rimraf": "*", diff --git a/packages/globalpayments-js/src/assets/artifactVersion.txt b/packages/globalpayments-js/src/assets/artifactVersion.txt index d2c4b27..5af131d 100644 --- a/packages/globalpayments-js/src/assets/artifactVersion.txt +++ b/packages/globalpayments-js/src/assets/artifactVersion.txt @@ -1 +1 @@ -1.8.7 \ No newline at end of file +1.8.9 \ No newline at end of file diff --git a/packages/globalpayments-js/src/internal/gateways/gp-api/action-normalize-response.ts b/packages/globalpayments-js/src/internal/gateways/gp-api/action-normalize-response.ts index 15f0a2c..cbe2fcd 100644 --- a/packages/globalpayments-js/src/internal/gateways/gp-api/action-normalize-response.ts +++ b/packages/globalpayments-js/src/internal/gateways/gp-api/action-normalize-response.ts @@ -28,11 +28,13 @@ export default (data: IDictionary) => { details: { accountId: data.account_id, accountName: data.account_name, + fingerprint: data.fingerprint, + fingerprintPresenceIndicator: data.fingerprint_presence_indicator, merchantId: data.merchant_id, merchantName: data.merchant_name, - reference: data.reference, + reference: data.reference }, - paymentReference: data.id, + paymentReference: data.id }; if (data.card && data.card.masked_number_last4) { diff --git a/packages/globalpayments-js/src/internal/gateways/index.ts b/packages/globalpayments-js/src/internal/gateways/index.ts index e38c532..14063b9 100644 --- a/packages/globalpayments-js/src/internal/gateways/index.ts +++ b/packages/globalpayments-js/src/internal/gateways/index.ts @@ -43,6 +43,8 @@ export interface ISuccess { cardholderName?: string; expiryMonth?: string; expiryYear?: string; + fingerprint?: string; + fingerprintPresenceIndicator?: string; isHsaFsa?: boolean; merchantId?: string; merchantName?: string; diff --git a/packages/globalpayments-js/src/internal/lib/styles/gp-default.ts b/packages/globalpayments-js/src/internal/lib/styles/gp-default.ts index 0d85c3f..b45a94f 100644 --- a/packages/globalpayments-js/src/internal/lib/styles/gp-default.ts +++ b/packages/globalpayments-js/src/internal/lib/styles/gp-default.ts @@ -49,6 +49,7 @@ export const fieldStyles = (assetBaseUrl: string) => { height: "48px", "text-align": "center", "vertical-align": "middle", + "text-transform": "uppercase" }, "#secure-payment-field[type=button]:focus": { border: "1px solid #2B9AEC", @@ -98,6 +99,7 @@ export const fieldStyles = (assetBaseUrl: string) => { export const parentStyles = (assetBaseUrl: string) => { const imageBase = assetBaseUrl + "images/"; + const fontBase = assetBaseUrl + "fonts/"; return { ".secure-payment-form": { @@ -115,7 +117,8 @@ export const parentStyles = (assetBaseUrl: string) => { display: "block", "font-size": "0.79em", "font-weight": "500", - }, + "font-family": "GPCommerce" +}, ".secure-payment-form > div": { flex: "100%", @@ -189,6 +192,11 @@ export const parentStyles = (assetBaseUrl: string) => { opacity: "1", }, + "@font-face": { + "font-family": "GPCommerce", + src: `url("${fontBase}GPCommerce-Regular.woff2") format("woff2")`, + }, + "@media(min-width: 800px)": { ".secure-payment-form .credit-card-card-expiration": { flex: "1 1 auto", diff --git a/packages/globalpayments-js/src/lib/version.ts b/packages/globalpayments-js/src/lib/version.ts index 28f052c..edcafe4 100644 --- a/packages/globalpayments-js/src/lib/version.ts +++ b/packages/globalpayments-js/src/lib/version.ts @@ -1 +1 @@ -export default "1.8.7"; +export default "1.8.9"; diff --git a/yarn.lock b/yarn.lock index a2c08ac..6eac9d7 100644 --- a/yarn.lock +++ b/yarn.lock @@ -153,7 +153,7 @@ "@globalpayments/js-loader" "^1.8.5" "@globalpayments/js@file:packages/globalpayments-js": - version "1.8.5" + version "1.8.6" dependencies: globalpayments-lib "^1.8.5" @@ -3151,6 +3151,11 @@ create-hmac@^1.1.0, create-hmac@^1.1.4, create-hmac@^1.1.7: safe-buffer "^5.0.1" sha.js "^2.4.8" +cross-os@^1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/cross-os/-/cross-os-1.4.0.tgz#350f03fccb4bd9178777b6ae20160c1c7c79dbed" + integrity sha512-nuARAXqbsizhsqo3qo1bpYW2S6ohxJICjo/5Q/mq5xQ9dn1uWoRQ855DZrBAWgVfg7liPLdatnY2KMZwZYuxsQ== + cross-spawn@^5.0.1: version "5.1.0" resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-5.1.0.tgz#e8bd0efee58fcff6f8f94510a0a554bbfa235449"