@pixelpay/sdk-core 2.4.0-beta.1 → 2.4.1-beta.0
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 +5 -1
- package/index.html +9 -11
- package/lib/browser/index.js +13 -11
- package/lib/libraries/CardinalManager.js +7 -4
- package/lib/libraries/CardinalManager.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +1 -1
- package/tests/Tokenization.test.ts +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -5,7 +5,11 @@ El formato se basa en [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
|
5
5
|
y este proyecto se adhiere a [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
6
6
|
Tipos de cambios: `Added`, `Changed`, `Deprecated`, `Removed`, `Fixed`, `Security`.
|
|
7
7
|
|
|
8
|
-
## [v2.4.
|
|
8
|
+
## [v2.4.1-beta.0] - 2025-05-07
|
|
9
|
+
### Added
|
|
10
|
+
- Se agregó soporte para autenticación de 3D Secure con Cardinal API
|
|
11
|
+
|
|
12
|
+
## [v2.4.0] - 2025-03-13
|
|
9
13
|
### Added
|
|
10
14
|
- Se agregó autenticación de 3D Secure con Cybersource
|
|
11
15
|
|
package/index.html
CHANGED
|
@@ -56,8 +56,8 @@
|
|
|
56
56
|
<div class="row">
|
|
57
57
|
<div class="column">
|
|
58
58
|
<fieldset>
|
|
59
|
-
<legend>
|
|
60
|
-
<input type="text" name="
|
|
59
|
+
<legend>ORDER ID</legend>
|
|
60
|
+
<input type="text" name="order_id" placeholder="ORDER-TEST" value="ORDER-FA168BDFFCB2">
|
|
61
61
|
</fieldset>
|
|
62
62
|
</div>
|
|
63
63
|
<div class="column">
|
|
@@ -148,7 +148,7 @@
|
|
|
148
148
|
<div class="column">
|
|
149
149
|
<fieldset>
|
|
150
150
|
<legend>Expire Year</legend>
|
|
151
|
-
<input type="number" name="expire_year" value="
|
|
151
|
+
<input type="number" name="expire_year" value="2028">
|
|
152
152
|
</fieldset>
|
|
153
153
|
</div>
|
|
154
154
|
<div class="column">
|
|
@@ -199,14 +199,12 @@
|
|
|
199
199
|
|
|
200
200
|
</main>
|
|
201
201
|
|
|
202
|
-
<script src="https://
|
|
202
|
+
<!-- <script src="https://cdn.jsdelivr.net/npm/@pixelpay/sdk-core"></script> -->
|
|
203
203
|
<script src="./lib/browser/index.js"></script>
|
|
204
204
|
|
|
205
205
|
<script>
|
|
206
206
|
function prepareEndpoint(settings) {
|
|
207
|
-
|
|
208
|
-
settings.setupEndpoint('https://quaint-sun-m6hdeua0rg1q.vapor-farm-e1.com');
|
|
209
|
-
settings.setupCredentials('2212294583', '189cd6e744b68421551c545047fb9fe2');
|
|
207
|
+
settings.setupSandbox();
|
|
210
208
|
}
|
|
211
209
|
|
|
212
210
|
function getCard() {
|
|
@@ -233,7 +231,7 @@
|
|
|
233
231
|
|
|
234
232
|
function getOrder() {
|
|
235
233
|
const order = new Models.Order();
|
|
236
|
-
order.id = document.querySelector('input[name="
|
|
234
|
+
order.id = document.querySelector('input[name="order_id"]').value || 'TEST-1234';
|
|
237
235
|
order.currency = document.querySelector('select[name="currency"]').value;
|
|
238
236
|
order.amount = parseFloat(document.querySelector('input[name=amount]').value);
|
|
239
237
|
order.customer_name = 'Jhon Doe';
|
|
@@ -328,7 +326,7 @@
|
|
|
328
326
|
|
|
329
327
|
const service = new Services.Transaction(settings);
|
|
330
328
|
const capture = new Requests.CaptureTransaction();
|
|
331
|
-
capture.payment_uuid = document.querySelector('input[name="
|
|
329
|
+
capture.payment_uuid = document.querySelector('input[name="order_id"]').value
|
|
332
330
|
capture.transaction_approved_amount = 1.00;
|
|
333
331
|
|
|
334
332
|
service.doCapture(capture).then(response => {
|
|
@@ -351,7 +349,7 @@
|
|
|
351
349
|
|
|
352
350
|
const service = new Services.Transaction(settings);
|
|
353
351
|
const voidTx = new Requests.VoidTransaction();
|
|
354
|
-
voidTx.payment_uuid = document.querySelector('input[name="
|
|
352
|
+
voidTx.payment_uuid = document.querySelector('input[name="order_id"]').value
|
|
355
353
|
voidTx.void_reason = 'Transaction Test';
|
|
356
354
|
|
|
357
355
|
service.doVoid(voidTx).then(response => {
|
|
@@ -370,7 +368,7 @@
|
|
|
370
368
|
const service = new Services.Transaction(settings);
|
|
371
369
|
|
|
372
370
|
const statusTx = new Requests.StatusTransaction();
|
|
373
|
-
statusTx.payment_uuid = document.querySelector('input[name="
|
|
371
|
+
statusTx.payment_uuid = document.querySelector('input[name="order_id"]').value
|
|
374
372
|
|
|
375
373
|
service.getStatus(statusTx).then(response => {
|
|
376
374
|
showResponse(response.toJson())
|