globalpayments-api 3.8.0 → 3.8.1

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.
Files changed (191) hide show
  1. package/CHANGELOG.md +9 -1
  2. package/LICENSE.md +257 -257
  3. package/README.md +141 -141
  4. package/lib/src/Builders/ManagementBuilder.d.ts +9 -5
  5. package/lib/src/Builders/ManagementBuilder.js +44 -34
  6. package/lib/src/Builders/ManagementBuilder.js.map +1 -1
  7. package/lib/src/Entities/AdditionalTaxDetails.d.ts +5 -0
  8. package/lib/src/Entities/AdditionalTaxDetails.js +10 -0
  9. package/lib/src/Entities/AdditionalTaxDetails.js.map +1 -0
  10. package/lib/src/Entities/CommercialData.d.ts +26 -0
  11. package/lib/src/Entities/CommercialData.js +36 -0
  12. package/lib/src/Entities/CommercialData.js.map +1 -0
  13. package/lib/src/Entities/CommercialLineItem.d.ts +21 -0
  14. package/lib/src/Entities/CommercialLineItem.js +24 -0
  15. package/lib/src/Entities/CommercialLineItem.js.map +1 -0
  16. package/lib/src/Entities/DiscountDetails.d.ts +8 -0
  17. package/lib/src/Entities/DiscountDetails.js +13 -0
  18. package/lib/src/Entities/DiscountDetails.js.map +1 -0
  19. package/lib/src/Entities/Enums.d.ts +10 -1
  20. package/lib/src/Entities/Enums.js +13 -2
  21. package/lib/src/Entities/Enums.js.map +1 -1
  22. package/lib/src/Entities/Transaction.js +3 -0
  23. package/lib/src/Entities/Transaction.js.map +1 -1
  24. package/lib/src/Entities/TransactionSummary.d.ts +1 -0
  25. package/lib/src/Entities/TransactionSummary.js +1 -0
  26. package/lib/src/Entities/TransactionSummary.js.map +1 -1
  27. package/lib/src/Gateways/PayPlanConnector.d.ts +1 -1
  28. package/lib/src/Gateways/PorticoConnector.d.ts +3 -3
  29. package/lib/src/Gateways/PorticoConnector.js +117 -4
  30. package/lib/src/Gateways/PorticoConnector.js.map +1 -1
  31. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/Ecommerce.test.js +17 -17
  32. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/Ecommerce.test.js.map +1 -1
  33. package/lib/test/Integration/Gateways/PorticoConnector/Credit.test.js +66 -0
  34. package/lib/test/Integration/Gateways/PorticoConnector/Credit.test.js.map +1 -1
  35. package/package.json +1 -1
  36. package/lib/test/Integration/Gateways/GpApiConnector/3DS2Test.d.ts +0 -1
  37. package/lib/test/Integration/Gateways/GpApiConnector/3DS2Test.js +0 -1029
  38. package/lib/test/Integration/Gateways/GpApiConnector/3DS2Test.js.map +0 -1
  39. package/lib/test/Integration/Gateways/GpApiConnector/3DSecureTest.d.ts +0 -1
  40. package/lib/test/Integration/Gateways/GpApiConnector/3DSecureTest.js +0 -649
  41. package/lib/test/Integration/Gateways/GpApiConnector/3DSecureTest.js.map +0 -1
  42. package/lib/test/Integration/Gateways/GpApiConnector/AccessTokenTest.d.ts +0 -1
  43. package/lib/test/Integration/Gateways/GpApiConnector/AccessTokenTest.js +0 -109
  44. package/lib/test/Integration/Gateways/GpApiConnector/AccessTokenTest.js.map +0 -1
  45. package/lib/test/Integration/Gateways/GpApiConnector/CreditCardNotPresentTest.d.ts +0 -1
  46. package/lib/test/Integration/Gateways/GpApiConnector/CreditCardNotPresentTest.js +0 -1025
  47. package/lib/test/Integration/Gateways/GpApiConnector/CreditCardNotPresentTest.js.map +0 -1
  48. package/lib/test/Integration/Gateways/GpApiConnector/CreditCardPresentTest.d.ts +0 -1
  49. package/lib/test/Integration/Gateways/GpApiConnector/CreditCardPresentTest.js +0 -439
  50. package/lib/test/Integration/Gateways/GpApiConnector/CreditCardPresentTest.js.map +0 -1
  51. package/lib/test/Integration/Gateways/GpApiConnector/DebitCardTest.d.ts +0 -1
  52. package/lib/test/Integration/Gateways/GpApiConnector/DebitCardTest.js +0 -143
  53. package/lib/test/Integration/Gateways/GpApiConnector/DebitCardTest.js.map +0 -1
  54. package/lib/test/Integration/Gateways/GpApiConnector/GpApiCertificationTest.d.ts +0 -1
  55. package/lib/test/Integration/Gateways/GpApiConnector/GpApiCertificationTest.js +0 -639
  56. package/lib/test/Integration/Gateways/GpApiConnector/GpApiCertificationTest.js.map +0 -1
  57. package/lib/test/Integration/Gateways/GpApiConnector/GpApiTokenManagementTest.d.ts +0 -1
  58. package/lib/test/Integration/Gateways/GpApiConnector/GpApiTokenManagementTest.js +0 -149
  59. package/lib/test/Integration/Gateways/GpApiConnector/GpApiTokenManagementTest.js.map +0 -1
  60. package/lib/test/Integration/Gateways/GpApiConnector/ReportingDepositsTest.d.ts +0 -1
  61. package/lib/test/Integration/Gateways/GpApiConnector/ReportingDepositsTest.js +0 -226
  62. package/lib/test/Integration/Gateways/GpApiConnector/ReportingDepositsTest.js.map +0 -1
  63. package/lib/test/Integration/Gateways/GpApiConnector/ReportingSettlementTransactionsTest.d.ts +0 -1
  64. package/lib/test/Integration/Gateways/GpApiConnector/ReportingSettlementTransactionsTest.js +0 -434
  65. package/lib/test/Integration/Gateways/GpApiConnector/ReportingSettlementTransactionsTest.js.map +0 -1
  66. package/lib/test/Integration/Gateways/GpApiConnector/ReportingStoredPaymentMethodsTest.d.ts +0 -1
  67. package/lib/test/Integration/Gateways/GpApiConnector/ReportingStoredPaymentMethodsTest.js +0 -217
  68. package/lib/test/Integration/Gateways/GpApiConnector/ReportingStoredPaymentMethodsTest.js.map +0 -1
  69. package/lib/test/Integration/Gateways/GpApiConnector/ReportingTransactionsTest.d.ts +0 -1
  70. package/lib/test/Integration/Gateways/GpApiConnector/ReportingTransactionsTest.js +0 -338
  71. package/lib/test/Integration/Gateways/GpApiConnector/ReportingTransactionsTest.js.map +0 -1
  72. package/lib/test/Integration/Gateways/GpEcomConnector/Certification/AuthTest.d.ts +0 -1
  73. package/lib/test/Integration/Gateways/GpEcomConnector/Certification/AuthTest.js +0 -2446
  74. package/lib/test/Integration/Gateways/GpEcomConnector/Certification/AuthTest.js.map +0 -1
  75. package/lib/test/Integration/Gateways/GpEcomConnector/Certification/AvsTest.d.ts +0 -1
  76. package/lib/test/Integration/Gateways/GpEcomConnector/Certification/AvsTest.js +0 -506
  77. package/lib/test/Integration/Gateways/GpEcomConnector/Certification/AvsTest.js.map +0 -1
  78. package/lib/test/Integration/Gateways/GpEcomConnector/Certification/CreditTest.d.ts +0 -1
  79. package/lib/test/Integration/Gateways/GpEcomConnector/Certification/CreditTest.js +0 -1296
  80. package/lib/test/Integration/Gateways/GpEcomConnector/Certification/CreditTest.js.map +0 -1
  81. package/lib/test/Integration/Gateways/GpEcomConnector/Certification/HoldTest.d.ts +0 -1
  82. package/lib/test/Integration/Gateways/GpEcomConnector/Certification/HoldTest.js +0 -847
  83. package/lib/test/Integration/Gateways/GpEcomConnector/Certification/HoldTest.js.map +0 -1
  84. package/lib/test/Integration/Gateways/GpEcomConnector/CreditTest.d.ts +0 -1
  85. package/lib/test/Integration/Gateways/GpEcomConnector/CreditTest.js +0 -215
  86. package/lib/test/Integration/Gateways/GpEcomConnector/CreditTest.js.map +0 -1
  87. package/lib/test/Integration/Gateways/GpEcomConnector/HppTest.d.ts +0 -1
  88. package/lib/test/Integration/Gateways/GpEcomConnector/HppTest.js +0 -99
  89. package/lib/test/Integration/Gateways/GpEcomConnector/HppTest.js.map +0 -1
  90. package/lib/test/Integration/Gateways/GpEcomConnector/RecurringTest.d.ts +0 -1
  91. package/lib/test/Integration/Gateways/GpEcomConnector/RecurringTest.js +0 -133
  92. package/lib/test/Integration/Gateways/GpEcomConnector/RecurringTest.js.map +0 -1
  93. package/lib/test/Integration/Gateways/PorticoConnector/AchTest.d.ts +0 -1
  94. package/lib/test/Integration/Gateways/PorticoConnector/AchTest.js +0 -59
  95. package/lib/test/Integration/Gateways/PorticoConnector/AchTest.js.map +0 -1
  96. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/CheckTest.d.ts +0 -1
  97. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/CheckTest.js +0 -378
  98. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/CheckTest.js.map +0 -1
  99. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceCheckTest.d.ts +0 -1
  100. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceCheckTest.js +0 -86
  101. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceCheckTest.js.map +0 -1
  102. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceTest.d.ts +0 -1
  103. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceTest.js +0 -1723
  104. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceTest.js.map +0 -1
  105. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoCheckTest.d.ts +0 -1
  106. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoCheckTest.js +0 -86
  107. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoCheckTest.js.map +0 -1
  108. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoTest.d.ts +0 -1
  109. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoTest.js +0 -1760
  110. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoTest.js.map +0 -1
  111. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RecurringTest.d.ts +0 -1
  112. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RecurringTest.js +0 -420
  113. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RecurringTest.js.map +0 -1
  114. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RetailTest.d.ts +0 -1
  115. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RetailTest.js +0 -2221
  116. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RetailTest.js.map +0 -1
  117. package/lib/test/Integration/Gateways/PorticoConnector/CreditTest.d.ts +0 -1
  118. package/lib/test/Integration/Gateways/PorticoConnector/CreditTest.js +0 -392
  119. package/lib/test/Integration/Gateways/PorticoConnector/CreditTest.js.map +0 -1
  120. package/lib/test/Integration/Gateways/PorticoConnector/DebitTest.d.ts +0 -1
  121. package/lib/test/Integration/Gateways/PorticoConnector/DebitTest.js +0 -88
  122. package/lib/test/Integration/Gateways/PorticoConnector/DebitTest.js.map +0 -1
  123. package/lib/test/Integration/Gateways/PorticoConnector/EbtTest.d.ts +0 -1
  124. package/lib/test/Integration/Gateways/PorticoConnector/EbtTest.js +0 -72
  125. package/lib/test/Integration/Gateways/PorticoConnector/EbtTest.js.map +0 -1
  126. package/lib/test/Integration/Gateways/PorticoConnector/EcommerceTest.d.ts +0 -1
  127. package/lib/test/Integration/Gateways/PorticoConnector/EcommerceTest.js +0 -143
  128. package/lib/test/Integration/Gateways/PorticoConnector/EcommerceTest.js.map +0 -1
  129. package/lib/test/Integration/Gateways/PorticoConnector/GiftTest.d.ts +0 -1
  130. package/lib/test/Integration/Gateways/PorticoConnector/GiftTest.js +0 -147
  131. package/lib/test/Integration/Gateways/PorticoConnector/GiftTest.js.map +0 -1
  132. package/lib/test/Integration/Gateways/PorticoConnector/PorticoManagementTokenTest.d.ts +0 -1
  133. package/lib/test/Integration/Gateways/PorticoConnector/PorticoManagementTokenTest.js +0 -48
  134. package/lib/test/Integration/Gateways/PorticoConnector/PorticoManagementTokenTest.js.map +0 -1
  135. package/lib/test/Integration/Gateways/PorticoConnector/RecurringTest.d.ts +0 -1
  136. package/lib/test/Integration/Gateways/PorticoConnector/RecurringTest.js +0 -101
  137. package/lib/test/Integration/Gateways/PorticoConnector/RecurringTest.js.map +0 -1
  138. package/lib/test/Integration/Gateways/PorticoConnector/ReportingTest.d.ts +0 -1
  139. package/lib/test/Integration/Gateways/PorticoConnector/ReportingTest.js +0 -50
  140. package/lib/test/Integration/Gateways/PorticoConnector/ReportingTest.js.map +0 -1
  141. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/GetInformationCertificationTest.d.ts +0 -1
  142. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/GetInformationCertificationTest.js +0 -44
  143. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/GetInformationCertificationTest.js.map +0 -1
  144. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayAccountCertificationTest.d.ts +0 -1
  145. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayAccountCertificationTest.js +0 -221
  146. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayAccountCertificationTest.js.map +0 -1
  147. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayFundCertificationTest.d.ts +0 -1
  148. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayFundCertificationTest.js +0 -60
  149. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayFundCertificationTest.js.map +0 -1
  150. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayInNetworkTransactionCertificationTest.d.ts +0 -1
  151. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayInNetworkTransactionCertificationTest.js +0 -80
  152. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayInNetworkTransactionCertificationTest.js.map +0 -1
  153. package/lib/test/Integration/Gateways/ProPayConnector/GetInformationTest.d.ts +0 -1
  154. package/lib/test/Integration/Gateways/ProPayConnector/GetInformationTest.js +0 -44
  155. package/lib/test/Integration/Gateways/ProPayConnector/GetInformationTest.js.map +0 -1
  156. package/lib/test/Integration/Gateways/ProPayConnector/ProPayAccountTest.d.ts +0 -1
  157. package/lib/test/Integration/Gateways/ProPayConnector/ProPayAccountTest.js +0 -330
  158. package/lib/test/Integration/Gateways/ProPayConnector/ProPayAccountTest.js.map +0 -1
  159. package/lib/test/Integration/Gateways/ProPayConnector/ProPayFundsTest.d.ts +0 -1
  160. package/lib/test/Integration/Gateways/ProPayConnector/ProPayFundsTest.js +0 -60
  161. package/lib/test/Integration/Gateways/ProPayConnector/ProPayFundsTest.js.map +0 -1
  162. package/lib/test/Integration/Gateways/ProPayConnector/ProPayInNetworkTransactionTest.d.ts +0 -1
  163. package/lib/test/Integration/Gateways/ProPayConnector/ProPayInNetworkTransactionTest.js +0 -80
  164. package/lib/test/Integration/Gateways/ProPayConnector/ProPayInNetworkTransactionTest.js.map +0 -1
  165. package/lib/test/Integration/Gateways/Terminals/UPA/UpaMicTest.d.ts +0 -1
  166. package/lib/test/Integration/Gateways/Terminals/UPA/UpaMicTest.js +0 -149
  167. package/lib/test/Integration/Gateways/Terminals/UPA/UpaMicTest.js.map +0 -1
  168. package/lib/test/Integration/Services/CheckServiceTest.d.ts +0 -1
  169. package/lib/test/Integration/Services/CheckServiceTest.js +0 -45
  170. package/lib/test/Integration/Services/CheckServiceTest.js.map +0 -1
  171. package/lib/test/Integration/Services/CreditServiceTest.d.ts +0 -1
  172. package/lib/test/Integration/Services/CreditServiceTest.js +0 -174
  173. package/lib/test/Integration/Services/CreditServiceTest.js.map +0 -1
  174. package/lib/test/Integration/Services/DebitServiceTest.d.ts +0 -1
  175. package/lib/test/Integration/Services/DebitServiceTest.js +0 -81
  176. package/lib/test/Integration/Services/DebitServiceTest.js.map +0 -1
  177. package/lib/test/Integration/Services/EBTServiceTest.d.ts +0 -1
  178. package/lib/test/Integration/Services/EBTServiceTest.js +0 -64
  179. package/lib/test/Integration/Services/EBTServiceTest.js.map +0 -1
  180. package/lib/test/Unit/Builders/AuthorizationBuilder/ValidationTest.d.ts +0 -1
  181. package/lib/test/Unit/Builders/AuthorizationBuilder/ValidationTest.js +0 -111
  182. package/lib/test/Unit/Builders/AuthorizationBuilder/ValidationTest.js.map +0 -1
  183. package/lib/test/Unit/Builders/ReportBuilder/ValidationTest.d.ts +0 -1
  184. package/lib/test/Unit/Builders/ReportBuilder/ValidationTest.js +0 -62
  185. package/lib/test/Unit/Builders/ReportBuilder/ValidationTest.js.map +0 -1
  186. package/lib/test/Unit/Gateways/GpEcomConnector/CreditTest.d.ts +0 -1
  187. package/lib/test/Unit/Gateways/GpEcomConnector/CreditTest.js +0 -34
  188. package/lib/test/Unit/Gateways/GpEcomConnector/CreditTest.js.map +0 -1
  189. package/lib/test/Unit/Gateways/PorticoConnector/InputValidationTest.d.ts +0 -1
  190. package/lib/test/Unit/Gateways/PorticoConnector/InputValidationTest.js +0 -125
  191. package/lib/test/Unit/Gateways/PorticoConnector/InputValidationTest.js.map +0 -1
