globalpayments-api 1.4.5 → 1.4.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/lib/src/Entities/Enums.d.ts +12 -0
- package/lib/src/Entities/Enums.js +15 -1
- package/lib/src/Gateways/PorticoConnector.d.ts +1 -0
- package/lib/src/Gateways/PorticoConnector.js +22 -0
- package/lib/src/PaymentMethods/Credit.d.ts +6 -0
- package/lib/src/ServicesContainer.js +1 -1
- package/lib/test/Integration/Gateways/PorticoConnector/EcommerceTest.js +28 -2
- package/logger.txt +10 -0
- package/package.json +2 -2
package/CHANGELOG.md
ADDED
|
@@ -216,3 +216,15 @@ export declare enum TransactionType {
|
|
|
216
216
|
Hold = 4194304,
|
|
217
217
|
Release = 8388608
|
|
218
218
|
}
|
|
219
|
+
export declare enum MobilePaymentMethodType {
|
|
220
|
+
APPLEPAY = "apple-pay",
|
|
221
|
+
GOOGLEPAY = "pay-with-google"
|
|
222
|
+
}
|
|
223
|
+
export declare enum PaymentDataSourceType {
|
|
224
|
+
APPLEPAY = "ApplePay",
|
|
225
|
+
APPLEPAYAPP = "ApplePayApp",
|
|
226
|
+
APPLEPAYWEB = "ApplePayWeb",
|
|
227
|
+
GOOGLEPAYAPP = "GooglePayApp",
|
|
228
|
+
GOOGLEPAYWEB = "GooglePayWeb",
|
|
229
|
+
DISCOVER3DSECURE = "Discover 3DSecure"
|
|
230
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TransactionType = exports.TransactionModifier = exports.TimeZoneConversion = exports.TaxType = exports.StoredCredentialInitiator = exports.SecCode = exports.ScheduleFrequency = exports.ReportType = exports.RecurringType = exports.RecurringSequence = exports.ReasonCode = exports.PaymentSchedule = exports.PaymentMethodType = exports.InquiryType = exports.HppVersion = exports.GiftEntryMethod = exports.FraudFilterMode = exports.ExceptionCodes = exports.EntryMethod = exports.EmailReceipt = exports.EcommerceChannel = exports.CvnPresenceIndicator = exports.CurrencyType = exports.CheckType = exports.AliasAction = exports.AddressType = exports.AccountType = void 0;
|
|
3
|
+
exports.PaymentDataSourceType = exports.MobilePaymentMethodType = exports.TransactionType = exports.TransactionModifier = exports.TimeZoneConversion = exports.TaxType = exports.StoredCredentialInitiator = exports.SecCode = exports.ScheduleFrequency = exports.ReportType = exports.RecurringType = exports.RecurringSequence = exports.ReasonCode = exports.PaymentSchedule = exports.PaymentMethodType = exports.InquiryType = exports.HppVersion = exports.GiftEntryMethod = exports.FraudFilterMode = exports.ExceptionCodes = exports.EntryMethod = exports.EmailReceipt = exports.EcommerceChannel = exports.CvnPresenceIndicator = exports.CurrencyType = exports.CheckType = exports.AliasAction = exports.AddressType = exports.AccountType = void 0;
|
|
4
4
|
var AccountType;
|
|
5
5
|
(function (AccountType) {
|
|
6
6
|
AccountType["Checking"] = "CHECKING";
|
|
@@ -251,3 +251,17 @@ var TransactionType;
|
|
|
251
251
|
TransactionType[TransactionType["Hold"] = 4194304] = "Hold";
|
|
252
252
|
TransactionType[TransactionType["Release"] = 8388608] = "Release";
|
|
253
253
|
})(TransactionType = exports.TransactionType || (exports.TransactionType = {}));
|
|
254
|
+
var MobilePaymentMethodType;
|
|
255
|
+
(function (MobilePaymentMethodType) {
|
|
256
|
+
MobilePaymentMethodType["APPLEPAY"] = "apple-pay";
|
|
257
|
+
MobilePaymentMethodType["GOOGLEPAY"] = "pay-with-google";
|
|
258
|
+
})(MobilePaymentMethodType = exports.MobilePaymentMethodType || (exports.MobilePaymentMethodType = {}));
|
|
259
|
+
var PaymentDataSourceType;
|
|
260
|
+
(function (PaymentDataSourceType) {
|
|
261
|
+
PaymentDataSourceType["APPLEPAY"] = "ApplePay";
|
|
262
|
+
PaymentDataSourceType["APPLEPAYAPP"] = "ApplePayApp";
|
|
263
|
+
PaymentDataSourceType["APPLEPAYWEB"] = "ApplePayWeb";
|
|
264
|
+
PaymentDataSourceType["GOOGLEPAYAPP"] = "GooglePayApp";
|
|
265
|
+
PaymentDataSourceType["GOOGLEPAYWEB"] = "GooglePayWeb";
|
|
266
|
+
PaymentDataSourceType["DISCOVER3DSECURE"] = "Discover 3DSecure";
|
|
267
|
+
})(PaymentDataSourceType = exports.PaymentDataSourceType || (exports.PaymentDataSourceType = {}));
|
|
@@ -39,4 +39,5 @@ export declare class PorticoConnector extends XmlGateway implements IPaymentGate
|
|
|
39
39
|
protected hydrateTrackData(builder: TransactionBuilder<Transaction>, hasToken: boolean, tokenValue: string): Element;
|
|
40
40
|
protected hydrateTransactionSummary(root: Element): TransactionSummary;
|
|
41
41
|
protected shouldIncludeCredentialOnFile(builder: TransactionBuilder<Transaction>): boolean;
|
|
42
|
+
protected isAppleOrGooglePay(paymentDataSource: string): boolean;
|
|
42
43
|
}
|
|
@@ -132,6 +132,21 @@ var PorticoConnector = /** @class */ (function (_super) {
|
|
|
132
132
|
elementtree_1.SubElement(manualEntry, "ReaderPresent").append(elementtree_1.CData(card.readerPresent ? "Y" : "N"));
|
|
133
133
|
elementtree_1.SubElement(manualEntry, "CardPresent").append(elementtree_1.CData(card.cardPresent ? "Y" : "N"));
|
|
134
134
|
block1.append(cardData);
|
|
135
|
+
if (card instanceof __1.CreditCardData) {
|
|
136
|
+
var creditCardData = card;
|
|
137
|
+
// WalletData Element
|
|
138
|
+
if ((creditCardData.mobileType == __1.MobilePaymentMethodType.APPLEPAY
|
|
139
|
+
|| creditCardData.mobileType == __1.MobilePaymentMethodType.GOOGLEPAY)
|
|
140
|
+
&& typeof creditCardData.paymentSource != "undefined"
|
|
141
|
+
&& this.isAppleOrGooglePay(creditCardData.paymentSource)) {
|
|
142
|
+
var walletData = elementtree_1.SubElement(block1, "WalletData");
|
|
143
|
+
elementtree_1.SubElement(walletData, "PaymentSource").append(elementtree_1.CData(creditCardData.paymentSource.trim()));
|
|
144
|
+
if (typeof creditCardData.mobileType != "undefined") {
|
|
145
|
+
elementtree_1.SubElement(walletData, "DigitalPaymentToken").append(elementtree_1.CData(creditCardData.token));
|
|
146
|
+
block1.remove(cardData);
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|
|
135
150
|
if (builder.transactionModifier === __1.TransactionModifier.Recurring) {
|
|
136
151
|
var recurring = elementtree_1.SubElement(block1, "RecurringData");
|
|
137
152
|
elementtree_1.SubElement(recurring, "ScheduleID").append(elementtree_1.CData(builder.scheduleId));
|
|
@@ -983,6 +998,13 @@ var PorticoConnector = /** @class */ (function (_super) {
|
|
|
983
998
|
}
|
|
984
999
|
return false;
|
|
985
1000
|
};
|
|
1001
|
+
PorticoConnector.prototype.isAppleOrGooglePay = function (paymentDataSource) {
|
|
1002
|
+
return paymentDataSource == __1.PaymentDataSourceType.APPLEPAY
|
|
1003
|
+
|| paymentDataSource == __1.PaymentDataSourceType.APPLEPAYAPP
|
|
1004
|
+
|| paymentDataSource == __1.PaymentDataSourceType.APPLEPAYWEB
|
|
1005
|
+
|| paymentDataSource == __1.PaymentDataSourceType.GOOGLEPAYAPP
|
|
1006
|
+
|| paymentDataSource == __1.PaymentDataSourceType.GOOGLEPAYWEB;
|
|
1007
|
+
};
|
|
986
1008
|
PorticoConnector.XmlNamespace = "http://Hps.Exchange.PosGateway";
|
|
987
1009
|
return PorticoConnector;
|
|
988
1010
|
}(XmlGateway_1.XmlGateway));
|
|
@@ -16,6 +16,12 @@ export declare abstract class Credit extends PaymentMethod implements IEncryptab
|
|
|
16
16
|
* transactions.
|
|
17
17
|
*/
|
|
18
18
|
mobileType: string;
|
|
19
|
+
/**
|
|
20
|
+
* Payment Source is the API or source of the cryptogram for WalletData.
|
|
21
|
+
*/
|
|
22
|
+
paymentSource: string;
|
|
23
|
+
cryptogram: string;
|
|
24
|
+
eci: string;
|
|
19
25
|
/**
|
|
20
26
|
* Authorizes the payment method
|
|
21
27
|
*
|
|
@@ -57,7 +57,7 @@ var ServicesContainer = /** @class */ (function () {
|
|
|
57
57
|
payplan.versionNumber = config.versionNumber;
|
|
58
58
|
payplan.timeout = config.timeout;
|
|
59
59
|
payplan.serviceUrl = config.serviceUrl
|
|
60
|
-
+ (config.serviceUrl.
|
|
60
|
+
+ (config.serviceUrl.includes('cert.') ? "/Portico.PayPlan.v2/" : "/payplan.v2/");
|
|
61
61
|
ServicesContainer._instance = new ServicesContainer(gateway, payplan);
|
|
62
62
|
}
|
|
63
63
|
};
|
|
@@ -40,11 +40,12 @@ var ava_1 = require("ava");
|
|
|
40
40
|
var src_1 = require("../../../../src/");
|
|
41
41
|
var Data_1 = require("../../../Data");
|
|
42
42
|
var config = new src_1.ServicesConfig();
|
|
43
|
-
config.secretApiKey = "
|
|
44
|
-
config.serviceUrl = "https://cert.api2
|
|
43
|
+
config.secretApiKey = "skapi_cert_MY5OAAAQrmIF_IZDKbr1ecycRr7n1Q1SxNkVgzDhwg";
|
|
44
|
+
config.serviceUrl = "https://cert.api2.heartlandportico.com";
|
|
45
45
|
var runSerially = false;
|
|
46
46
|
var test = runSerially ? ava_1.default.serial : ava_1.default;
|
|
47
47
|
var card = Data_1.TestCards.visaManual();
|
|
48
|
+
card.tokenize();
|
|
48
49
|
ava_1.default.before(function (_t) {
|
|
49
50
|
src_1.ServicesContainer.configure(config);
|
|
50
51
|
});
|
|
@@ -124,6 +125,8 @@ test("ecom with direct market invoice and ship date", function (t) { return __aw
|
|
|
124
125
|
t.plan(2);
|
|
125
126
|
ecom = new src_1.EcommerceInfo();
|
|
126
127
|
ecom.channel = src_1.EcommerceChannel.Moto;
|
|
128
|
+
ecom.shipDay = "25";
|
|
129
|
+
ecom.shipMonth = "12";
|
|
127
130
|
return [4 /*yield*/, card
|
|
128
131
|
.charge(9)
|
|
129
132
|
.withCurrency("USD")
|
|
@@ -164,3 +167,26 @@ test("ecom with secure ecommerce", function (t) { return __awaiter(void 0, void
|
|
|
164
167
|
}
|
|
165
168
|
});
|
|
166
169
|
}); });
|
|
170
|
+
test("ecom with walletdata", function (t) { return __awaiter(void 0, void 0, void 0, function () {
|
|
171
|
+
var response;
|
|
172
|
+
return __generator(this, function (_a) {
|
|
173
|
+
switch (_a.label) {
|
|
174
|
+
case 0:
|
|
175
|
+
t.plan(2);
|
|
176
|
+
card.mobileType = src_1.MobilePaymentMethodType.GOOGLEPAY;
|
|
177
|
+
card.paymentSource = src_1.PaymentDataSourceType.GOOGLEPAYWEB;
|
|
178
|
+
card.token = "{\"signature\":\"MEYCIQChbD9dizRQSTaboSQmp3GD3TSSKLd8kupbOr0IlL+AVgIhAKAbqM0PPn7WPTXZf7nXJPqq29h0hTQiRfusScTToLg8\",\"protocolVersion\":\"ECv1\",\"signedMessage\":\"{\\\"encryptedMessage\\\":\\\"S3P/E0IEZ32pUM1u737Susaj2kQst7cAXUw1bK7Lp9VM8GEqXTD6uaSCKSggFwhV9XNnOMvt9QYgEY69PHc5EFJBR4n9cB6QGrVjARGbUtANTXgSSJy08FFYwjFQ+/CqkHllY3JpnNjGsY5lny5cimatjkB4laTqIZv05mqc0KIzb4aUSfYQzukx6hfmDRDdrEGOfrKHiSx2EOkBguJ7r69BwcBAq58SL6Wpuvh99d8MJyhGSZLyozpD4gmhEVpyDZX5vdG5k6V0e6O6/Y53RPsnaKOH5nourzCLBMm28YBUY8TcqGY/TzRr7SNBDTXkem339CPlRYrFJNYhPRYJcutcf/Akfcrrj9NMBUMQ+Ab4bzbbcAyR/mneNGoWh/W5HFW7n8aYieZwFO2Of8TMOaUxLqpMyZv2UTguCHfSQdSKHt/fv9JxKPszlF0JuGkZmiv7ONDEaw\\\\u003d\\\\u003d\\\",\\\"ephemeralPublicKey\\\":\\\"BE0mGDo9yPUYbC7ERwX3JBNmnyRXRvJ9Nwj/N7B5VE+aN3yKe5UcCgUi8eUfJCwapGu0C8Rf2/9y4+rIY+72s0c\\\\u003d\\\",\\\"tag\\\":\\\"SBp7NAyNPgZ7lfyi8lIFGbo8S1sf/6ADqOqD1ZYT6y0\\\\u003d\\\"}\"}";
|
|
179
|
+
return [4 /*yield*/, card
|
|
180
|
+
.charge(10)
|
|
181
|
+
.withCurrency("USD")
|
|
182
|
+
.withInvoiceNumber("1234567890")
|
|
183
|
+
.withAllowDuplicates(true)
|
|
184
|
+
.execute()];
|
|
185
|
+
case 1:
|
|
186
|
+
response = _a.sent();
|
|
187
|
+
t.truthy(response);
|
|
188
|
+
t.is(response.responseCode, "00");
|
|
189
|
+
return [2 /*return*/];
|
|
190
|
+
}
|
|
191
|
+
});
|
|
192
|
+
}); });
|
package/logger.txt
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><PosRequest xmlns="http://Hps.Exchange.PosGateway"><Ver1.0><Header><SecretAPIKey><![CDATA[skapi_cert_MY5OAAAQrmIF_IZDKbr1ecycRr7n1Q1SxNkVgzDhwg]]></SecretAPIKey></Header><Transaction><CreditSale><Block1><AllowDup><![CDATA[Y]]></AllowDup><AllowPartialAuth><![CDATA[N]]></AllowPartialAuth><Amt><![CDATA[10.00]]></Amt><WalletData><PaymentSource><![CDATA[GooglePayWeb]]></PaymentSource><Cryptogram><![CDATA[]]></Cryptogram><ECI><![CDATA[]]></ECI><DigitalPaymentToken><![CDATA[[CDATA[{"signature":"MEYCIQD0rWVJOP5h7I7tPTFBcnasILsa8KyWa2IFtZuCes3FUgIhAKlp+IUdyL6Nh8C8tZvMoMh82/9XT/7G5/wH5fXI0b3p","protocolVersion":"ECv1","signedMessage":"{\"encryptedMessage\":\"sFXQOLfD/NsJNuVIlB8kIXZ17/U0s5qCqZG9bYyKlbOjdbv+FYp276vQYABRj1zbASRGnFBC4vZe/CkC2u9at+3hw+YnCXlXiwim8i+UZDraVHw5E/+DdqlK5p+HFIsu+TAJaM4Axsjl/UDNDGgTeRkCN09jjdW2v5XjUkZtka2i3sY/Bn+7Z/Q5S2VQecw9Cx7FQb/Y+LuuzgxxTb1fOlO3tem48usVOA9m0uHmeGh0kRKN9WoeVYWumco1O7zpfFnDLgPAjsE6SFijZ6b+RX/Fro978upLdJ+qodH9x2ZyZdcHp+I1Mg660rwI2AfOSIKYzbCzctlCjwIe4gn76k+MNEwsqk8aj8KY76h89e7zqOnng58j15qd6Q6sTU9NSlP348z73/Icdz2wexLfRkuNQ1s8kPB30t+c/QuPJYg1NftRg90vaVUUNr2QUV2ITQ+cgB1q2Q\\u003d\\u003d\",\"ephemeralPublicKey\":\"BNDAVe8QqHB4Fb++aG7YstptaSf3eu/btXNB5IxV19HqGVwp0/BZd0tnr1gM5tw+VkxptfibPQQpko+zbz6idrM\\u003d\",\"tag\":\"ZNV3tPFa6IFdyfam8I2PIPKZy+VvjunhjnPiB/75Ioc\\u003d\"}"}]]]]></DigitalPaymentToken></WalletData><AdditionalTxnFields><CustomerID><![CDATA[]]></CustomerID><Description><![CDATA[]]></Description><InvoiceNbr><![CDATA[1234567890]]></InvoiceNbr></AdditionalTxnFields></Block1></CreditSale></Transaction></Ver1.0></PosRequest></soap:Body></soap:Envelope>
|
|
3
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
4
|
+
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><PosRequest xmlns="http://Hps.Exchange.PosGateway"><Ver1.0><Header><SecretAPIKey><![CDATA[skapi_cert_MY5OAAAQrmIF_IZDKbr1ecycRr7n1Q1SxNkVgzDhwg]]></SecretAPIKey></Header><Transaction><CreditSale><Block1><AllowDup><![CDATA[Y]]></AllowDup><AllowPartialAuth><![CDATA[N]]></AllowPartialAuth><Amt><![CDATA[10.00]]></Amt><WalletData><PaymentSource><![CDATA[GooglePayWeb]]></PaymentSource><Cryptogram><![CDATA[]]></Cryptogram><ECI><![CDATA[]]></ECI><DigitalPaymentToken><![CDATA[{"signature":"MEQCHx7idql+XsU3FYqlzhRZwXdwDvKdRCz291JHDG8yG4kCIQCoeqsM3XOyCNDuLhj4eM+dGo4MKhzDE1Jg8OpvaWYqyg\u003d\u003d","protocolVersion":"ECv1","signedMessage":"{\"encryptedMessage\":\"Z0cKUtDGx7EfsIktr5U39YsPNkbul/XQN+I/+y6JZkeh1fVurL6YuwGoWafmCv1b7+MW+deziMCyfQrhd6Z6yaiNr2i5fyWVYZwrh/XtsC+wEbM6loRSHYfuFJGXhE/SW1HOw6AmT5fatzD5OXyl9m5Hc22r6WQ5uqGLyR18DQVGtp9bcSJwtgTOfcYpoKkyQ+MjMfT9aGgBp20A1L9bHNDLVFPK+2RTSCsFHRmi2AsbYyhS17hj5rRmc5GFvQv0LywMrMHilcJnYVHnfZUJgxSNsh3N1mm/QbZ801b84aqmhVtNQbYxB99Ik6cu8cflUbb+IO+yQwUlyd+Kix0NgFOPlyAQXNGrR6eJ76u2Z4032Q2zAy9B88fEblTCHSkhct0FCMu95m30MGUBLhU6fpjobkYKpAvRvqfbO0smX0bRswi4qfVDgX9fLzZPyiTEox2yzx8CQw\\u003d\\u003d\",\"ephemeralPublicKey\":\"BGQVX8dPAbUUjUDYjoOD9iEB79b8yWHOr/UBTgYyW+1aBInr2NXSfr746ShMG9A8k5mHfDuNgXIEAkxyF3uwR5k\\u003d\",\"tag\":\"BaFs5WaszXIcQCgt2DI7oLu3jdZX3nhXz63ubt5CLiE\\u003d\"}"}]]></DigitalPaymentToken></WalletData><AdditionalTxnFields><CustomerID><![CDATA[]]></CustomerID><Description><![CDATA[]]></Description><InvoiceNbr><![CDATA[1234567890]]></InvoiceNbr></AdditionalTxnFields></Block1></CreditSale></Transaction></Ver1.0></PosRequest></soap:Body></soap:Envelope>
|
|
5
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
6
|
+
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><PosRequest xmlns="http://Hps.Exchange.PosGateway"><Ver1.0><Header><SecretAPIKey><![CDATA[skapi_cert_MY5OAAAQrmIF_IZDKbr1ecycRr7n1Q1SxNkVgzDhwg]]></SecretAPIKey></Header><Transaction><CreditSale><Block1><AllowDup><![CDATA[Y]]></AllowDup><AllowPartialAuth><![CDATA[N]]></AllowPartialAuth><Amt><![CDATA[10.00]]></Amt><WalletData><PaymentSource><![CDATA[GooglePayWeb]]></PaymentSource><DigitalPaymentToken><![CDATA[{"signature":"MEQCHx7idql+XsU3FYqlzhRZwXdwDvKdRCz291JHDG8yG4kCIQCoeqsM3XOyCNDuLhj4eM+dGo4MKhzDE1Jg8OpvaWYqyg\u003d\u003d","protocolVersion":"ECv1","signedMessage":"{\"encryptedMessage\":\"Z0cKUtDGx7EfsIktr5U39YsPNkbul/XQN+I/+y6JZkeh1fVurL6YuwGoWafmCv1b7+MW+deziMCyfQrhd6Z6yaiNr2i5fyWVYZwrh/XtsC+wEbM6loRSHYfuFJGXhE/SW1HOw6AmT5fatzD5OXyl9m5Hc22r6WQ5uqGLyR18DQVGtp9bcSJwtgTOfcYpoKkyQ+MjMfT9aGgBp20A1L9bHNDLVFPK+2RTSCsFHRmi2AsbYyhS17hj5rRmc5GFvQv0LywMrMHilcJnYVHnfZUJgxSNsh3N1mm/QbZ801b84aqmhVtNQbYxB99Ik6cu8cflUbb+IO+yQwUlyd+Kix0NgFOPlyAQXNGrR6eJ76u2Z4032Q2zAy9B88fEblTCHSkhct0FCMu95m30MGUBLhU6fpjobkYKpAvRvqfbO0smX0bRswi4qfVDgX9fLzZPyiTEox2yzx8CQw\\u003d\\u003d\",\"ephemeralPublicKey\":\"BGQVX8dPAbUUjUDYjoOD9iEB79b8yWHOr/UBTgYyW+1aBInr2NXSfr746ShMG9A8k5mHfDuNgXIEAkxyF3uwR5k\\u003d\",\"tag\":\"BaFs5WaszXIcQCgt2DI7oLu3jdZX3nhXz63ubt5CLiE\\u003d\"}"}]]></DigitalPaymentToken></WalletData><AdditionalTxnFields><CustomerID><![CDATA[]]></CustomerID><Description><![CDATA[]]></Description><InvoiceNbr><![CDATA[1234567890]]></InvoiceNbr></AdditionalTxnFields></Block1></CreditSale></Transaction></Ver1.0></PosRequest></soap:Body></soap:Envelope>
|
|
7
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
8
|
+
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><PosRequest xmlns="http://Hps.Exchange.PosGateway"><Ver1.0><Header><SecretAPIKey><![CDATA[skapi_cert_MY5OAAAQrmIF_IZDKbr1ecycRr7n1Q1SxNkVgzDhwg]]></SecretAPIKey></Header><Transaction><CreditSale><Block1><AllowDup><![CDATA[Y]]></AllowDup><AllowPartialAuth><![CDATA[N]]></AllowPartialAuth><Amt><![CDATA[10.00]]></Amt><WalletData><PaymentSource><![CDATA[GooglePayWeb]]></PaymentSource><DigitalPaymentToken><![CDATA[{"signature":"MEYCIQCHBX5VQQeLvC0I6KZbfzHHhPbZ3S/EiditRSWvWtIRsQIhAPOOkTMsQnfyo2OcGkEwIV1YsttmPQCLE+iehEo9bT3y","protocolVersion":"ECv1","signedMessage":"{\"encryptedMessage\":\"U3VSCo6nrVP/4+Szd67puCAdtDk/cqB/I8ffOBZm6YSjkFurSUgylbaiYkNq0KOMAQ6woJmx7eqKJo0cV2YXQr6ZZMZrASbIGaKmGHfwIG46oECDr/aHVFUDeWToIFOQ0PM4IcGVHTbsWG1dRupTYcQqw/+aw/JzOxrZn2OAnQdMHUkYjzD1gmQ800eeVssXjFSU6PYT93jPUHFlH5710CoSok+sJ+IPwITdFxSs+rXu2h4ljSRCS1MwMxR6bN5ldEsFJLKtyQpirulWQrW9qv1pBMd+hD5GlaMLmkbl7xA2x8w9547UPj5Ac7BlNc03Mdzyiy2DCcNjgrWTjADGwBGrwIN+F2pjAzFzA9cfiHz/uqbC8iYShTcRiW002ggNiz7Uokbj2U1RYSFSPazCdekezhM8rMptBiQLrdBC766gkjKFcGR+cbV48vsLkBGgozAGluNzIw\\u003d\\u003d\",\"ephemeralPublicKey\":\"BEmxeA2JnzUEHKxDStesjvQX+sJt//ZQ9C1X7L/nxQu6trcGqkYDVXjqxOLMc9oJ/MZU+9j6nmedFm2zKDpAyko\\u003d\",\"tag\":\"ngNe08/CVKiaj8zkVHKe6vgaqHpuumoqt02nWVYXIKI\\u003d\"}"}]]></DigitalPaymentToken></WalletData><AdditionalTxnFields><CustomerID><![CDATA[]]></CustomerID><Description><![CDATA[]]></Description><InvoiceNbr><![CDATA[1234567890]]></InvoiceNbr></AdditionalTxnFields></Block1></CreditSale></Transaction></Ver1.0></PosRequest></soap:Body></soap:Envelope>
|
|
9
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
10
|
+
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><PosRequest xmlns="http://Hps.Exchange.PosGateway"><Ver1.0><Header><SecretAPIKey><![CDATA[skapi_cert_MY5OAAAQrmIF_IZDKbr1ecycRr7n1Q1SxNkVgzDhwg]]></SecretAPIKey></Header><Transaction><CreditSale><Block1><AllowDup><![CDATA[Y]]></AllowDup><AllowPartialAuth><![CDATA[N]]></AllowPartialAuth><Amt><![CDATA[10.00]]></Amt><WalletData><PaymentSource><![CDATA[GooglePayWeb]]></PaymentSource><DigitalPaymentToken><![CDATA[{"signature":"MEYCIQChbD9dizRQSTaboSQmp3GD3TSSKLd8kupbOr0IlL+AVgIhAKAbqM0PPn7WPTXZf7nXJPqq29h0hTQiRfusScTToLg8","protocolVersion":"ECv1","signedMessage":"{\"encryptedMessage\":\"S3P/E0IEZ32pUM1u737Susaj2kQst7cAXUw1bK7Lp9VM8GEqXTD6uaSCKSggFwhV9XNnOMvt9QYgEY69PHc5EFJBR4n9cB6QGrVjARGbUtANTXgSSJy08FFYwjFQ+/CqkHllY3JpnNjGsY5lny5cimatjkB4laTqIZv05mqc0KIzb4aUSfYQzukx6hfmDRDdrEGOfrKHiSx2EOkBguJ7r69BwcBAq58SL6Wpuvh99d8MJyhGSZLyozpD4gmhEVpyDZX5vdG5k6V0e6O6/Y53RPsnaKOH5nourzCLBMm28YBUY8TcqGY/TzRr7SNBDTXkem339CPlRYrFJNYhPRYJcutcf/Akfcrrj9NMBUMQ+Ab4bzbbcAyR/mneNGoWh/W5HFW7n8aYieZwFO2Of8TMOaUxLqpMyZv2UTguCHfSQdSKHt/fv9JxKPszlF0JuGkZmiv7ONDEaw\\u003d\\u003d\",\"ephemeralPublicKey\":\"BE0mGDo9yPUYbC7ERwX3JBNmnyRXRvJ9Nwj/N7B5VE+aN3yKe5UcCgUi8eUfJCwapGu0C8Rf2/9y4+rIY+72s0c\\u003d\",\"tag\":\"SBp7NAyNPgZ7lfyi8lIFGbo8S1sf/6ADqOqD1ZYT6y0\\u003d\"}"}]]></DigitalPaymentToken></WalletData><AdditionalTxnFields><CustomerID><![CDATA[]]></CustomerID><Description><![CDATA[]]></Description><InvoiceNbr><![CDATA[1234567890]]></InvoiceNbr></AdditionalTxnFields></Block1></CreditSale></Transaction></Ver1.0></PosRequest></soap:Body></soap:Envelope>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "globalpayments-api",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.7",
|
|
4
4
|
"description": "Global Payments SDK for NodeJS for Heartland and Global Payments eCommerce gateways",
|
|
5
5
|
"author": "Heartland Payment Systems",
|
|
6
6
|
"license": "GPL-2.0",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"prettier": "^1.18.2",
|
|
39
39
|
"rimraf": "^2.6.3",
|
|
40
40
|
"tslint": "^4.5.1",
|
|
41
|
-
"typedoc": "^0.
|
|
41
|
+
"typedoc": "^0.22.13",
|
|
42
42
|
"typescript": "4.2.3",
|
|
43
43
|
"webpack": "^3.12.0"
|
|
44
44
|
},
|