@@ -1,101 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const ava_1 = __importDefault(require("ava"));
7
- const src_1 = require("../../../../src/");
8
- const timeForId = new Date().getTime();
9
- (0, ava_1.default)("allow 5-part credentials", (t) => {
10
- const c = new src_1.PorticoConfig();
11
- c.username = "123456789";
12
- c.password = "$Test1234";
13
- c.siteId = "12345";
14
- c.deviceId = "123456";
15
- c.licenseId = "12345";
16
- src_1.ServicesContainer.configureService(c);
17
- t.truthy(true);
18
- });
19
- (0, ava_1.default)("make PayPlan customer", async (t) => {
20
- t.plan(1);
21
- handleAuth();
22
- const customer = new src_1.Customer();
23
- customer.id = "Customer" + timeForId;
24
- customer.firstName = "John";
25
- customer.lastName = "Doe";
26
- customer.status = "Active";
27
- customer.email = "john.doe@email.com";
28
- customer.address = new src_1.Address();
29
- customer.address.streetAddress1 = "123 Main St.";
30
- customer.address.city = "Dallas";
31
- customer.address.state = "TX";
32
- customer.address.postalCode = "98765";
33
- customer.address.country = "USA";
34
- customer.workPhone = "5551112222";
35
- const createdCustomer = await customer.create();
36
- t.truthy(createdCustomer);
37
- });
38
- (0, ava_1.default)("attach CC payment method to customer", async (t) => {
39
- t.plan(2);
40
- handleAuth();
41
- const foundCustomer = (await src_1.Customer.find("Customer" + timeForId));
42
- t.truthy(foundCustomer);
43
- const card = new src_1.CreditCardData();
44
- card.number = "4111111111111111";
45
- card.expMonth = "12";
46
- card.expYear = "2025";
47
- card.cvn = "123";
48
- const ccPaymentMethod = await foundCustomer
49
- .addPaymentMethod("Payment" + timeForId, card)
50
- .create();
51
- t.truthy(ccPaymentMethod);
52
- });
53
- (0, ava_1.default)("attach payment schedule to customer", async (t) => {
54
- t.plan(2);
55
- handleAuth();
56
- const foundCcPaymentMethod = (await src_1.RecurringPaymentMethod.find("Payment" + timeForId));
57
- t.truthy(foundCcPaymentMethod);
58
- const paymentSchedule = await foundCcPaymentMethod
59
- .addSchedule("Schedule" + timeForId)
60
- .withStartDate(new Date(2027, 1, 1))
61
- .withAmount(30.01)
62
- .withFrequency(src_1.ScheduleFrequency.Weekly)
63
- .withReprocessingCount(1)
64
- .withStatus("Active")
65
- .withEmailReceipt(src_1.EmailReceipt.Never)
66
- .create("auth");
67
- t.truthy(paymentSchedule);
68
- });
69
- (0, ava_1.default)("edit/deactivate the schedule from above test", async (t) => {
70
- t.plan(2);
71
- handleAuth();
72
- const foundSchedule = (await src_1.Schedule.find("Schedule" + timeForId));
73
- t.truthy(foundSchedule);
74
- foundSchedule.status = "Inactive";
75
- t.truthy(foundSchedule.saveChanges("auth"));
76
- });
77
- (0, ava_1.default)("find and charge payment method", async (t) => {
78
- t.plan(1);
79
- handleAuth();
80
- const foundCcPaymentMethod = (await src_1.RecurringPaymentMethod.find("Payment" + timeForId));
81
- const chargeResponse = await foundCcPaymentMethod
82
- .charge(12.34)
83
- .withCurrency("USD")
84
- .execute("auth");
85
- t.true(chargeResponse.responseCode == "00");
86
- });
87
- (0, ava_1.default)("find transactions from this new payment method", async (t) => {
88
- t.plan(1);
89
- handleAuth();
90
- const foundCcPaymentMethod = (await src_1.RecurringPaymentMethod.find("Payment" + timeForId));
91
- const foundTransactions = await src_1.ReportingService.findTransactions()
92
- .where("PaymentMethodKey", foundCcPaymentMethod.key)
93
- .execute("auth");
94
- t.true(foundTransactions.length === 2); // one transaction was the CreditAccountVerify from creating the payment method
95
- });
96
- function handleAuth() {
97
- const config = new src_1.PorticoConfig();
98
- config.secretApiKey = "skapi_cert_MXvdAQB61V4AkyM-x3EJuY6hkEaCzaMimTWav7mVfQ";
99
- src_1.ServicesContainer.configureService(config, "auth");
100
- }
101
- //# sourceMappingURL=RecurringTest.js.map
@@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C7D,SAAS,GAAG,SAAS,CACtB,CAA2B,CAAC;IAE7B,MAAM,cAAc,GAAG,MAAM,oBAAoB;SAC9C,MAAM,CAAC,KAAK,CAAC;SACb,YAAY,CAAC,KAAK,CAAC;SACnB,OAAO,CAAC,MAAM,CAAC,CAAC;IAEnB,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,YAAY,IAAI,IAAI,CAAC,CAAC;AAC9C,CAAC,CAAC,CAAC;AAEH,IAAA,aAAI,EAAC,gDAAgD,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE;IACjE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAEV,UAAU,EAAE,CAAC;IAEb,MAAM,oBAAoB,GAAG,CAAC,MAAM,4BAAsB,CAAC,IAAI,CAC7D,SAAS,GAAG,SAAS,CACtB,CAA2B,CAAC;IAE7B,MAAM,iBAAiB,GAAG,MAAM,sBAAgB,CAAC,gBAAgB,EAAE;SAChE,KAAK,CAAC,kBAAkB,EAAE,oBAAoB,CAAC,GAAG,CAAC;SACnD,OAAO,CAAC,MAAM,CAAC,CAAC;IAEnB,CAAC,CAAC,IAAI,CAAC,iBAAiB,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,+EAA+E;AACzH,CAAC,CAAC,CAAC;AAEH,SAAS,UAAU;IACjB,MAAM,MAAM,GAAG,IAAI,mBAAa,EAAE,CAAC;IACnC,MAAM,CAAC,YAAY,GAAG,uDAAuD,CAAC;IAC9E,uBAAiB,CAAC,gBAAgB,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AACrD,CAAC"}
@@ -1,50 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const ava_1 = __importDefault(require("ava"));
7
- const src_1 = require("../../../../src/");
8
- const config = new src_1.PorticoConfig();
9
- config.secretApiKey = "skapi_cert_MTeSAQAfG1UA9qQDrzl-kz4toXvARyieptFwSKP24w";
10
- ava_1.default.before(() => {
11
- src_1.ServicesContainer.configureService(config);
12
- });
13
- (0, ava_1.default)("report activity", (t) => {
14
- t.plan(2);
15
- const start = new Date(Date.now());
16
- start.setDate(start.getDate() - 7);
17
- const end = new Date(Date.now());
18
- return src_1.ReportingService.activity()
19
- .withStartDate(start)
20
- .withEndDate(end)
21
- .execute()
22
- .then((activity) => {
23
- t.truthy(activity);
24
- t.true(activity.length > 0);
25
- });
26
- });
27
- (0, ava_1.default)("report transaction detail", (t) => {
28
- t.plan(3);
29
- const start = new Date(Date.now());
30
- start.setDate(start.getDate() - 7);
31
- const end = new Date(Date.now());
32
- return src_1.ReportingService.activity()
33
- .withStartDate(start)
34
- .withEndDate(end)
35
- .execute()
36
- .then((activity) => {
37
- t.truthy(activity);
38
- if (activity.length > 0) {
39
- return src_1.ReportingService.transactionDetail(activity[0].transactionId)
40
- .execute()
41
- .then((detail) => {
42
- t.truthy(detail);
43
- t.is(detail.gatewayResponseCode, "00");
44
- });
45
- }
46
- t.plan(1);
47
- return Promise.resolve();
48
- });
49
- });
50
- //# sourceMappingURL=ReportingTest.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ReportingTest.js","sourceRoot":"","sources":["../../../../../test/Integration/Gateways/PorticoConnector/ReportingTest.ts"],"names":[],"mappings":";;;;;AAAA,8CAAuB;AACvB,0CAI0B;AAE1B,MAAM,MAAM,GAAG,IAAI,mBAAa,EAAE,CAAC;AACnC,MAAM,CAAC,YAAY,GAAG,uDAAuD,CAAC;AAE9E,aAAI,CAAC,MAAM,CAAC,GAAG,EAAE;IACf,uBAAiB,CAAC,gBAAgB,CAAC,MAAM,CAAC,CAAC;AAC7C,CAAC,CAAC,CAAC;AAEH,IAAA,aAAI,EAAC,iBAAiB,EAAE,CAAC,CAAC,EAAE,EAAE;IAC5B,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAEV,MAAM,KAAK,GAAG,IAAI,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ACjE,OAAO,EAAE;iBACT,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE;gBACf,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;gBACjB,CAAC,CAAC,EAAE,CAAC,MAAM,CAAC,mBAAmB,EAAE,IAAI,CAAC,CAAC;YACzC,CAAC,CAAC,CAAC;SACN;QAED,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QACV,OAAO,OAAO,CAAC,OAAO,EAAE,CAAC;IAC3B,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
@@ -1,44 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const ava_1 = __importDefault(require("ava"));
7
- const PayFacService_1 = require("../../../../../src/Services/PayFacService");
8
- const src_1 = require("../../../../../src");
9
- const config = new src_1.PorticoConfig();
10
- config.serviceUrl = "https://xmltest.propay.com/API/PropayAPI.aspx";
11
- config.certificationStr = "d17d770d4734341aaedab32b7a7763";
12
- config.terminalId = "7a7763";
13
- const _service = new PayFacService_1.PayFacService();
14
- ava_1.default.before(() => {
15
- src_1.ServicesContainer.configureService(config);
16
- });
17
- (0, ava_1.default)("get account info", async (t) => {
18
- t.plan(2);
19
- const response = await _service
20
- .getAccountDetails()
21
- .withAccountNumber("718570752")
22
- .execute();
23
- t.truthy(response);
24
- t.is("00", response.responseCode);
25
- });
26
- (0, ava_1.default)("get account balance", async (t) => {
27
- t.plan(2);
28
- const response = await _service
29
- .getAccountBalance()
30
- .withAccountNumber("718570752")
31
- .execute();
32
- t.truthy(response);
33
- t.is("00", response.responseCode);
34
- });
35
- (0, ava_1.default)("get account info enchance", async (t) => {
36
- t.plan(2);
37
- const response = await _service
38
- .getAccountDetailsEnhanced()
39
- .withAccountNumber("718570752")
40
- .execute();
41
- t.truthy(response);
42
- t.is("00", response.responseCode);
43
- });
44
- //# sourceMappingURL=GetInformationCertificationTest.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"GetInformationCertificationTest.js","sourceRoot":"","sources":["../../../../../../test/Integration/Gateways/ProPayConnector/Certifications/GetInformationCertificationTest.ts"],"names":[],"mappings":";;;;;AAAA,8CAAuB;AACvB,6EAA0E;AAC1E,4CAAsE;AAEtE,MAAM,MAAM,GAAG,IAAI,mBAAa,EAAE,CAAC;AACnC,MAAM,CAAC,UAAU,GAAG,+CAA+C,CAAC;AACpE,MAAM,CAAC,gBAAgB,GAAG,gCAAgC,CAAC;AAC3D,MAAM,CAAC,UAAU,GAAG,QAAQ,CAAC;AAC7B,MAAM,QAAQ,GAAG,IAAI,6BAAa,EAAE,CAAC;AAErC,aAAI,CAAC,MAAM,CAAC,GAAG,EAAE;IACf,uBAAiB,CAAC,gBAAgB,CAAC,MAAM,CAAC,CAAC;AAC7C,CAAC,CAAC,CAAC;AAEH,IAAA,aAAI,EAAC,kBAAkB,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE;IACnC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACV,MAAM,QAAQ,GAAG,MAAM,QAAQ;SAC5B,iBAAiB,EAAE;SACnB,iBAAiB,CAAC,WAAW,CAAC;SAC9B,OAAO,EAAE,CAAC;IAEb,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IACnB,CAAC,CAAC,EAAE,CAAC,IAAI,EAAE,QAAQ,CAAC,YAAY,CAAC,CAAC;AACpC,CAAC,CAAC,CAAC;AAEH,IAAA,aAAI,EAAC,qBAAqB,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE;IACtC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACV,MAAM,QAAQ,GAAG,MAAM,QAAQ;SAC5B,iBAAiB,EAAE;SACnB,iBAAiB,CAAC,WAAW,CAAC;SAC9B,OAAO,EAAE,CAAC;IAEb,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IACnB,CAAC,CAAC,EAAE,CAAC,IAAI,EAAE,QAAQ,CAAC,YAAY,CAAC,CAAC;AACpC,CAAC,CAAC,CAAC;AAEH,IAAA,aAAI,EAAC,2BAA2B,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE;IAC5C,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACV,MAAM,QAAQ,GAAG,MAAM,QAAQ;SAC5B,yBAAyB,EAAE;SAC3B,iBAAiB,CAAC,WAAW,CAAC;SAC9B,OAAO,EAAE,CAAC;IAEb,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IACnB,CAAC,CAAC,EAAE,CAAC,IAAI,EAAE,QAAQ,CAAC,YAAY,CAAC,CAAC;AACpC,CAAC,CAAC,CAAC"}
@@ -1,221 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const ava_1 = __importDefault(require("ava"));
7
- const PayFacService_1 = require("../../../../../src/Services/PayFacService");
8
- const src_1 = require("../../../../../src");
9
- const TestAccountData_1 = require("./TestData/TestAccountData");
10
- const BankAccountData_1 = require("../../../../../src/Entities/ProFac/BankAccountData");
11
- const DocumentUploadData_1 = require("../../../../../src/Entities/DocumentUploadData");
12
- const SSORequestData_1 = require("../../../../../src/Entities/SSORequestData");
13
- const config = new src_1.PorticoConfig();
14
- config.serviceUrl = "https://xmltest.propay.com/API/PropayAPI.aspx";
15
- config.certificationStr = "d17d770d4734341aaedab32b7a7763";
16
- config.terminalId = "7a7763";
17
- config.selfSignedCertLocation =
18
- "test/Integration/Gateways/ProPayConnector/Certifications/TestData/selfSignedCertificate.crt";
19
- const _service = new PayFacService_1.PayFacService();
20
- ava_1.default.before(() => {
21
- src_1.ServicesContainer.configureService(config);
22
- });
23
- (0, ava_1.default)("create account", async (t) => {
24
- t.plan(5);
25
- const accountPersonalInfo = TestAccountData_1.TestAccountData.GetUserPersonalData();
26
- const ownersInfo = TestAccountData_1.TestAccountData.GetBeneficialOwnerData();
27
- const response = await _service
28
- .createAccount()
29
- .withUserPersonalData(accountPersonalInfo)
30
- .withBeneficialOwnerData(ownersInfo)
31
- .execute();
32
- t.truthy(response);
33
- t.is("00", response.responseCode);
34
- t.truthy(response.payFacData.accountNumber);
35
- t.truthy(response.payFacData.password);
36
- t.truthy(response.payFacData.sourceEmail);
37
- });
38
- (0, ava_1.default)("Order a new device", async (t) => {
39
- t.plan(2);
40
- const orderDeviceInfo = TestAccountData_1.TestAccountData.GetOrderNewDeviceData();
41
- const deviceData = TestAccountData_1.TestAccountData.GetDeviceDataForPhysicalDevice(1, false);
42
- const response = await _service
43
- .orderDevice()
44
- .withOrderDevice(orderDeviceInfo)
45
- .withDeviceData(deviceData)
46
- .execute();
47
- t.truthy(response);
48
- t.is("00", response.responseCode);
49
- });
50
- (0, ava_1.default)("create account Device Order", async (t) => {
51
- t.plan(5);
52
- const bankAccountInfo = TestAccountData_1.TestAccountData.GetBankAccountForBoardingData();
53
- const accountPersonalInfo = TestAccountData_1.TestAccountData.GetUserPersonalForBoadingData();
54
- const deviceData = TestAccountData_1.TestAccountData.GetDeviceData(1, false);
55
- const userBusinessInfo = TestAccountData_1.TestAccountData.GetBusinessForBoardingData();
56
- const mailingAddressInfo = TestAccountData_1.TestAccountData.GetMailingAddressForBoarding();
57
- const ownersInfo = TestAccountData_1.TestAccountData.GetBeneficialOwnerData();
58
- const response = await _service
59
- .createAccount()
60
- .withBankAccountData(bankAccountInfo)
61
- .withUserPersonalData(accountPersonalInfo)
62
- .withBusinessData(userBusinessInfo)
63
- .withDeviceData(deviceData)
64
- .withMailingAddress(mailingAddressInfo)
65
- .withBeneficialOwnerData(ownersInfo)
66
- .withTimeZone("UTC")
67
- .execute();
68
- t.truthy(response);
69
- t.is("00", response.responseCode);
70
- t.truthy(response.payFacData.accountNumber);
71
- t.truthy(response.payFacData.password);
72
- t.truthy(response.payFacData.sourceEmail);
73
- });
74
- (0, ava_1.default)("create account Physical Device", async (t) => {
75
- t.plan(5);
76
- const bankAccountInfo = TestAccountData_1.TestAccountData.GetBankAccountForBoardingData();
77
- const accountPersonalInfo = TestAccountData_1.TestAccountData.GetUserPersonalForBoadingData();
78
- const deviceData = TestAccountData_1.TestAccountData.GetDeviceDataForPhysicalDevice(1, false);
79
- const userBusinessInfo = TestAccountData_1.TestAccountData.GetBusinessForBoardingData();
80
- const mailingAddressInfo = TestAccountData_1.TestAccountData.GetMailingAddressForBoarding();
81
- const ownersInfo = TestAccountData_1.TestAccountData.GetBeneficialOwnerData();
82
- const response = await _service
83
- .createAccount()
84
- .withBankAccountData(bankAccountInfo)
85
- .withUserPersonalData(accountPersonalInfo)
86
- .withBusinessData(userBusinessInfo)
87
- .withDeviceData(deviceData)
88
- .withMailingAddress(mailingAddressInfo)
89
- .withBeneficialOwnerData(ownersInfo)
90
- .withTimeZone("UTC")
91
- .execute();
92
- t.truthy(response);
93
- t.is("00", response.responseCode);
94
- t.truthy(response.payFacData.accountNumber);
95
- t.truthy(response.payFacData.password);
96
- t.truthy(response.payFacData.sourceEmail);
97
- });
98
- (0, ava_1.default)("Test Failed KYC (Status 66)", async (t) => {
99
- t.plan(2);
100
- const bankAccountInfo = TestAccountData_1.TestAccountData.GetBankAccountForBoardingData();
101
- const accountPersonalInfo = TestAccountData_1.TestAccountData.GetUserPersonalForBoadingData("01-01-1971");
102
- const deviceData = TestAccountData_1.TestAccountData.GetDeviceData(1, false);
103
- const userBusinessInfo = TestAccountData_1.TestAccountData.GetBusinessForBoardingData();
104
- const mailingAddressInfo = TestAccountData_1.TestAccountData.GetMailingAddressForBoarding();
105
- const ownersInfo = TestAccountData_1.TestAccountData.GetBeneficialOwnerData();
106
- const response = await _service
107
- .createAccount()
108
- .withBankAccountData(bankAccountInfo)
109
- .withUserPersonalData(accountPersonalInfo)
110
- .withBusinessData(userBusinessInfo)
111
- .withDeviceData(deviceData)
112
- .withMailingAddress(mailingAddressInfo)
113
- .withBeneficialOwnerData(ownersInfo)
114
- .withTimeZone("UTC")
115
- .execute();
116
- console.log(response);
117
- t.truthy(response);
118
- t.is("66", response.responseCode);
119
- });
120
- (0, ava_1.default)("edit account information", async (t) => {
121
- t.plan(2);
122
- const bankAccountData = new BankAccountData_1.BankAccountData();
123
- bankAccountData.accountCountryCode = "USA";
124
- bankAccountData.accountType = "Checking";
125
- bankAccountData.accountNumber = "718570634";
126
- bankAccountData.bankName = "BankName";
127
- bankAccountData.routingNumber = "104000058";
128
- bankAccountData.accountOwnershipType = "Business";
129
- const response = await _service
130
- .editAccount()
131
- .withAccountNumber("718570634")
132
- .withBankAccountData(bankAccountData)
133
- .execute();
134
- t.truthy(response);
135
- t.is("00", response.responseCode);
136
- });
137
- (0, ava_1.default)("reset password", async (t) => {
138
- const response = await _service
139
- .resetPassword()
140
- .withAccountNumber("718570758")
141
- .execute();
142
- t.truthy(response);
143
- });
144
- (0, ava_1.default)("renew account", async (t) => {
145
- t.plan(2);
146
- const response = await _service
147
- .renewAccount()
148
- .withRenewalAccountData(TestAccountData_1.TestAccountData.GetRenewAccountDetails())
149
- .withAccountNumber("718570759")
150
- .execute();
151
- t.truthy(response);
152
- t.is("00", response.responseCode);
153
- });
154
- ava_1.default.skip("disown account", async (t) => {
155
- t.plan(2);
156
- const response = await _service
157
- .disownAccount()
158
- .withAccountNumber("718570772") // The account being "disowned" needs to have another affiliation set. Contact propayimplementations@tsys.com and they will set one if necessary
159
- .execute();
160
- t.truthy(response);
161
- t.is("00", response.responseCode);
162
- });
163
- // Note : The transaction number of the chargeback you need to dispute. (can be verify at certification process)
164
- (0, ava_1.default)("upload document chargeback", async (t) => {
165
- t.plan(2);
166
- const docUploadData = new DocumentUploadData_1.DocumentUploadData();
167
- docUploadData.documentName = "TestDocCB_12345";
168
- docUploadData.transactionReference = "1";
169
- docUploadData.documentPath =
170
- "test/Integration/Gateways/ProPayConnector/Certifications/TestData/TestDocChargeback.docx";
171
- docUploadData.DocumentPath(docUploadData.documentPath);
172
- const response = await _service
173
- .uploadDocumentChargeback()
174
- .withAccountNumber("718569967") //("718567300")
175
- .withDocumentUploadData(docUploadData)
176
- .execute();
177
- t.truthy(response);
178
- t.is("00", response.responseCode);
179
- });
180
- (0, ava_1.default)("upload document", async (t) => {
181
- t.plan(2);
182
- const docUploadData = new DocumentUploadData_1.DocumentUploadData();
183
- docUploadData.documentName = "TestDoc_12345";
184
- docUploadData.docCategory = "Verification";
185
- docUploadData.documentPath =
186
- "test/Integration/Gateways/ProPayConnector/Certifications/TestData/TestDoc.docx";
187
- docUploadData.DocumentPath(docUploadData.documentPath);
188
- const response = await _service
189
- .uploadDocument()
190
- .withAccountNumber("718570858")
191
- .withDocumentUploadData(docUploadData)
192
- .execute();
193
- t.truthy(response);
194
- t.is("00", response.responseCode);
195
- });
196
- (0, ava_1.default)("obtain sSO key", async (t) => {
197
- t.plan(3);
198
- const ssoRequestData = new SSORequestData_1.SSORequestData();
199
- ssoRequestData.referrerURL = "https://www.globalpaymentsinc.com/";
200
- ssoRequestData.iPAddress = "40.81.11.219";
201
- ssoRequestData.iPSubnetMask = "255.255.255.0";
202
- const response = await _service
203
- .obtainSSOKey()
204
- .withAccountNumber("718570860")
205
- .withSSORequestData(ssoRequestData)
206
- .execute();
207
- t.truthy(response);
208
- t.is("00", response.responseCode);
209
- t.truthy(response.payFacData.authToken);
210
- });
211
- (0, ava_1.default)("update beneficial data", async (t) => {
212
- //Owners count shoud not be excedded 6
213
- const ownersInfo = TestAccountData_1.TestAccountData.GetBeneficialOwnerData();
214
- const response = await _service
215
- .updateBeneficialOwnershipInfo()
216
- .withAccountNumber("718570792")
217
- .withBeneficialOwnerData(ownersInfo)
218
- .execute();
219
- t.truthy(response);
220
- });
221
- //# sourceMappingURL=ProPayAccountCertificationTest.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ProPayAccountCertificationTest.js","sourceRoot":"","sources":["../../../../../../test/Integration/Gateways/ProPayConnector/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CAAC;IAC1C,cAAc,CAAC,YAAY,GAAG,eAAe,CAAC;IAE9C,MAAM,QAAQ,GAAG,MAAM,QAAQ;SAC5B,YAAY,EAAE;SACd,iBAAiB,CAAC,WAAW,CAAC;SAC9B,kBAAkB,CAAC,cAAc,CAAC;SAClC,OAAO,EAAE,CAAC;IAEb,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IACnB,CAAC,CAAC,EAAE,CAAC,IAAI,EAAE,QAAQ,CAAC,YAAY,CAAC,CAAC;IAClC,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;AAC1C,CAAC,CAAC,CAAC;AAEH,IAAA,aAAI,EAAC,wBAAwB,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE;IACzC,sCAAsC;IACtC,MAAM,UAAU,GAAG,iCAAe,CAAC,sBAAsB,EAAE,CAAC;IAE5D,MAAM,QAAQ,GAAG,MAAM,QAAQ;SAC5B,6BAA6B,EAAE;SAC/B,iBAAiB,CAAC,WAAW,CAAC;SAC9B,uBAAuB,CAAC,UAAU,CAAC;SACnC,OAAO,EAAE,CAAC;IAEb,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC"}
@@ -1,60 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const ava_1 = __importDefault(require("ava"));
7
- const PayFacService_1 = require("../../../../../src/Services/PayFacService");
8
- const src_1 = require("../../../../../src");
9
- const TestFundsData_1 = require("../TestData/TestFundsData");
10
- const config = new src_1.PorticoConfig();
11
- config.serviceUrl = "https://xmltest.propay.com/API/PropayAPI.aspx";
12
- config.certificationStr = "d17d770d4734341aaedab32b7a7763";
13
- config.terminalId = "7a7763";
14
- config.selfSignedCertLocation =
15
- "test/Integration/Gateways/ProPayConnector/Certifications/TestData/selfSignedCertificate.crt";
16
- const _service = new PayFacService_1.PayFacService();
17
- ava_1.default.before(() => {
18
- src_1.ServicesContainer.configureService(config);
19
- });
20
- (0, ava_1.default)("add funds", async (t) => {
21
- t.plan(2);
22
- const response = await _service
23
- .addFunds()
24
- .withAccountNumber("718571343") //718571145")
25
- .withAmount("100")
26
- .execute();
27
- t.truthy(response);
28
- t.is("00", response.responseCode);
29
- });
30
- (0, ava_1.default)("sweep funds", async (t) => {
31
- t.plan(2);
32
- const response = await _service
33
- .sweepFunds()
34
- .withAccountNumber("718571343") //718571146")
35
- .withAmount("10")
36
- .execute();
37
- t.truthy(response);
38
- t.is("00", response.responseCode);
39
- });
40
- ava_1.default.skip("add flash funds payment card", async (t) => {
41
- t.plan(2);
42
- const response = await _service
43
- .addCardFlashFunds()
44
- .withAccountNumber("718571147")
45
- .withFlashFundsPaymentCardData(TestFundsData_1.TestFundsData.GetFlashFundsPaymentCardData())
46
- .execute();
47
- t.truthy(response);
48
- t.is("00", response.responseCode);
49
- });
50
- ava_1.default.skip("push money to flash funds card", async (t) => {
51
- t.plan(2);
52
- const response = await _service
53
- .pushMoneyToFlashFundsCard()
54
- .withAccountNumber("718571148")
55
- .withAmount("100")
56
- .execute();
57
- t.truthy(response);
58
- t.is("00", response.responseCode);
59
- });
60
- //# sourceMappingURL=ProPayFundCertificationTest.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ProPayFundCertificationTest.js","sourceRoot":"","sources":["../../../../../../test/Integration/Gateways/ProPayConnector/Certifications/ProPayFundCertificationTest.ts"],"names":[],"mappings":";;;;;AAAA,8CAAuB;AACvB,6EAA0E;AAC1E,4CAAsE;AACtE,6DAA0D;AAE1D,MAAM,MAAM,GAAG,IAAI,mBAAa,EAAE,CAAC;AACnC,MAAM,CAAC,UAAU,GAAG,+CAA+C,CAAC;AACpE,MAAM,CAAC,gBAAgB,GAAG,gCAAgC,CAAC;AAC3D,MAAM,CAAC,UAAU,GAAG,QAAQ,CAAC;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EAAE;SACnB,iBAAiB,CAAC,WAAW,CAAC;SAC9B,6BAA6B,CAAC,6BAAa,CAAC,4BAA4B,EAAE,CAAC;SAC3E,OAAO,EAAE,CAAC;IAEb,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IACnB,CAAC,CAAC,EAAE,CAAC,IAAI,EAAE,QAAQ,CAAC,YAAY,CAAC,CAAC;AACpC,CAAC,CAAC,CAAC;AAEH,aAAI,CAAC,IAAI,CAAC,gCAAgC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE;IACtD,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACV,MAAM,QAAQ,GAAG,MAAM,QAAQ;SAC5B,yBAAyB,EAAE;SAC3B,iBAAiB,CAAC,WAAW,CAAC;SAC9B,UAAU,CAAC,KAAK,CAAC;SACjB,OAAO,EAAE,CAAC;IAEb,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IACnB,CAAC,CAAC,EAAE,CAAC,IAAI,EAAE,QAAQ,CAAC,YAAY,CAAC,CAAC;AACpC,CAAC,CAAC,CAAC"}
@@ -1,80 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const ava_1 = __importDefault(require("ava"));
7
- const PayFacService_1 = require("../../../../../src/Services/PayFacService");
8
- const src_1 = require("../../../../../src/");
9
- const config = new src_1.PorticoConfig();
10
- config.serviceUrl = "https://xmltest.propay.com/API/PropayAPI.aspx";
11
- config.certificationStr = "d17d770d4734341aaedab32b7a7763";
12
- config.terminalId = "7a7763";
13
- config.selfSignedCertLocation =
14
- "test/Integration/Gateways/ProPayConnector/Certifications/TestData/selfSignedCertificate.crt";
15
- const _service = new PayFacService_1.PayFacService();
16
- ava_1.default.before(() => {
17
- src_1.ServicesContainer.configureService(config);
18
- });
19
- (0, ava_1.default)("disburse funds", async (t) => {
20
- t.plan(2);
21
- config.serviceUrl = "https://xmltest.propay.com/API/PropayAPI.aspx";
22
- config.certificationStr = "D515DA6DA576475A85AAB5268DE822"; // disburment of fund only
23
- config.terminalId = "D515DA6DA576475A";
24
- config.selfSignedCertLocation =
25
- "test/Integration/Gateways/ProPayConnector/TestData/selfSignedCertificate.crt";
26
- src_1.ServicesContainer.configureService(config, "second");
27
- const response = await _service
28
- .disburseFunds()
29
- .withReceivingAccountNumber("718570634") //718136438")
30
- .withAmount("100")
31
- .execute("second");
32
- t.truthy(response);
33
- t.is("00", response.responseCode);
34
- });
35
- (0, ava_1.default)("spend back transaction", async (t) => {
36
- t.plan(2);
37
- const config = new src_1.PorticoConfig();
38
- config.certificationStr = "d17d770d4734341aaedab32b7a7763";
39
- const response = await _service
40
- .spendBack()
41
- .withAccountNumber("718570634")
42
- .withReceivingAccountNumber("718571166")
43
- .withAmount("100")
44
- .withAllowPending(true)
45
- .execute();
46
- t.truthy(response);
47
- t.is("00", response.responseCode);
48
- });
49
- /* before executing need to run Transaction Type 04 -> and from success response,
50
- * the transNum value need to use here
51
- */
52
- (0, ava_1.default)("split funds", async (t) => {
53
- t.plan(2);
54
- const response = await _service
55
- .splitFunds()
56
- .withAccountNumber("718575860")
57
- .withReceivingAccountNumber("718571150")
58
- .withAmount("95")
59
- .withTransNum("15")
60
- .execute();
61
- t.truthy(response);
62
- t.is("00", response.responseCode);
63
- });
64
- (0, ava_1.default)("reverse split pay", async (t) => {
65
- t.plan(5);
66
- const response = await _service
67
- .reverseSplitPay()
68
- .withAccountNumber("718571150")
69
- .withAmount("1")
70
- .withCCAmount("0")
71
- .withRequireCCRefund(false)
72
- .withTransNum("4")
73
- .execute();
74
- t.truthy(response);
75
- t.is("00", response.responseCode);
76
- t.truthy(response.payFacData.amount);
77
- t.truthy(response.payFacData.recAccountNum);
78
- t.truthy(response.payFacData.transNum);
79
- });
80
- //# sourceMappingURL=ProPayInNetworkTransactionCertificationTest.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ProPayInNetworkTransactionCertificationTest.js","sourceRoot":"","sources":["../../../../../../test/Integration/Gateways/ProPayConnector/Certifications/ProPayInNetworkTransactionCertificationTest.ts"],"names":[],"mappings":";;;;;AAAA,8CAAuB;AACvB,6EAA0E;AAC1E,6CAAuE;AAEvE,MAAM,MAAM,GAAG,IAAI,mBAAa,EAAE,CAAC;AACnC,MAAM,CAAC,UAAU,GAAG,+CAA+C,CAAC;AACpE,MAAM,CAAC,gBAAgB,GAAG,gCAAgC,CAAC;AAC3D,MAAM,CAAC,UAAU,GAAG,QAAQ,CAAC;AAC7B,MAAM,CAAC,sBAAsB;IAC3B,6FAA6F,CAAC;AAChG,MAAM,QAAQ,GAAG,IAAI,6BAAa,EAAE,CAAC;AAErC,aAAI,CAAC,MAAM,CAAC,GAAG,EAAE;IACf,uBAAiB,CAAC,gBAAgB,CAAC,MAAM,CAAC,CAAC;AAC7C,CAAC,CAAC,CAAC;AAEH,IAAA,aAAI,EAAC,gBAAgB,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE;IACjC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACV,MAAM,CAAC,UAAU,GAAG,+CAA+C,CAAC;IACpE,MAAM,CAAC,gBAAgB,GAAG,gCAAgC,CAAC,CAAC,0BAA0B;IACtF,MAAM,CAAC,UAAU,GAAG,kBAAkB,CAAC;IACvC,MAAM,CAAC,sBAAsB;QAC3B,8EAA8E,CAAC;IACjF,uBAAiB,CAAC,gBAAgB,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;IAErD,MAAM,QAAQ,GAAG,MAAM,QAAQ;SAC5B,aAAa,EAAE;SACf,0BAA0B,CAAC,WAAW,CAAC,CAAC,aAAa;SACrD,UAAU,CAAC,KAAK,CAAC;SACjB,OAAO,CAAC,QAAQ,CAAC,CAAC;IAErB,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IACnB,CAAC,CAAC,EAAE,CAAC,IAAI,EAAE,QA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