@pixelpay/capacitor-plugin 2.0.10-beta.1 → 2.0.11
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 +11 -2
- package/android/build.gradle +7 -9
- package/android/src/main/java/com/pixel/plugins/capacitor/PixelPaySDKPlugin.java +21 -11
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/plugin.cjs.js +1 -1
- package/dist/plugin.cjs.js.map +1 -1
- package/dist/plugin.js +2 -2
- package/dist/plugin.js.map +1 -1
- package/ios/Frameworks/CardinalMobile.xcframework/Info.plist +9 -5
- package/ios/Frameworks/CardinalMobile.xcframework/_CodeSignature/CodeDirectory +0 -0
- package/ios/Frameworks/CardinalMobile.xcframework/_CodeSignature/CodeRequirements +0 -0
- package/ios/Frameworks/CardinalMobile.xcframework/_CodeSignature/CodeRequirements-1 +0 -0
- package/ios/Frameworks/CardinalMobile.xcframework/_CodeSignature/CodeResources +1403 -0
- package/ios/Frameworks/CardinalMobile.xcframework/_CodeSignature/CodeSignature +0 -0
- package/ios/Frameworks/CardinalMobile.xcframework/ios-arm64/CardinalMobile.framework/Assets.car +0 -0
- package/ios/Frameworks/CardinalMobile.xcframework/ios-arm64/CardinalMobile.framework/CCStoryBoard.storyboardc/DIH-hs-KJy-view-kOh-XJ-af6.nib +0 -0
- package/ios/Frameworks/CardinalMobile.xcframework/ios-arm64/CardinalMobile.framework/CCStoryBoard.storyboardc/UINavigationController-SPZ-eu-YwW.nib +0 -0
- package/ios/Frameworks/CardinalMobile.xcframework/ios-arm64/CardinalMobile.framework/CCStoryBoard.storyboardc/VRf-0F-2mw-view-i8m-N3-HYF.nib +0 -0
- package/ios/Frameworks/CardinalMobile.xcframework/ios-arm64/CardinalMobile.framework/CardinalMobile +0 -0
- package/ios/Frameworks/CardinalMobile.xcframework/ios-arm64/CardinalMobile.framework/Headers/CardinalSessionConfiguration.h +14 -0
- package/ios/Frameworks/CardinalMobile.xcframework/ios-arm64/CardinalMobile.framework/Info.plist +0 -0
- package/ios/Frameworks/CardinalMobile.xcframework/ios-arm64/CardinalMobile.framework/Modules/module.modulemap +1 -1
- package/ios/Frameworks/CardinalMobile.xcframework/ios-arm64/CardinalMobile.framework/MultiSelectView.nib +0 -0
- package/ios/Frameworks/CardinalMobile.xcframework/ios-arm64/CardinalMobile.framework/OTPView.nib +0 -0
- package/ios/Frameworks/CardinalMobile.xcframework/ios-arm64/CardinalMobile.framework/PrivacyInfo.xcprivacy +68 -0
- package/ios/Frameworks/CardinalMobile.xcframework/ios-arm64/CardinalMobile.framework/SingleSelectView.nib +0 -0
- package/ios/Frameworks/CardinalMobile.xcframework/ios-arm64_x86_64-simulator/CardinalMobile.framework/Assets.car +0 -0
- package/ios/Frameworks/CardinalMobile.xcframework/ios-arm64_x86_64-simulator/CardinalMobile.framework/CCStoryBoard.storyboardc/DIH-hs-KJy-view-kOh-XJ-af6.nib +0 -0
- package/ios/Frameworks/CardinalMobile.xcframework/ios-arm64_x86_64-simulator/CardinalMobile.framework/CCStoryBoard.storyboardc/UINavigationController-SPZ-eu-YwW.nib +0 -0
- package/ios/Frameworks/CardinalMobile.xcframework/ios-arm64_x86_64-simulator/CardinalMobile.framework/CCStoryBoard.storyboardc/VRf-0F-2mw-view-i8m-N3-HYF.nib +0 -0
- package/ios/Frameworks/CardinalMobile.xcframework/ios-arm64_x86_64-simulator/CardinalMobile.framework/CardinalMobile +0 -0
- package/ios/Frameworks/CardinalMobile.xcframework/ios-arm64_x86_64-simulator/CardinalMobile.framework/Headers/CardinalSessionConfiguration.h +14 -0
- package/ios/Frameworks/CardinalMobile.xcframework/ios-arm64_x86_64-simulator/CardinalMobile.framework/Info.plist +0 -0
- package/ios/Frameworks/CardinalMobile.xcframework/ios-arm64_x86_64-simulator/CardinalMobile.framework/Modules/module.modulemap +1 -1
- package/ios/Frameworks/CardinalMobile.xcframework/ios-arm64_x86_64-simulator/CardinalMobile.framework/MultiSelectView.nib +0 -0
- package/ios/Frameworks/CardinalMobile.xcframework/ios-arm64_x86_64-simulator/CardinalMobile.framework/OTPView.nib +0 -0
- package/ios/Frameworks/CardinalMobile.xcframework/ios-arm64_x86_64-simulator/CardinalMobile.framework/PrivacyInfo.xcprivacy +68 -0
- package/ios/Frameworks/CardinalMobile.xcframework/ios-arm64_x86_64-simulator/CardinalMobile.framework/SingleSelectView.nib +0 -0
- package/ios/Frameworks/CardinalMobile.xcframework/ios-arm64_x86_64-simulator/CardinalMobile.framework/_CodeSignature/CodeResources +39 -308
- package/ios/Frameworks/PixelPaySDK.podspec +2 -2
- package/ios/Frameworks/PixelPaySDK.xcframework/Info.plist +4 -0
- package/ios/Frameworks/PixelPaySDK.xcframework/ios-arm64/PixelPaySDK.framework/Headers/PixelPaySDK-Swift.h +25 -4
- package/ios/Frameworks/PixelPaySDK.xcframework/ios-arm64/PixelPaySDK.framework/Info.plist +0 -0
- package/ios/Frameworks/PixelPaySDK.xcframework/ios-arm64/PixelPaySDK.framework/Modules/PixelPaySDK.swiftmodule/arm64-apple-ios.abi.json +4411 -15216
- package/ios/Frameworks/PixelPaySDK.xcframework/ios-arm64/PixelPaySDK.framework/Modules/PixelPaySDK.swiftmodule/arm64-apple-ios.private.swiftinterface +26 -23
- package/ios/Frameworks/PixelPaySDK.xcframework/ios-arm64/PixelPaySDK.framework/Modules/PixelPaySDK.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/ios/Frameworks/PixelPaySDK.xcframework/ios-arm64/PixelPaySDK.framework/Modules/PixelPaySDK.swiftmodule/arm64-apple-ios.swiftinterface +26 -23
- package/ios/Frameworks/PixelPaySDK.xcframework/ios-arm64/PixelPaySDK.framework/PixelPaySDK +0 -0
- package/ios/Frameworks/PixelPaySDK.xcframework/ios-arm64/PixelPaySDK.framework/_CodeSignature/CodeResources +13 -13
- package/ios/Frameworks/PixelPaySDK.xcframework/ios-arm64_x86_64-simulator/PixelPaySDK.framework/Headers/PixelPaySDK-Swift.h +50 -8
- package/ios/Frameworks/PixelPaySDK.xcframework/ios-arm64_x86_64-simulator/PixelPaySDK.framework/Info.plist +0 -0
- package/ios/Frameworks/PixelPaySDK.xcframework/ios-arm64_x86_64-simulator/PixelPaySDK.framework/Modules/PixelPaySDK.swiftmodule/arm64-apple-ios-simulator.abi.json +4411 -15216
- package/ios/Frameworks/PixelPaySDK.xcframework/ios-arm64_x86_64-simulator/PixelPaySDK.framework/Modules/PixelPaySDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +26 -23
- package/ios/Frameworks/PixelPaySDK.xcframework/ios-arm64_x86_64-simulator/PixelPaySDK.framework/Modules/PixelPaySDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/Frameworks/PixelPaySDK.xcframework/ios-arm64_x86_64-simulator/PixelPaySDK.framework/Modules/PixelPaySDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface +26 -23
- package/ios/Frameworks/PixelPaySDK.xcframework/ios-arm64_x86_64-simulator/PixelPaySDK.framework/Modules/PixelPaySDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +4411 -15216
- package/ios/Frameworks/PixelPaySDK.xcframework/ios-arm64_x86_64-simulator/PixelPaySDK.framework/Modules/PixelPaySDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +26 -23
- package/ios/Frameworks/PixelPaySDK.xcframework/ios-arm64_x86_64-simulator/PixelPaySDK.framework/Modules/PixelPaySDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/Frameworks/PixelPaySDK.xcframework/ios-arm64_x86_64-simulator/PixelPaySDK.framework/Modules/PixelPaySDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +26 -23
- package/ios/Frameworks/PixelPaySDK.xcframework/ios-arm64_x86_64-simulator/PixelPaySDK.framework/PixelPaySDK +0 -0
- package/ios/Frameworks/PixelPaySDK.xcframework/ios-arm64_x86_64-simulator/PixelPaySDK.framework/_CodeSignature/CodeResources +23 -23
- package/ios/Frameworks/README.md +1 -1
- package/package.json +5 -5
- package/ios/Frameworks/CardinalMobile.xcframework/ios-arm64/CardinalMobile.framework/CCStoryBoard.storyboardc/DIH-hs-KJy-view-kOh-XJ-af6.nib/objects-11.0+.nib +0 -0
- package/ios/Frameworks/CardinalMobile.xcframework/ios-arm64/CardinalMobile.framework/CCStoryBoard.storyboardc/DIH-hs-KJy-view-kOh-XJ-af6.nib/runtime.nib +0 -0
- package/ios/Frameworks/CardinalMobile.xcframework/ios-arm64/CardinalMobile.framework/CCStoryBoard.storyboardc/UINavigationController-SPZ-eu-YwW.nib/objects-11.0+.nib +0 -0
- package/ios/Frameworks/CardinalMobile.xcframework/ios-arm64/CardinalMobile.framework/CCStoryBoard.storyboardc/UINavigationController-SPZ-eu-YwW.nib/runtime.nib +0 -0
- package/ios/Frameworks/CardinalMobile.xcframework/ios-arm64/CardinalMobile.framework/CCStoryBoard.storyboardc/VRf-0F-2mw-view-i8m-N3-HYF.nib/objects-11.0+.nib +0 -0
- package/ios/Frameworks/CardinalMobile.xcframework/ios-arm64/CardinalMobile.framework/CCStoryBoard.storyboardc/VRf-0F-2mw-view-i8m-N3-HYF.nib/runtime.nib +0 -0
- package/ios/Frameworks/CardinalMobile.xcframework/ios-arm64/CardinalMobile.framework/MultiSelectView.nib/objects-11.0+.nib +0 -0
- package/ios/Frameworks/CardinalMobile.xcframework/ios-arm64/CardinalMobile.framework/MultiSelectView.nib/runtime.nib +0 -0
- package/ios/Frameworks/CardinalMobile.xcframework/ios-arm64/CardinalMobile.framework/OTPView.nib/objects-11.0+.nib +0 -0
- package/ios/Frameworks/CardinalMobile.xcframework/ios-arm64/CardinalMobile.framework/OTPView.nib/runtime.nib +0 -0
- package/ios/Frameworks/CardinalMobile.xcframework/ios-arm64/CardinalMobile.framework/SingleSelectView.nib/objects-11.0+.nib +0 -0
- package/ios/Frameworks/CardinalMobile.xcframework/ios-arm64/CardinalMobile.framework/SingleSelectView.nib/runtime.nib +0 -0
- package/ios/Frameworks/CardinalMobile.xcframework/ios-arm64_x86_64-simulator/CardinalMobile.framework/CCStoryBoard.storyboardc/CCHtmlViewController.nib/objects-11.0+.nib +0 -0
- package/ios/Frameworks/CardinalMobile.xcframework/ios-arm64_x86_64-simulator/CardinalMobile.framework/CCStoryBoard.storyboardc/CCHtmlViewController.nib/runtime.nib +0 -0
- package/ios/Frameworks/CardinalMobile.xcframework/ios-arm64_x86_64-simulator/CardinalMobile.framework/CCStoryBoard.storyboardc/CCViewController.nib/objects-11.0+.nib +0 -0
- package/ios/Frameworks/CardinalMobile.xcframework/ios-arm64_x86_64-simulator/CardinalMobile.framework/CCStoryBoard.storyboardc/CCViewController.nib/runtime.nib +0 -0
- package/ios/Frameworks/CardinalMobile.xcframework/ios-arm64_x86_64-simulator/CardinalMobile.framework/CCStoryBoard.storyboardc/DIH-hs-KJy-view-kOh-XJ-af6.nib/objects-11.0+.nib +0 -0
- package/ios/Frameworks/CardinalMobile.xcframework/ios-arm64_x86_64-simulator/CardinalMobile.framework/CCStoryBoard.storyboardc/DIH-hs-KJy-view-kOh-XJ-af6.nib/runtime.nib +0 -0
- package/ios/Frameworks/CardinalMobile.xcframework/ios-arm64_x86_64-simulator/CardinalMobile.framework/CCStoryBoard.storyboardc/UINavigationController-SPZ-eu-YwW.nib/objects-11.0+.nib +0 -0
- package/ios/Frameworks/CardinalMobile.xcframework/ios-arm64_x86_64-simulator/CardinalMobile.framework/CCStoryBoard.storyboardc/UINavigationController-SPZ-eu-YwW.nib/runtime.nib +0 -0
- package/ios/Frameworks/CardinalMobile.xcframework/ios-arm64_x86_64-simulator/CardinalMobile.framework/CCStoryBoard.storyboardc/VRf-0F-2mw-view-i8m-N3-HYF.nib/objects-11.0+.nib +0 -0
- package/ios/Frameworks/CardinalMobile.xcframework/ios-arm64_x86_64-simulator/CardinalMobile.framework/CCStoryBoard.storyboardc/VRf-0F-2mw-view-i8m-N3-HYF.nib/runtime.nib +0 -0
- package/ios/Frameworks/CardinalMobile.xcframework/ios-arm64_x86_64-simulator/CardinalMobile.framework/MultiSelectView.nib/objects-11.0+.nib +0 -0
- package/ios/Frameworks/CardinalMobile.xcframework/ios-arm64_x86_64-simulator/CardinalMobile.framework/MultiSelectView.nib/runtime.nib +0 -0
- package/ios/Frameworks/CardinalMobile.xcframework/ios-arm64_x86_64-simulator/CardinalMobile.framework/OTPView.nib/objects-11.0+.nib +0 -0
- package/ios/Frameworks/CardinalMobile.xcframework/ios-arm64_x86_64-simulator/CardinalMobile.framework/OTPView.nib/runtime.nib +0 -0
- package/ios/Frameworks/CardinalMobile.xcframework/ios-arm64_x86_64-simulator/CardinalMobile.framework/SingleSelectView.nib/objects-11.0+.nib +0 -0
- package/ios/Frameworks/CardinalMobile.xcframework/ios-arm64_x86_64-simulator/CardinalMobile.framework/SingleSelectView.nib/runtime.nib +0 -0
- /package/ios/Frameworks/CardinalMobile.xcframework/ios-arm64/CardinalMobile.framework/CCStoryBoard.storyboardc/{CCHtmlViewController.nib/objects-11.0+.nib → CCHtmlViewController.nib} +0 -0
- /package/ios/Frameworks/CardinalMobile.xcframework/ios-arm64/CardinalMobile.framework/CCStoryBoard.storyboardc/{CCViewController.nib/objects-11.0+.nib → CCViewController.nib} +0 -0
- /package/ios/Frameworks/CardinalMobile.xcframework/{ios-arm64/CardinalMobile.framework/CCStoryBoard.storyboardc/CCHtmlViewController.nib/runtime.nib → ios-arm64_x86_64-simulator/CardinalMobile.framework/CCStoryBoard.storyboardc/CCHtmlViewController.nib} +0 -0
- /package/ios/Frameworks/CardinalMobile.xcframework/{ios-arm64/CardinalMobile.framework/CCStoryBoard.storyboardc/CCViewController.nib/runtime.nib → ios-arm64_x86_64-simulator/CardinalMobile.framework/CCStoryBoard.storyboardc/CCViewController.nib} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -5,9 +5,18 @@ 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.0.
|
|
8
|
+
## [v2.0.11] - 2025-10-28
|
|
9
9
|
### Added
|
|
10
|
-
-
|
|
10
|
+
- Campos para configuraciones de transaccion en aplicación ejemplo
|
|
11
|
+
- Tokenización en transacciones normales y autorizadas
|
|
12
|
+
### Changed
|
|
13
|
+
- Se actualizó el SDK de Android a v2.2.9
|
|
14
|
+
- Se actualizó el SDK de Swift a v2.1.8
|
|
15
|
+
- Se actualizan dependencias de capacitor 3 a 7
|
|
16
|
+
|
|
17
|
+
## [v2.0.10] - 2024-08-02
|
|
18
|
+
### Added
|
|
19
|
+
- Se corrigen dependencia de capacitor ^3.
|
|
11
20
|
|
|
12
21
|
## [v2.0.9] - 2024-04-10
|
|
13
22
|
### Fixed
|
package/android/build.gradle
CHANGED
|
@@ -7,11 +7,11 @@ ext {
|
|
|
7
7
|
|
|
8
8
|
buildscript {
|
|
9
9
|
repositories {
|
|
10
|
+
mavenCentral()
|
|
10
11
|
google()
|
|
11
|
-
jcenter()
|
|
12
12
|
}
|
|
13
13
|
dependencies {
|
|
14
|
-
classpath 'com.android.tools.build:gradle:
|
|
14
|
+
classpath 'com.android.tools.build:gradle:8.7.3'
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
|
|
@@ -19,10 +19,10 @@ apply plugin: 'com.android.library'
|
|
|
19
19
|
|
|
20
20
|
android {
|
|
21
21
|
namespace "com.pixel.plugins.capacitor"
|
|
22
|
-
compileSdkVersion project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion :
|
|
22
|
+
compileSdkVersion project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 31
|
|
23
23
|
defaultConfig {
|
|
24
24
|
minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 21
|
|
25
|
-
targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion :
|
|
25
|
+
targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 33
|
|
26
26
|
versionCode 1
|
|
27
27
|
versionName "1.0"
|
|
28
28
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
@@ -37,22 +37,20 @@ android {
|
|
|
37
37
|
abortOnError false
|
|
38
38
|
}
|
|
39
39
|
compileOptions {
|
|
40
|
-
sourceCompatibility JavaVersion.
|
|
41
|
-
targetCompatibility JavaVersion.
|
|
40
|
+
sourceCompatibility JavaVersion.VERSION_17
|
|
41
|
+
targetCompatibility JavaVersion.VERSION_17
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
repositories {
|
|
46
46
|
google()
|
|
47
47
|
mavenCentral()
|
|
48
|
-
jcenter()
|
|
49
48
|
}
|
|
50
49
|
|
|
51
50
|
rootProject.allprojects {
|
|
52
51
|
repositories {
|
|
53
52
|
google()
|
|
54
53
|
mavenCentral()
|
|
55
|
-
jcenter()
|
|
56
54
|
maven { url 'https://jitpack.io' }
|
|
57
55
|
}
|
|
58
56
|
}
|
|
@@ -61,7 +59,7 @@ dependencies {
|
|
|
61
59
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
62
60
|
implementation project(':capacitor-android')
|
|
63
61
|
implementation "androidx.appcompat:appcompat:$androidxAppCompatVersion"
|
|
64
|
-
implementation 'org.bitbucket.pixelpay:sdk-android:
|
|
62
|
+
implementation 'org.bitbucket.pixelpay:sdk-android:v2.2.9'
|
|
65
63
|
testImplementation "junit:junit:$junitVersion"
|
|
66
64
|
androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion"
|
|
67
65
|
androidTestImplementation "androidx.test.espresso:espresso-core:$androidxEspressoCoreVersion"
|
|
@@ -6,17 +6,19 @@ import com.getcapacitor.PluginCall;
|
|
|
6
6
|
import com.getcapacitor.PluginMethod;
|
|
7
7
|
import com.getcapacitor.annotation.CapacitorPlugin;
|
|
8
8
|
|
|
9
|
-
import com.pixel.sdk.base.Helpers;
|
|
10
|
-
import com.pixel.sdk.base.Response;
|
|
9
|
+
import com.pixel.sdk.mobile.base.Helpers;
|
|
10
|
+
import com.pixel.sdk.mobile.base.Response;
|
|
11
11
|
import com.pixel.sdk.mobile.services.Tokenization;
|
|
12
12
|
import com.pixel.sdk.mobile.services.Transaction;
|
|
13
|
-
import com.pixel.sdk.models.Settings;
|
|
14
|
-
import com.pixel.sdk.requests.AuthTransaction;
|
|
15
|
-
import com.pixel.sdk.requests.CaptureTransaction;
|
|
16
|
-
import com.pixel.sdk.requests.CardTokenization;
|
|
17
|
-
import com.pixel.sdk.requests.SaleTransaction;
|
|
18
|
-
import com.pixel.sdk.requests.StatusTransaction;
|
|
19
|
-
import com.pixel.sdk.requests.VoidTransaction;
|
|
13
|
+
import com.pixel.sdk.mobile.models.Settings;
|
|
14
|
+
import com.pixel.sdk.mobile.requests.AuthTransaction;
|
|
15
|
+
import com.pixel.sdk.mobile.requests.CaptureTransaction;
|
|
16
|
+
import com.pixel.sdk.mobile.requests.CardTokenization;
|
|
17
|
+
import com.pixel.sdk.mobile.requests.SaleTransaction;
|
|
18
|
+
import com.pixel.sdk.mobile.requests.StatusTransaction;
|
|
19
|
+
import com.pixel.sdk.mobile.requests.VoidTransaction;
|
|
20
|
+
import com.pixel.sdk.mobile.exceptions.InvalidTransactionTypeException;
|
|
21
|
+
import com.pixel.sdk.mobile.exceptions.RunningTransactionException;
|
|
20
22
|
|
|
21
23
|
@CapacitorPlugin(name = "PixelPaySDK")
|
|
22
24
|
public class PixelPaySDKPlugin extends Plugin {
|
|
@@ -52,20 +54,28 @@ public class PixelPaySDKPlugin extends Plugin {
|
|
|
52
54
|
|
|
53
55
|
@PluginMethod
|
|
54
56
|
public void transactionDoSale(PluginCall call) {
|
|
55
|
-
|
|
57
|
+
try {
|
|
58
|
+
this.getTransactionService(call.getString("settings"))
|
|
56
59
|
.doSale(Helpers.jsonToObject(call.getString("request"), SaleTransaction.class))
|
|
57
60
|
.then(response -> this.parseSuccess(call, response))
|
|
58
61
|
.thenCatch(err -> this.parseError(call, err))
|
|
59
62
|
.start();
|
|
63
|
+
} catch(InvalidTransactionTypeException | RunningTransactionException e) {
|
|
64
|
+
call.reject("INVALID_TRANSACTION", e.getMessage());
|
|
65
|
+
}
|
|
60
66
|
}
|
|
61
67
|
|
|
62
68
|
@PluginMethod
|
|
63
69
|
public void transactionDoAuth(PluginCall call) {
|
|
64
|
-
|
|
70
|
+
try {
|
|
71
|
+
this.getTransactionService(call.getString("settings"))
|
|
65
72
|
.doAuth(Helpers.jsonToObject(call.getString("request"), AuthTransaction.class))
|
|
66
73
|
.then(response -> this.parseSuccess(call, response))
|
|
67
74
|
.thenCatch(err -> this.parseError(call, err))
|
|
68
75
|
.start();
|
|
76
|
+
} catch (InvalidTransactionTypeException | RunningTransactionException e) {
|
|
77
|
+
call.reject("INVALID_TRANSACTION", e.getMessage());
|
|
78
|
+
}
|
|
69
79
|
}
|
|
70
80
|
|
|
71
81
|
@PluginMethod
|
package/dist/esm/index.js
CHANGED
|
@@ -19,7 +19,7 @@ class ServiceBehaviour {
|
|
|
19
19
|
constructor(settings) {
|
|
20
20
|
this._settings = settings;
|
|
21
21
|
this._settings.sdk = 'sdk-ionic';
|
|
22
|
-
this._settings.sdk_version = '2.0.
|
|
22
|
+
this._settings.sdk_version = '2.0.11';
|
|
23
23
|
}
|
|
24
24
|
getSettings() {
|
|
25
25
|
return JSON.stringify(this._settings);
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,QAAQ,MAAM,sCAAsC,CAAC;AAQ5D,OAAO,aAAa,MAAM,gDAAgD,CAAC;AAC3E,OAAO,eAAe,MAAM,kDAAkD,CAAC;AAC/E,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B,CAAC;YAChE,QAAQ,EAAE,IAAI,CAAC,WAAW,EAAE;YAC5B,KAAK,EAAE,KAAK;YACZ,OAAO,EAAE,IAAI,CAAC,MAAM,EAAE;SACtB,CAAC,CAAC,CAAC;IACL,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,QAAQ,CAAC,KAAa;QAC3B,OAAO,IAAI,CAAC,WAAW,CAAC,MAAM,WAAW,CAAC,oBAAoB,CAAC;YAC9D,QAAQ,EAAE,IAAI,CAAC,WAAW,EAAE;YAC5B,KAAK,EAAE,KAAK;SACZ,CAAC,CAAC,CAAC;IACL,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,SAAS,CAAC,MAAgB;QAC/B,OAAO,IAAI,CAAC,WAAW,CAAC,MAAM,WAAW,CAAC,qBAAqB,CAAC;YAC/D,QAAQ,EAAE,IAAI,CAAC,WAAW,EAAE;YAC5B,MAAM,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC;SACxB,CAAC,CAAC,CAAC;IACL,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,UAAU,CAAC,KAAa;QAC7B,OAAO,IAAI,CAAC,WAAW,CAAC,MAAM,WAAW,CAAC,sBAAsB,CAAC;YAChE,QAAQ,EAAE,IAAI,CAAC,WAAW,EAAE;YAC5B,KAAK,EAAE,KAAK;SACZ,CAAC,CAAC,CAAC;IACL,CAAC;CACD;AAED,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,CAAC","sourcesContent":["import { registerPlugin } from '@capacitor/core';\nimport Response from '@pixelpay/sdk-core/lib/base/Response';\nimport type Settings from '@pixelpay/sdk-core/lib/models/Settings';\nimport type AuthTransaction from '@pixelpay/sdk-core/lib/requests/AuthTransaction';\nimport type CaptureTransaction from '@pixelpay/sdk-core/lib/requests/CaptureTransaction';\nimport type CardTokenization from '@pixelpay/sdk-core/lib/requests/CardTokenization';\nimport type SaleTransaction from '@pixelpay/sdk-core/lib/requests/SaleTransaction';\nimport type StatusTransaction from '@pixelpay/sdk-core/lib/requests/StatusTransaction';\nimport type VoidTransaction from '@pixelpay/sdk-core/lib/requests/VoidTransaction';\nimport ErrorResponse from '@pixelpay/sdk-core/lib/responses/ErrorResponse';\nimport FailureResponse from '@pixelpay/sdk-core/lib/responses/FailureResponse';\nimport InputErrorResponse from '@pixelpay/sdk-core/lib/responses/InputErrorResponse';\nimport NetworkFailureResponse from '@pixelpay/sdk-core/lib/responses/NetworkFailureResponse';\nimport NoAccessResponse from '@pixelpay/sdk-core/lib/responses/NoAccessResponse';\nimport NotFoundResponse from '@pixelpay/sdk-core/lib/responses/NotFoundResponse';\nimport PayloadResponse from '@pixelpay/sdk-core/lib/responses/PayloadResponse';\nimport PaymentDeclinedResponse from '@pixelpay/sdk-core/lib/responses/PaymentDeclinedResponse';\nimport PreconditionalResponse from '@pixelpay/sdk-core/lib/responses/PreconditionalResponse';\nimport SuccessResponse from '@pixelpay/sdk-core/lib/responses/SuccessResponse';\nimport TimeoutResponse from '@pixelpay/sdk-core/lib/responses/TimeoutResponse';\nimport BaseTransaction from '@pixelpay/sdk-core/lib/services/Transaction';\n\nimport type { PixelPaySDKPlugin } from './definitions';\n\nconst PixelPaySDK = registerPlugin<PixelPaySDKPlugin>('PixelPaySDK', {\n\tweb: () => import('./web').then(m => new m.PixelPaySDKWeb()),\n});\n\nclass ServiceBehaviour {\n\t_settings: Settings;\n\n\tconstructor(settings: Settings) {\n\t\tthis._settings = settings;\n\t\tthis._settings.sdk = 'sdk-ionic';\n\t\tthis._settings.sdk_version = '2.0.9';\n\t}\n\n\tgetSettings(): string {\n\t\treturn JSON.stringify(this._settings);\n\t}\n\n\tparseResult(result: { status: number, response: string }): Response {\n\t\tlet response = new Response();\n\t\tconst data = JSON.parse(result.response);\n\n\t\tswitch (result.status) {\n\t\t\tcase 200:\n\t\t\t\tresponse = new SuccessResponse();\n\t\t\t\tbreak;\n\t\t\tcase 202:\n\t\t\t\tresponse = new PayloadResponse();\n\t\t\t\tbreak;\n\t\t\tcase 400:\n\t\t\t\tresponse = new ErrorResponse();\n\t\t\t\tbreak;\n\t\t\tcase 401:\n\t\t\tcase 403:\n\t\t\t\tresponse = new NoAccessResponse();\n\t\t\t\tbreak;\n\t\t\tcase 402:\n\t\t\t\tresponse = new PaymentDeclinedResponse();\n\t\t\t\tbreak;\n\t\t\tcase 404:\n\t\t\tcase 405:\n\t\t\tcase 406:\n\t\t\t\tresponse = new NotFoundResponse();\n\t\t\t\tbreak;\n\t\t\tcase 408:\n\t\t\t\tresponse = new TimeoutResponse();\n\t\t\t\tbreak;\n\t\t\tcase 412:\n\t\t\tcase 418:\n\t\t\t\tresponse = new PreconditionalResponse();\n\t\t\t\tbreak;\n\t\t\tcase 422:\n\t\t\t\tresponse = new InputErrorResponse();\n\t\t\t\tbreak;\n\t\t\tcase 500:\n\t\t\t\tresponse = new FailureResponse();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tif (result.status > 500) {\n\t\t\t\t\tresponse = new NetworkFailureResponse();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t}\n\n\t\tresponse.setStatus(result.status);\n\t\tresponse.action = (data === null || data === void 0 ? void 0 : data.action) || null;\n\t\tresponse.success = (data === null || data === void 0 ? void 0 : data.success) || false;\n\t\tresponse.message = (data === null || data === void 0 ? void 0 : data.message) || null;\n\t\tresponse.data = (data === null || data === void 0 ? void 0 : data.data) || null;\n\t\tresponse.errors = (data === null || data === void 0 ? void 0 : data.errors) || null;\n\n\t\treturn response;\n\t}\n}\n\nclass Transaction extends ServiceBehaviour {\n\t/**\n\t * Send and proccesing SALE transaction\n\t *\n\t * @param transaction\n\t * @return\n\t * @throws InvalidCredentialsException\n\t */\n\tasync doSale(transaction: SaleTransaction): Promise<Response> {\n\t\treturn this.parseResult(await PixelPaySDK.transactionDoSale({\n\t\t\tsettings: this.getSettings(),\n\t\t\trequest: transaction.toJson()\n\t\t}));\n\t}\n\n\t/**\n\t * Send and proccesing AUTH transaction\n\t *\n\t * @param transaction\n\t * @return\n\t * @throws InvalidCredentialsException\n\t */\n\tasync doAuth(transaction: AuthTransaction): Promise<Response> {\n\t\treturn this.parseResult(await PixelPaySDK.transactionDoAuth({\n\t\t\tsettings: this.getSettings(),\n\t\t\trequest: transaction.toJson()\n\t\t}));\n\t}\n\n\t/**\n\t * Send and proccesing CAPTURE transaction\n\t *\n\t * @param transaction\n\t * @return\n\t * @throws InvalidCredentialsException\n\t */\n\tasync doCapture(transaction: CaptureTransaction): Promise<Response> {\n\t\treturn this.parseResult(await PixelPaySDK.transactionDoCapture({\n\t\t\tsettings: this.getSettings(),\n\t\t\trequest: transaction.toJson()\n\t\t}));\n\t}\n\n\t/**\n\t * Send and proccesing VOID transaction\n\t *\n\t * @param transaction\n\t * @return\n\t * @throws InvalidCredentialsException\n\t */\n\tasync doVoid(transaction: VoidTransaction): Promise<Response> {\n\t\treturn this.parseResult(await PixelPaySDK.transactionDoVoid({\n\t\t\tsettings: this.getSettings(),\n\t\t\trequest: transaction.toJson()\n\t\t}));\n\t}\n\n\t/**\n\t * Send and proccesing SALE transaction\n\t *\n\t * @param transaction\n\t * @return\n\t * @throws InvalidCredentialsException\n\t */\n\tasync getStatus(transaction: StatusTransaction): Promise<Response> {\n\t\treturn this.parseResult(await PixelPaySDK.transactionGetStatus({\n\t\t\tsettings: this.getSettings(),\n\t\t\trequest: transaction.toJson()\n\t\t}));\n\t}\n\n\t/**\n\t * Verify a payment hash and returns true if payment response is not modified\n\t *\n\t * @param hash\n\t * @param order_id\n\t * @param secret\n\t * @return\n\t */\n\tverifyPaymentHash(hash: string, order_id: string, secret: string): boolean {\n\t\treturn (new BaseTransaction(this._settings)).verifyPaymentHash(hash, order_id, secret);\n\t}\n}\n\nclass Tokenization extends ServiceBehaviour {\n\t/**\n\t * Vault credit/debit card and obtain a token card identifier (T-* format)\n\t *\n\t * @param card\n\t * @return\n\t * @throws InvalidCredentialsException\n\t */\n\tasync vaultCard(card: CardTokenization): Promise<Response> {\n\t\treturn this.parseResult(await PixelPaySDK.tokenizationVaultCard({\n\t\t\tsettings: this.getSettings(),\n\t\t\trequest: card.toJson()\n\t\t}));\n\t}\n\n\t/**\n\t * Update credit/debit card by token card identifier\n\t *\n\t * @param token\n\t * @param card\n\t * @return\n\t * @throws InvalidCredentialsException\n\t */\n\tasync updateCard(token: string, card: CardTokenization): Promise<Response> {\n\t\treturn this.parseResult(await PixelPaySDK.tokenizationUpdateCard({\n\t\t\tsettings: this.getSettings(),\n\t\t\ttoken: token,\n\t\t\trequest: card.toJson()\n\t\t}));\n\t}\n\n\t/**\n\t * Show credit/debit card metadata by token card identifier\n\t *\n\t * @param token\n\t * @return\n\t * @throws InvalidCredentialsException\n\t */\n\tasync showCard(token: string): Promise<Response> {\n\t\treturn this.parseResult(await PixelPaySDK.tokenizationShowCard({\n\t\t\tsettings: this.getSettings(),\n\t\t\ttoken: token\n\t\t}));\n\t}\n\n\t/**\n\t * Show credit/debit card metadata by token card identifier\n\t *\n\t * @param token\n\t * @return\n\t * @throws InvalidCredentialsException\n\t */\n\tasync showCards(tokens: string[]): Promise<Response> {\n\t\treturn this.parseResult(await PixelPaySDK.tokenizationShowCards({\n\t\t\tsettings: this.getSettings(),\n\t\t\ttokens: tokens.join('|')\n\t\t}));\n\t}\n\n\t/**\n\t * Delete credit/debit card metadata by token card identifier\n\t *\n\t * @param token\n\t * @return\n\t * @throws InvalidCredentialsException\n\t */\n\tasync deleteCard(token: string): Promise<Response> {\n\t\treturn this.parseResult(await PixelPaySDK.tokenizationDeleteCard({\n\t\t\tsettings: this.getSettings(),\n\t\t\ttoken: token\n\t\t}));\n\t}\n}\n\nexport * from './definitions';\nexport { Transaction, Tokenization };\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,QAAQ,MAAM,sCAAsC,CAAC;AAQ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CAAC,KAAa,EAAE,IAAsB;QACrD,OAAO,IAAI,CAAC,WAAW,CAAC,MAAM,WAAW,CAAC,sBAAsB,CAAC;YAChE,QAAQ,EAAE,IAAI,CAAC,WAAW,EAAE;YAC5B,KAAK,EAAE,KAAK;YACZ,OAAO,EAAE,IAAI,CAAC,MAAM,EAAE;SACtB,CAAC,CAAC,CAAC;IACL,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,QAAQ,CAAC,KAAa;QAC3B,OAAO,IAAI,CAAC,WAAW,CAAC,MAAM,WAAW,CAAC,oBAAoB,CAAC;YAC9D,QAAQ,EAAE,IAAI,CAAC,WAAW,EAAE;YAC5B,KAAK,EAAE,KAAK;SACZ,CAAC,CAAC,CAAC;IACL,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,SAAS,CAAC,MAAgB;QAC/B,OAAO,IAAI,CAAC,WAAW,CAAC,MAAM,WAAW,CAAC,qBAAqB,CAAC;YAC/D,QAAQ,EAAE,IAAI,CAAC,WAAW,EAAE;YAC5B,MAAM,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC;SACxB,CAAC,CAAC,CAAC;IACL,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,UAAU,CAAC,KAAa;QAC7B,OAAO,IAAI,CAAC,WAAW,CAAC,MAAM,WAAW,CAAC,sBAAsB,CAAC;YAChE,QAAQ,EAAE,IAAI,CAAC,WAAW,EAAE;YAC5B,KAAK,EAAE,KAAK;SACZ,CAAC,CAAC,CAAC;IACL,CAAC;CACD;AAED,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,CAAC","sourcesContent":["import { registerPlugin } from '@capacitor/core';\nimport Response from '@pixelpay/sdk-core/lib/base/Response';\nimport type Settings from '@pixelpay/sdk-core/lib/models/Settings';\nimport type AuthTransaction from '@pixelpay/sdk-core/lib/requests/AuthTransaction';\nimport type CaptureTransaction from '@pixelpay/sdk-core/lib/requests/CaptureTransaction';\nimport type CardTokenization from '@pixelpay/sdk-core/lib/requests/CardTokenization';\nimport type SaleTransaction from '@pixelpay/sdk-core/lib/requests/SaleTransaction';\nimport type StatusTransaction from '@pixelpay/sdk-core/lib/requests/StatusTransaction';\nimport type VoidTransaction from '@pixelpay/sdk-core/lib/requests/VoidTransaction';\nimport ErrorResponse from '@pixelpay/sdk-core/lib/responses/ErrorResponse';\nimport FailureResponse from '@pixelpay/sdk-core/lib/responses/FailureResponse';\nimport InputErrorResponse from '@pixelpay/sdk-core/lib/responses/InputErrorResponse';\nimport NetworkFailureResponse from '@pixelpay/sdk-core/lib/responses/NetworkFailureResponse';\nimport NoAccessResponse from '@pixelpay/sdk-core/lib/responses/NoAccessResponse';\nimport NotFoundResponse from '@pixelpay/sdk-core/lib/responses/NotFoundResponse';\nimport PayloadResponse from '@pixelpay/sdk-core/lib/responses/PayloadResponse';\nimport PaymentDeclinedResponse from '@pixelpay/sdk-core/lib/responses/PaymentDeclinedResponse';\nimport PreconditionalResponse from '@pixelpay/sdk-core/lib/responses/PreconditionalResponse';\nimport SuccessResponse from '@pixelpay/sdk-core/lib/responses/SuccessResponse';\nimport TimeoutResponse from '@pixelpay/sdk-core/lib/responses/TimeoutResponse';\nimport BaseTransaction from '@pixelpay/sdk-core/lib/services/Transaction';\n\nimport type { PixelPaySDKPlugin } from './definitions';\n\nconst PixelPaySDK = registerPlugin<PixelPaySDKPlugin>('PixelPaySDK', {\n\tweb: () => import('./web').then(m => new m.PixelPaySDKWeb()),\n});\n\nclass ServiceBehaviour {\n\t_settings: Settings;\n\n\tconstructor(settings: Settings) {\n\t\tthis._settings = settings;\n\t\tthis._settings.sdk = 'sdk-ionic';\n\t\tthis._settings.sdk_version = '2.0.11';\n\t}\n\n\tgetSettings(): string {\n\t\treturn JSON.stringify(this._settings);\n\t}\n\n\tparseResult(result: { status: number, response: string }): Response {\n\t\tlet response = new Response();\n\t\tconst data = JSON.parse(result.response);\n\n\t\tswitch (result.status) {\n\t\t\tcase 200:\n\t\t\t\tresponse = new SuccessResponse();\n\t\t\t\tbreak;\n\t\t\tcase 202:\n\t\t\t\tresponse = new PayloadResponse();\n\t\t\t\tbreak;\n\t\t\tcase 400:\n\t\t\t\tresponse = new ErrorResponse();\n\t\t\t\tbreak;\n\t\t\tcase 401:\n\t\t\tcase 403:\n\t\t\t\tresponse = new NoAccessResponse();\n\t\t\t\tbreak;\n\t\t\tcase 402:\n\t\t\t\tresponse = new PaymentDeclinedResponse();\n\t\t\t\tbreak;\n\t\t\tcase 404:\n\t\t\tcase 405:\n\t\t\tcase 406:\n\t\t\t\tresponse = new NotFoundResponse();\n\t\t\t\tbreak;\n\t\t\tcase 408:\n\t\t\t\tresponse = new TimeoutResponse();\n\t\t\t\tbreak;\n\t\t\tcase 412:\n\t\t\tcase 418:\n\t\t\t\tresponse = new PreconditionalResponse();\n\t\t\t\tbreak;\n\t\t\tcase 422:\n\t\t\t\tresponse = new InputErrorResponse();\n\t\t\t\tbreak;\n\t\t\tcase 500:\n\t\t\t\tresponse = new FailureResponse();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tif (result.status > 500) {\n\t\t\t\t\tresponse = new NetworkFailureResponse();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t}\n\n\t\tresponse.setStatus(result.status);\n\t\tresponse.action = (data === null || data === void 0 ? void 0 : data.action) || null;\n\t\tresponse.success = (data === null || data === void 0 ? void 0 : data.success) || false;\n\t\tresponse.message = (data === null || data === void 0 ? void 0 : data.message) || null;\n\t\tresponse.data = (data === null || data === void 0 ? void 0 : data.data) || null;\n\t\tresponse.errors = (data === null || data === void 0 ? void 0 : data.errors) || null;\n\n\t\treturn response;\n\t}\n}\n\nclass Transaction extends ServiceBehaviour {\n\t/**\n\t * Send and proccesing SALE transaction\n\t *\n\t * @param transaction\n\t * @return\n\t * @throws InvalidCredentialsException\n\t */\n\tasync doSale(transaction: SaleTransaction): Promise<Response> {\n\t\treturn this.parseResult(await PixelPaySDK.transactionDoSale({\n\t\t\tsettings: this.getSettings(),\n\t\t\trequest: transaction.toJson()\n\t\t}));\n\t}\n\n\t/**\n\t * Send and proccesing AUTH transaction\n\t *\n\t * @param transaction\n\t * @return\n\t * @throws InvalidCredentialsException\n\t */\n\tasync doAuth(transaction: AuthTransaction): Promise<Response> {\n\t\treturn this.parseResult(await PixelPaySDK.transactionDoAuth({\n\t\t\tsettings: this.getSettings(),\n\t\t\trequest: transaction.toJson()\n\t\t}));\n\t}\n\n\t/**\n\t * Send and proccesing CAPTURE transaction\n\t *\n\t * @param transaction\n\t * @return\n\t * @throws InvalidCredentialsException\n\t */\n\tasync doCapture(transaction: CaptureTransaction): Promise<Response> {\n\t\treturn this.parseResult(await PixelPaySDK.transactionDoCapture({\n\t\t\tsettings: this.getSettings(),\n\t\t\trequest: transaction.toJson()\n\t\t}));\n\t}\n\n\t/**\n\t * Send and proccesing VOID transaction\n\t *\n\t * @param transaction\n\t * @return\n\t * @throws InvalidCredentialsException\n\t */\n\tasync doVoid(transaction: VoidTransaction): Promise<Response> {\n\t\treturn this.parseResult(await PixelPaySDK.transactionDoVoid({\n\t\t\tsettings: this.getSettings(),\n\t\t\trequest: transaction.toJson()\n\t\t}));\n\t}\n\n\t/**\n\t * Send and proccesing SALE transaction\n\t *\n\t * @param transaction\n\t * @return\n\t * @throws InvalidCredentialsException\n\t */\n\tasync getStatus(transaction: StatusTransaction): Promise<Response> {\n\t\treturn this.parseResult(await PixelPaySDK.transactionGetStatus({\n\t\t\tsettings: this.getSettings(),\n\t\t\trequest: transaction.toJson()\n\t\t}));\n\t}\n\n\t/**\n\t * Verify a payment hash and returns true if payment response is not modified\n\t *\n\t * @param hash\n\t * @param order_id\n\t * @param secret\n\t * @return\n\t */\n\tverifyPaymentHash(hash: string, order_id: string, secret: string): boolean {\n\t\treturn (new BaseTransaction(this._settings)).verifyPaymentHash(hash, order_id, secret);\n\t}\n}\n\nclass Tokenization extends ServiceBehaviour {\n\t/**\n\t * Vault credit/debit card and obtain a token card identifier (T-* format)\n\t *\n\t * @param card\n\t * @return\n\t * @throws InvalidCredentialsException\n\t */\n\tasync vaultCard(card: CardTokenization): Promise<Response> {\n\t\treturn this.parseResult(await PixelPaySDK.tokenizationVaultCard({\n\t\t\tsettings: this.getSettings(),\n\t\t\trequest: card.toJson()\n\t\t}));\n\t}\n\n\t/**\n\t * Update credit/debit card by token card identifier\n\t *\n\t * @param token\n\t * @param card\n\t * @return\n\t * @throws InvalidCredentialsException\n\t */\n\tasync updateCard(token: string, card: CardTokenization): Promise<Response> {\n\t\treturn this.parseResult(await PixelPaySDK.tokenizationUpdateCard({\n\t\t\tsettings: this.getSettings(),\n\t\t\ttoken: token,\n\t\t\trequest: card.toJson()\n\t\t}));\n\t}\n\n\t/**\n\t * Show credit/debit card metadata by token card identifier\n\t *\n\t * @param token\n\t * @return\n\t * @throws InvalidCredentialsException\n\t */\n\tasync showCard(token: string): Promise<Response> {\n\t\treturn this.parseResult(await PixelPaySDK.tokenizationShowCard({\n\t\t\tsettings: this.getSettings(),\n\t\t\ttoken: token\n\t\t}));\n\t}\n\n\t/**\n\t * Show credit/debit card metadata by token card identifier\n\t *\n\t * @param token\n\t * @return\n\t * @throws InvalidCredentialsException\n\t */\n\tasync showCards(tokens: string[]): Promise<Response> {\n\t\treturn this.parseResult(await PixelPaySDK.tokenizationShowCards({\n\t\t\tsettings: this.getSettings(),\n\t\t\ttokens: tokens.join('|')\n\t\t}));\n\t}\n\n\t/**\n\t * Delete credit/debit card metadata by token card identifier\n\t *\n\t * @param token\n\t * @return\n\t * @throws InvalidCredentialsException\n\t */\n\tasync deleteCard(token: string): Promise<Response> {\n\t\treturn this.parseResult(await PixelPaySDK.tokenizationDeleteCard({\n\t\t\tsettings: this.getSettings(),\n\t\t\ttoken: token\n\t\t}));\n\t}\n}\n\nexport * from './definitions';\nexport { Transaction, Tokenization };\n"]}
|
package/dist/plugin.cjs.js
CHANGED
|
@@ -56,7 +56,7 @@ class ServiceBehaviour {
|
|
|
56
56
|
constructor(settings) {
|
|
57
57
|
this._settings = settings;
|
|
58
58
|
this._settings.sdk = 'sdk-ionic';
|
|
59
|
-
this._settings.sdk_version = '2.0.
|
|
59
|
+
this._settings.sdk_version = '2.0.11';
|
|
60
60
|
}
|
|
61
61
|
getSettings() {
|
|
62
62
|
return JSON.stringify(this._settings);
|
package/dist/plugin.cjs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.cjs.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nimport Response from '@pixelpay/sdk-core/lib/base/Response';\nimport ErrorResponse from '@pixelpay/sdk-core/lib/responses/ErrorResponse';\nimport FailureResponse from '@pixelpay/sdk-core/lib/responses/FailureResponse';\nimport InputErrorResponse from '@pixelpay/sdk-core/lib/responses/InputErrorResponse';\nimport NetworkFailureResponse from '@pixelpay/sdk-core/lib/responses/NetworkFailureResponse';\nimport NoAccessResponse from '@pixelpay/sdk-core/lib/responses/NoAccessResponse';\nimport NotFoundResponse from '@pixelpay/sdk-core/lib/responses/NotFoundResponse';\nimport PayloadResponse from '@pixelpay/sdk-core/lib/responses/PayloadResponse';\nimport PaymentDeclinedResponse from '@pixelpay/sdk-core/lib/responses/PaymentDeclinedResponse';\nimport PreconditionalResponse from '@pixelpay/sdk-core/lib/responses/PreconditionalResponse';\nimport SuccessResponse from '@pixelpay/sdk-core/lib/responses/SuccessResponse';\nimport TimeoutResponse from '@pixelpay/sdk-core/lib/responses/TimeoutResponse';\nimport BaseTransaction from '@pixelpay/sdk-core/lib/services/Transaction';\nconst PixelPaySDK = registerPlugin('PixelPaySDK', {\n web: () => import('./web').then(m => new m.PixelPaySDKWeb()),\n});\nclass ServiceBehaviour {\n constructor(settings) {\n this._settings = settings;\n this._settings.sdk = 'sdk-ionic';\n this._settings.sdk_version = '2.0.9';\n }\n getSettings() {\n return JSON.stringify(this._settings);\n }\n parseResult(result) {\n let response = new Response();\n const data = JSON.parse(result.response);\n switch (result.status) {\n case 200:\n response = new SuccessResponse();\n break;\n case 202:\n response = new PayloadResponse();\n break;\n case 400:\n response = new ErrorResponse();\n break;\n case 401:\n case 403:\n response = new NoAccessResponse();\n break;\n case 402:\n response = new PaymentDeclinedResponse();\n break;\n case 404:\n case 405:\n case 406:\n response = new NotFoundResponse();\n break;\n case 408:\n response = new TimeoutResponse();\n break;\n case 412:\n case 418:\n response = new PreconditionalResponse();\n break;\n case 422:\n response = new InputErrorResponse();\n break;\n case 500:\n response = new FailureResponse();\n break;\n default:\n if (result.status > 500) {\n response = new NetworkFailureResponse();\n }\n break;\n }\n response.setStatus(result.status);\n response.action = (data === null || data === void 0 ? void 0 : data.action) || null;\n response.success = (data === null || data === void 0 ? void 0 : data.success) || false;\n response.message = (data === null || data === void 0 ? void 0 : data.message) || null;\n response.data = (data === null || data === void 0 ? void 0 : data.data) || null;\n response.errors = (data === null || data === void 0 ? void 0 : data.errors) || null;\n return response;\n }\n}\nclass Transaction extends ServiceBehaviour {\n /**\n * Send and proccesing SALE transaction\n *\n * @param transaction\n * @return\n * @throws InvalidCredentialsException\n */\n async doSale(transaction) {\n return this.parseResult(await PixelPaySDK.transactionDoSale({\n settings: this.getSettings(),\n request: transaction.toJson()\n }));\n }\n /**\n * Send and proccesing AUTH transaction\n *\n * @param transaction\n * @return\n * @throws InvalidCredentialsException\n */\n async doAuth(transaction) {\n return this.parseResult(await PixelPaySDK.transactionDoAuth({\n settings: this.getSettings(),\n request: transaction.toJson()\n }));\n }\n /**\n * Send and proccesing CAPTURE transaction\n *\n * @param transaction\n * @return\n * @throws InvalidCredentialsException\n */\n async doCapture(transaction) {\n return this.parseResult(await PixelPaySDK.transactionDoCapture({\n settings: this.getSettings(),\n request: transaction.toJson()\n }));\n }\n /**\n * Send and proccesing VOID transaction\n *\n * @param transaction\n * @return\n * @throws InvalidCredentialsException\n */\n async doVoid(transaction) {\n return this.parseResult(await PixelPaySDK.transactionDoVoid({\n settings: this.getSettings(),\n request: transaction.toJson()\n }));\n }\n /**\n * Send and proccesing SALE transaction\n *\n * @param transaction\n * @return\n * @throws InvalidCredentialsException\n */\n async getStatus(transaction) {\n return this.parseResult(await PixelPaySDK.transactionGetStatus({\n settings: this.getSettings(),\n request: transaction.toJson()\n }));\n }\n /**\n * Verify a payment hash and returns true if payment response is not modified\n *\n * @param hash\n * @param order_id\n * @param secret\n * @return\n */\n verifyPaymentHash(hash, order_id, secret) {\n return (new BaseTransaction(this._settings)).verifyPaymentHash(hash, order_id, secret);\n }\n}\nclass Tokenization extends ServiceBehaviour {\n /**\n * Vault credit/debit card and obtain a token card identifier (T-* format)\n *\n * @param card\n * @return\n * @throws InvalidCredentialsException\n */\n async vaultCard(card) {\n return this.parseResult(await PixelPaySDK.tokenizationVaultCard({\n settings: this.getSettings(),\n request: card.toJson()\n }));\n }\n /**\n * Update credit/debit card by token card identifier\n *\n * @param token\n * @param card\n * @return\n * @throws InvalidCredentialsException\n */\n async updateCard(token, card) {\n return this.parseResult(await PixelPaySDK.tokenizationUpdateCard({\n settings: this.getSettings(),\n token: token,\n request: card.toJson()\n }));\n }\n /**\n * Show credit/debit card metadata by token card identifier\n *\n * @param token\n * @return\n * @throws InvalidCredentialsException\n */\n async showCard(token) {\n return this.parseResult(await PixelPaySDK.tokenizationShowCard({\n settings: this.getSettings(),\n token: token\n }));\n }\n /**\n * Show credit/debit card metadata by token card identifier\n *\n * @param token\n * @return\n * @throws InvalidCredentialsException\n */\n async showCards(tokens) {\n return this.parseResult(await PixelPaySDK.tokenizationShowCards({\n settings: this.getSettings(),\n tokens: tokens.join('|')\n }));\n }\n /**\n * Delete credit/debit card metadata by token card identifier\n *\n * @param token\n * @return\n * @throws InvalidCredentialsException\n */\n async deleteCard(token) {\n return this.parseResult(await PixelPaySDK.tokenizationDeleteCard({\n settings: this.getSettings(),\n token: token\n }));\n }\n}\nexport * from './definitions';\nexport { Transaction, Tokenization };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nimport Settings from '@pixelpay/sdk-core/lib/models/Settings';\nimport AuthTransaction from '@pixelpay/sdk-core/lib/requests/AuthTransaction';\nimport CaptureTransaction from '@pixelpay/sdk-core/lib/requests/CaptureTransaction';\nimport CardTokenization from '@pixelpay/sdk-core/lib/requests/CardTokenization';\nimport SaleTransaction from '@pixelpay/sdk-core/lib/requests/SaleTransaction';\nimport StatusTransaction from '@pixelpay/sdk-core/lib/requests/StatusTransaction';\nimport VoidTransaction from '@pixelpay/sdk-core/lib/requests/VoidTransaction';\nimport Tokenization from '@pixelpay/sdk-core/lib/services/Tokenization';\nimport Transaction from '@pixelpay/sdk-core/lib/services/Transaction';\nexport class PixelPaySDKWeb extends WebPlugin {\n async transactionDoSale(options) {\n const settings = Object.assign(new Settings(), JSON.parse(options.settings));\n const request = Object.assign(new SaleTransaction(), JSON.parse(options.request));\n const service = new Transaction(settings);\n const response = await service.doSale(request);\n return {\n status: response.getStatus(),\n response: response.toJson(),\n };\n }\n async transactionDoAuth(options) {\n const settings = Object.assign(new Settings(), JSON.parse(options.settings));\n const request = Object.assign(new AuthTransaction(), JSON.parse(options.request));\n const service = new Transaction(settings);\n const response = await service.doAuth(request);\n return {\n status: response.getStatus(),\n response: response.toJson(),\n };\n }\n async transactionDoCapture(options) {\n const settings = Object.assign(new Settings(), JSON.parse(options.settings));\n const request = Object.assign(new CaptureTransaction(), JSON.parse(options.request));\n const service = new Transaction(settings);\n const response = await service.doCapture(request);\n return {\n status: response.getStatus(),\n response: response.toJson(),\n };\n }\n async transactionDoVoid(options) {\n const settings = Object.assign(new Settings(), JSON.parse(options.settings));\n const request = Object.assign(new VoidTransaction(), JSON.parse(options.request));\n const service = new Transaction(settings);\n const response = await service.doVoid(request);\n return {\n status: response.getStatus(),\n response: response.toJson(),\n };\n }\n async transactionGetStatus(options) {\n const settings = Object.assign(new Settings(), JSON.parse(options.settings));\n const request = Object.assign(new StatusTransaction(), JSON.parse(options.request));\n const service = new Transaction(settings);\n const response = await service.getStatus(request);\n return {\n status: response.getStatus(),\n response: response.toJson(),\n };\n }\n async tokenizationVaultCard(options) {\n const settings = Object.assign(new Settings(), JSON.parse(options.settings));\n const request = Object.assign(new CardTokenization(), JSON.parse(options.request));\n const service = new Tokenization(settings);\n const response = await service.vaultCard(request);\n return {\n status: response.getStatus(),\n response: response.toJson(),\n };\n }\n async tokenizationUpdateCard(options) {\n const settings = Object.assign(new Settings(), JSON.parse(options.settings));\n const request = Object.assign(new CardTokenization(), JSON.parse(options.request));\n const service = new Tokenization(settings);\n const response = await service.updateCard(options.token, request);\n return {\n status: response.getStatus(),\n response: response.toJson(),\n };\n }\n async tokenizationShowCard(options) {\n const settings = Object.assign(new Settings(), JSON.parse(options.settings));\n const service = new Tokenization(settings);\n const response = await service.showCard(options.token);\n return {\n status: response.getStatus(),\n response: response.toJson(),\n };\n }\n async tokenizationShowCards(options) {\n const settings = Object.assign(new Settings(), JSON.parse(options.settings));\n const service = new Tokenization(settings);\n const response = await service.showCards(options.tokens.split('|'));\n return {\n status: response.getStatus(),\n response: response.toJson(),\n };\n }\n async tokenizationDeleteCard(options) {\n const settings = Object.assign(new Settings(), JSON.parse(options.settings));\n const service = new Tokenization(settings);\n const response = await service.deleteCard(options.token);\n return {\n status: response.getStatus(),\n response: response.toJson(),\n };\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","Response","SuccessResponse","PayloadResponse","ErrorResponse","NoAccessResponse","PaymentDeclinedResponse","NotFoundResponse","TimeoutResponse","PreconditionalResponse","InputErrorResponse","FailureResponse","NetworkFailureResponse","BaseTransaction","WebPlugin","Settings","SaleTransaction","Transaction","AuthTransaction","CaptureTransaction","VoidTransaction","StatusTransaction","CardTokenization","Tokenization"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAcA,MAAM,WAAW,GAAGA,mBAAc,CAAC,aAAa,EAAE;AAClD,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,IAAI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AACL,IAAI,MAAM,qBAAqB,CAAC,OAAO,EAAE;AACzC,QAAQ,MAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,CAAC,IAAIR,4BAAQ,EAAE,EAAE,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC;AACrF,QAAQ,MAAM,OAAO,GAAG,IAAIQ,gCAAY,CAAC,QAAQ,CAAC,CAAC;AACnD,QAAQ,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,SAAS,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC;AAC5E,QAAQ,OAAO;AACf,YAAY,MAAM,EAAE,QAAQ,CAAC,SAAS,EAAE;AACxC,YAAY,QAAQ,EAAE,QAAQ,CAAC,MAAM,EAAE;AACvC,SAAS,CAAC;AACV,KAAK;AACL,IAAI,MAAM,sBAAsB,CAAC,OAAO,EAAE;AAC1C,QAAQ,MAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,CAAC,IAAIR,4BAAQ,EAAE,EAAE,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC;AACrF,QAAQ,MAAM,OAAO,GAAG,IAAIQ,gCAAY,CAAC,QAAQ,CAAC,CAAC;AACnD,QAAQ,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AACjE,QAAQ,OAAO;AACf,YAAY,MAAM,EAAE,QAAQ,CAAC,SAAS,EAAE;AACxC,YAAY,QAAQ,EAAE,QAAQ,CAAC,MAAM,EAAE;AACvC,SAAS,CAAC;AACV,KAAK;AACL;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"plugin.cjs.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nimport Response from '@pixelpay/sdk-core/lib/base/Response';\nimport ErrorResponse from '@pixelpay/sdk-core/lib/responses/ErrorResponse';\nimport FailureResponse from '@pixelpay/sdk-core/lib/responses/FailureResponse';\nimport InputErrorResponse from '@pixelpay/sdk-core/lib/responses/InputErrorResponse';\nimport NetworkFailureResponse from '@pixelpay/sdk-core/lib/responses/NetworkFailureResponse';\nimport NoAccessResponse from '@pixelpay/sdk-core/lib/responses/NoAccessResponse';\nimport NotFoundResponse from '@pixelpay/sdk-core/lib/responses/NotFoundResponse';\nimport PayloadResponse from '@pixelpay/sdk-core/lib/responses/PayloadResponse';\nimport PaymentDeclinedResponse from '@pixelpay/sdk-core/lib/responses/PaymentDeclinedResponse';\nimport PreconditionalResponse from '@pixelpay/sdk-core/lib/responses/PreconditionalResponse';\nimport SuccessResponse from '@pixelpay/sdk-core/lib/responses/SuccessResponse';\nimport TimeoutResponse from '@pixelpay/sdk-core/lib/responses/TimeoutResponse';\nimport BaseTransaction from '@pixelpay/sdk-core/lib/services/Transaction';\nconst PixelPaySDK = registerPlugin('PixelPaySDK', {\n web: () => import('./web').then(m => new m.PixelPaySDKWeb()),\n});\nclass ServiceBehaviour {\n constructor(settings) {\n this._settings = settings;\n this._settings.sdk = 'sdk-ionic';\n this._settings.sdk_version = '2.0.11';\n }\n getSettings() {\n return JSON.stringify(this._settings);\n }\n parseResult(result) {\n let response = new Response();\n const data = JSON.parse(result.response);\n switch (result.status) {\n case 200:\n response = new SuccessResponse();\n break;\n case 202:\n response = new PayloadResponse();\n break;\n case 400:\n response = new ErrorResponse();\n break;\n case 401:\n case 403:\n response = new NoAccessResponse();\n break;\n case 402:\n response = new PaymentDeclinedResponse();\n break;\n case 404:\n case 405:\n case 406:\n response = new NotFoundResponse();\n break;\n case 408:\n response = new TimeoutResponse();\n break;\n case 412:\n case 418:\n response = new PreconditionalResponse();\n break;\n case 422:\n response = new InputErrorResponse();\n break;\n case 500:\n response = new FailureResponse();\n break;\n default:\n if (result.status > 500) {\n response = new NetworkFailureResponse();\n }\n break;\n }\n response.setStatus(result.status);\n response.action = (data === null || data === void 0 ? void 0 : data.action) || null;\n response.success = (data === null || data === void 0 ? void 0 : data.success) || false;\n response.message = (data === null || data === void 0 ? void 0 : data.message) || null;\n response.data = (data === null || data === void 0 ? void 0 : data.data) || null;\n response.errors = (data === null || data === void 0 ? void 0 : data.errors) || null;\n return response;\n }\n}\nclass Transaction extends ServiceBehaviour {\n /**\n * Send and proccesing SALE transaction\n *\n * @param transaction\n * @return\n * @throws InvalidCredentialsException\n */\n async doSale(transaction) {\n return this.parseResult(await PixelPaySDK.transactionDoSale({\n settings: this.getSettings(),\n request: transaction.toJson()\n }));\n }\n /**\n * Send and proccesing AUTH transaction\n *\n * @param transaction\n * @return\n * @throws InvalidCredentialsException\n */\n async doAuth(transaction) {\n return this.parseResult(await PixelPaySDK.transactionDoAuth({\n settings: this.getSettings(),\n request: transaction.toJson()\n }));\n }\n /**\n * Send and proccesing CAPTURE transaction\n *\n * @param transaction\n * @return\n * @throws InvalidCredentialsException\n */\n async doCapture(transaction) {\n return this.parseResult(await PixelPaySDK.transactionDoCapture({\n settings: this.getSettings(),\n request: transaction.toJson()\n }));\n }\n /**\n * Send and proccesing VOID transaction\n *\n * @param transaction\n * @return\n * @throws InvalidCredentialsException\n */\n async doVoid(transaction) {\n return this.parseResult(await PixelPaySDK.transactionDoVoid({\n settings: this.getSettings(),\n request: transaction.toJson()\n }));\n }\n /**\n * Send and proccesing SALE transaction\n *\n * @param transaction\n * @return\n * @throws InvalidCredentialsException\n */\n async getStatus(transaction) {\n return this.parseResult(await PixelPaySDK.transactionGetStatus({\n settings: this.getSettings(),\n request: transaction.toJson()\n }));\n }\n /**\n * Verify a payment hash and returns true if payment response is not modified\n *\n * @param hash\n * @param order_id\n * @param secret\n * @return\n */\n verifyPaymentHash(hash, order_id, secret) {\n return (new BaseTransaction(this._settings)).verifyPaymentHash(hash, order_id, secret);\n }\n}\nclass Tokenization extends ServiceBehaviour {\n /**\n * Vault credit/debit card and obtain a token card identifier (T-* format)\n *\n * @param card\n * @return\n * @throws InvalidCredentialsException\n */\n async vaultCard(card) {\n return this.parseResult(await PixelPaySDK.tokenizationVaultCard({\n settings: this.getSettings(),\n request: card.toJson()\n }));\n }\n /**\n * Update credit/debit card by token card identifier\n *\n * @param token\n * @param card\n * @return\n * @throws InvalidCredentialsException\n */\n async updateCard(token, card) {\n return this.parseResult(await PixelPaySDK.tokenizationUpdateCard({\n settings: this.getSettings(),\n token: token,\n request: card.toJson()\n }));\n }\n /**\n * Show credit/debit card metadata by token card identifier\n *\n * @param token\n * @return\n * @throws InvalidCredentialsException\n */\n async showCard(token) {\n return this.parseResult(await PixelPaySDK.tokenizationShowCard({\n settings: this.getSettings(),\n token: token\n }));\n }\n /**\n * Show credit/debit card metadata by token card identifier\n *\n * @param token\n * @return\n * @throws InvalidCredentialsException\n */\n async showCards(tokens) {\n return this.parseResult(await PixelPaySDK.tokenizationShowCards({\n settings: this.getSettings(),\n tokens: tokens.join('|')\n }));\n }\n /**\n * Delete credit/debit card metadata by token card identifier\n *\n * @param token\n * @return\n * @throws InvalidCredentialsException\n */\n async deleteCard(token) {\n return this.parseResult(await PixelPaySDK.tokenizationDeleteCard({\n settings: this.getSettings(),\n token: token\n }));\n }\n}\nexport * from './definitions';\nexport { Transaction, Tokenization };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nimport Settings from '@pixelpay/sdk-core/lib/models/Settings';\nimport AuthTransaction from '@pixelpay/sdk-core/lib/requests/AuthTransaction';\nimport CaptureTransaction from '@pixelpay/sdk-core/lib/requests/CaptureTransaction';\nimport CardTokenization from '@pixelpay/sdk-core/lib/requests/CardTokenization';\nimport SaleTransaction from '@pixelpay/sdk-core/lib/requests/SaleTransaction';\nimport StatusTransaction from '@pixelpay/sdk-core/lib/requests/StatusTransaction';\nimport VoidTransaction from '@pixelpay/sdk-core/lib/requests/VoidTransaction';\nimport Tokenization from '@pixelpay/sdk-core/lib/services/Tokenization';\nimport Transaction from '@pixelpay/sdk-core/lib/services/Transaction';\nexport class PixelPaySDKWeb extends WebPlugin {\n async transactionDoSale(options) {\n const settings = Object.assign(new Settings(), JSON.parse(options.settings));\n const request = Object.assign(new SaleTransaction(), JSON.parse(options.request));\n const service = new Transaction(settings);\n const response = await service.doSale(request);\n return {\n status: response.getStatus(),\n response: response.toJson(),\n };\n }\n async transactionDoAuth(options) {\n const settings = Object.assign(new Settings(), JSON.parse(options.settings));\n const request = Object.assign(new AuthTransaction(), JSON.parse(options.request));\n const service = new Transaction(settings);\n const response = await service.doAuth(request);\n return {\n status: response.getStatus(),\n response: response.toJson(),\n };\n }\n async transactionDoCapture(options) {\n const settings = Object.assign(new Settings(), JSON.parse(options.settings));\n const request = Object.assign(new CaptureTransaction(), JSON.parse(options.request));\n const service = new Transaction(settings);\n const response = await service.doCapture(request);\n return {\n status: response.getStatus(),\n response: response.toJson(),\n };\n }\n async transactionDoVoid(options) {\n const settings = Object.assign(new Settings(), JSON.parse(options.settings));\n const request = Object.assign(new VoidTransaction(), JSON.parse(options.request));\n const service = new Transaction(settings);\n const response = await service.doVoid(request);\n return {\n status: response.getStatus(),\n response: response.toJson(),\n };\n }\n async transactionGetStatus(options) {\n const settings = Object.assign(new Settings(), JSON.parse(options.settings));\n const request = Object.assign(new StatusTransaction(), JSON.parse(options.request));\n const service = new Transaction(settings);\n const response = await service.getStatus(request);\n return {\n status: response.getStatus(),\n response: response.toJson(),\n };\n }\n async tokenizationVaultCard(options) {\n const settings = Object.assign(new Settings(), JSON.parse(options.settings));\n const request = Object.assign(new CardTokenization(), JSON.parse(options.request));\n const service = new Tokenization(settings);\n const response = await service.vaultCard(request);\n return {\n status: response.getStatus(),\n response: response.toJson(),\n };\n }\n async tokenizationUpdateCard(options) {\n const settings = Object.assign(new Settings(), JSON.parse(options.settings));\n const request = Object.assign(new CardTokenization(), JSON.parse(options.request));\n const service = new Tokenization(settings);\n const response = await service.updateCard(options.token, request);\n return {\n status: response.getStatus(),\n response: response.toJson(),\n };\n }\n async tokenizationShowCard(options) {\n const settings = Object.assign(new Settings(), JSON.parse(options.settings));\n const service = new Tokenization(settings);\n const response = await service.showCard(options.token);\n return {\n status: response.getStatus(),\n response: response.toJson(),\n };\n }\n async tokenizationShowCards(options) {\n const settings = Object.assign(new Settings(), JSON.parse(options.settings));\n const service = new Tokenization(settings);\n const response = await service.showCards(options.tokens.split('|'));\n return {\n status: response.getStatus(),\n response: response.toJson(),\n };\n }\n async tokenizationDeleteCard(options) {\n const settings = Object.assign(new Settings(), JSON.parse(options.settings));\n const service = new Tokenization(settings);\n const response = await service.deleteCard(options.token);\n return {\n status: response.getStatus(),\n response: response.toJson(),\n };\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","Response","SuccessResponse","PayloadResponse","ErrorResponse","NoAccessResponse","PaymentDeclinedResponse","NotFoundResponse","TimeoutResponse","PreconditionalResponse","InputErrorResponse","FailureResponse","NetworkFailureResponse","BaseTransaction","WebPlugin","Settings","SaleTransaction","Transaction","AuthTransaction","CaptureTransaction","VoidTransaction","StatusTransaction","CardTokenization","Tokenization"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAcA,MAAM,WAAW,GAAGA,mBAAc,CAAC,aAAa,EAAE;AAClD,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,cAAc,EAAE,CAAC;AAChE,CAAC,CAAC,CAAC;AACH,MAAM,gBAAgB,CAAC;AACvB,IAAI,WAAW,CAAC,QAAQ,EAAE;AAC1B,QAAQ,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC;AAClC,QAAQ,IAAI,CAAC,SAAS,CAAC,GAAG,GAAG,WAAW,CAAC;AACzC,QAAQ,IAAI,CAAC,SAAS,CAAC,WAAW,GAAG,QAAQ,CAAC;AAC9C,KAAK;AACL,IAAI,WAAW,GAAG;AAClB,QAAQ,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;AAC9C,KAAK;AACL,IAA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AQ,CAAC,SAAS,EAAE;AACxC,YAAY,QAAQ,EAAE,QAAQ,CAAC,MAAM,EAAE;AACvC,SAAS,CAAC;AACV,KAAK;AACL,IAAI,MAAM,sBAAsB,CAAC,OAAO,EAAE;AAC1C,QAAQ,MAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,CAAC,IAAIR,4BAAQ,EAAE,EAAE,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC;AACrF,QAAQ,MAAM,OAAO,GAAG,IAAIQ,gCAAY,CAAC,QAAQ,CAAC,CAAC;AACnD,QAAQ,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AACjE,QAAQ,OAAO;AACf,YAAY,MAAM,EAAE,QAAQ,CAAC,SAAS,EAAE;AACxC,YAAY,QAAQ,EAAE,QAAQ,CAAC,MAAM,EAAE;AACvC,SAAS,CAAC;AACV,KAAK;AACL;;;;;;;;;;"}
|
package/dist/plugin.js
CHANGED
|
@@ -32,7 +32,7 @@ var capacitorPixelPaySDK = (function (exports, core, Response, ErrorResponse, Fa
|
|
|
32
32
|
constructor(settings) {
|
|
33
33
|
this._settings = settings;
|
|
34
34
|
this._settings.sdk = 'sdk-ionic';
|
|
35
|
-
this._settings.sdk_version = '2.0.
|
|
35
|
+
this._settings.sdk_version = '2.0.11';
|
|
36
36
|
}
|
|
37
37
|
getSettings() {
|
|
38
38
|
return JSON.stringify(this._settings);
|
|
@@ -350,5 +350,5 @@ var capacitorPixelPaySDK = (function (exports, core, Response, ErrorResponse, Fa
|
|
|
350
350
|
|
|
351
351
|
return exports;
|
|
352
352
|
|
|
353
|
-
})({}, capacitorExports, Response, ErrorResponse, FailureResponse, InputErrorResponse, NetworkFailureResponse, NoAccessResponse, NotFoundResponse, PayloadResponse, PaymentDeclinedResponse, PreconditionalResponse, SuccessResponse, TimeoutResponse, Transaction
|
|
353
|
+
})({}, capacitorExports, @pixelpay/sdk-core/lib/base/Response, @pixelpay/sdk-core/lib/responses/ErrorResponse, @pixelpay/sdk-core/lib/responses/FailureResponse, @pixelpay/sdk-core/lib/responses/InputErrorResponse, @pixelpay/sdk-core/lib/responses/NetworkFailureResponse, @pixelpay/sdk-core/lib/responses/NoAccessResponse, @pixelpay/sdk-core/lib/responses/NotFoundResponse, @pixelpay/sdk-core/lib/responses/PayloadResponse, @pixelpay/sdk-core/lib/responses/PaymentDeclinedResponse, @pixelpay/sdk-core/lib/responses/PreconditionalResponse, @pixelpay/sdk-core/lib/responses/SuccessResponse, @pixelpay/sdk-core/lib/responses/TimeoutResponse, @pixelpay/sdk-core/lib/services/Transaction, @pixelpay/sdk-core/lib/models/Settings, @pixelpay/sdk-core/lib/requests/AuthTransaction, @pixelpay/sdk-core/lib/requests/CaptureTransaction, @pixelpay/sdk-core/lib/requests/CardTokenization, @pixelpay/sdk-core/lib/requests/SaleTransaction, @pixelpay/sdk-core/lib/requests/StatusTransaction, @pixelpay/sdk-core/lib/requests/VoidTransaction, @pixelpay/sdk-core/lib/services/Tokenization);
|
|
354
354
|
//# sourceMappingURL=plugin.js.map
|
package/dist/plugin.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nimport Response from '@pixelpay/sdk-core/lib/base/Response';\nimport ErrorResponse from '@pixelpay/sdk-core/lib/responses/ErrorResponse';\nimport FailureResponse from '@pixelpay/sdk-core/lib/responses/FailureResponse';\nimport InputErrorResponse from '@pixelpay/sdk-core/lib/responses/InputErrorResponse';\nimport NetworkFailureResponse from '@pixelpay/sdk-core/lib/responses/NetworkFailureResponse';\nimport NoAccessResponse from '@pixelpay/sdk-core/lib/responses/NoAccessResponse';\nimport NotFoundResponse from '@pixelpay/sdk-core/lib/responses/NotFoundResponse';\nimport PayloadResponse from '@pixelpay/sdk-core/lib/responses/PayloadResponse';\nimport PaymentDeclinedResponse from '@pixelpay/sdk-core/lib/responses/PaymentDeclinedResponse';\nimport PreconditionalResponse from '@pixelpay/sdk-core/lib/responses/PreconditionalResponse';\nimport SuccessResponse from '@pixelpay/sdk-core/lib/responses/SuccessResponse';\nimport TimeoutResponse from '@pixelpay/sdk-core/lib/responses/TimeoutResponse';\nimport BaseTransaction from '@pixelpay/sdk-core/lib/services/Transaction';\nconst PixelPaySDK = registerPlugin('PixelPaySDK', {\n web: () => import('./web').then(m => new m.PixelPaySDKWeb()),\n});\nclass ServiceBehaviour {\n constructor(settings) {\n this._settings = settings;\n this._settings.sdk = 'sdk-ionic';\n this._settings.sdk_version = '2.0.9';\n }\n getSettings() {\n return JSON.stringify(this._settings);\n }\n parseResult(result) {\n let response = new Response();\n const data = JSON.parse(result.response);\n switch (result.status) {\n case 200:\n response = new SuccessResponse();\n break;\n case 202:\n response = new PayloadResponse();\n break;\n case 400:\n response = new ErrorResponse();\n break;\n case 401:\n case 403:\n response = new NoAccessResponse();\n break;\n case 402:\n response = new PaymentDeclinedResponse();\n break;\n case 404:\n case 405:\n case 406:\n response = new NotFoundResponse();\n break;\n case 408:\n response = new TimeoutResponse();\n break;\n case 412:\n case 418:\n response = new PreconditionalResponse();\n break;\n case 422:\n response = new InputErrorResponse();\n break;\n case 500:\n response = new FailureResponse();\n break;\n default:\n if (result.status > 500) {\n response = new NetworkFailureResponse();\n }\n break;\n }\n response.setStatus(result.status);\n response.action = (data === null || data === void 0 ? void 0 : data.action) || null;\n response.success = (data === null || data === void 0 ? void 0 : data.success) || false;\n response.message = (data === null || data === void 0 ? void 0 : data.message) || null;\n response.data = (data === null || data === void 0 ? void 0 : data.data) || null;\n response.errors = (data === null || data === void 0 ? void 0 : data.errors) || null;\n return response;\n }\n}\nclass Transaction extends ServiceBehaviour {\n /**\n * Send and proccesing SALE transaction\n *\n * @param transaction\n * @return\n * @throws InvalidCredentialsException\n */\n async doSale(transaction) {\n return this.parseResult(await PixelPaySDK.transactionDoSale({\n settings: this.getSettings(),\n request: transaction.toJson()\n }));\n }\n /**\n * Send and proccesing AUTH transaction\n *\n * @param transaction\n * @return\n * @throws InvalidCredentialsException\n */\n async doAuth(transaction) {\n return this.parseResult(await PixelPaySDK.transactionDoAuth({\n settings: this.getSettings(),\n request: transaction.toJson()\n }));\n }\n /**\n * Send and proccesing CAPTURE transaction\n *\n * @param transaction\n * @return\n * @throws InvalidCredentialsException\n */\n async doCapture(transaction) {\n return this.parseResult(await PixelPaySDK.transactionDoCapture({\n settings: this.getSettings(),\n request: transaction.toJson()\n }));\n }\n /**\n * Send and proccesing VOID transaction\n *\n * @param transaction\n * @return\n * @throws InvalidCredentialsException\n */\n async doVoid(transaction) {\n return this.parseResult(await PixelPaySDK.transactionDoVoid({\n settings: this.getSettings(),\n request: transaction.toJson()\n }));\n }\n /**\n * Send and proccesing SALE transaction\n *\n * @param transaction\n * @return\n * @throws InvalidCredentialsException\n */\n async getStatus(transaction) {\n return this.parseResult(await PixelPaySDK.transactionGetStatus({\n settings: this.getSettings(),\n request: transaction.toJson()\n }));\n }\n /**\n * Verify a payment hash and returns true if payment response is not modified\n *\n * @param hash\n * @param order_id\n * @param secret\n * @return\n */\n verifyPaymentHash(hash, order_id, secret) {\n return (new BaseTransaction(this._settings)).verifyPaymentHash(hash, order_id, secret);\n }\n}\nclass Tokenization extends ServiceBehaviour {\n /**\n * Vault credit/debit card and obtain a token card identifier (T-* format)\n *\n * @param card\n * @return\n * @throws InvalidCredentialsException\n */\n async vaultCard(card) {\n return this.parseResult(await PixelPaySDK.tokenizationVaultCard({\n settings: this.getSettings(),\n request: card.toJson()\n }));\n }\n /**\n * Update credit/debit card by token card identifier\n *\n * @param token\n * @param card\n * @return\n * @throws InvalidCredentialsException\n */\n async updateCard(token, card) {\n return this.parseResult(await PixelPaySDK.tokenizationUpdateCard({\n settings: this.getSettings(),\n token: token,\n request: card.toJson()\n }));\n }\n /**\n * Show credit/debit card metadata by token card identifier\n *\n * @param token\n * @return\n * @throws InvalidCredentialsException\n */\n async showCard(token) {\n return this.parseResult(await PixelPaySDK.tokenizationShowCard({\n settings: this.getSettings(),\n token: token\n }));\n }\n /**\n * Show credit/debit card metadata by token card identifier\n *\n * @param token\n * @return\n * @throws InvalidCredentialsException\n */\n async showCards(tokens) {\n return this.parseResult(await PixelPaySDK.tokenizationShowCards({\n settings: this.getSettings(),\n tokens: tokens.join('|')\n }));\n }\n /**\n * Delete credit/debit card metadata by token card identifier\n *\n * @param token\n * @return\n * @throws InvalidCredentialsException\n */\n async deleteCard(token) {\n return this.parseResult(await PixelPaySDK.tokenizationDeleteCard({\n settings: this.getSettings(),\n token: token\n }));\n }\n}\nexport * from './definitions';\nexport { Transaction, Tokenization };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nimport Settings from '@pixelpay/sdk-core/lib/models/Settings';\nimport AuthTransaction from '@pixelpay/sdk-core/lib/requests/AuthTransaction';\nimport CaptureTransaction from '@pixelpay/sdk-core/lib/requests/CaptureTransaction';\nimport CardTokenization from '@pixelpay/sdk-core/lib/requests/CardTokenization';\nimport SaleTransaction from '@pixelpay/sdk-core/lib/requests/SaleTransaction';\nimport StatusTransaction from '@pixelpay/sdk-core/lib/requests/StatusTransaction';\nimport VoidTransaction from '@pixelpay/sdk-core/lib/requests/VoidTransaction';\nimport Tokenization from '@pixelpay/sdk-core/lib/services/Tokenization';\nimport Transaction from '@pixelpay/sdk-core/lib/services/Transaction';\nexport class PixelPaySDKWeb extends WebPlugin {\n async transactionDoSale(options) {\n const settings = Object.assign(new Settings(), JSON.parse(options.settings));\n const request = Object.assign(new SaleTransaction(), JSON.parse(options.request));\n const service = new Transaction(settings);\n const response = await service.doSale(request);\n return {\n status: response.getStatus(),\n response: response.toJson(),\n };\n }\n async transactionDoAuth(options) {\n const settings = Object.assign(new Settings(), JSON.parse(options.settings));\n const request = Object.assign(new AuthTransaction(), JSON.parse(options.request));\n const service = new Transaction(settings);\n const response = await service.doAuth(request);\n return {\n status: response.getStatus(),\n response: response.toJson(),\n };\n }\n async transactionDoCapture(options) {\n const settings = Object.assign(new Settings(), JSON.parse(options.settings));\n const request = Object.assign(new CaptureTransaction(), JSON.parse(options.request));\n const service = new Transaction(settings);\n const response = await service.doCapture(request);\n return {\n status: response.getStatus(),\n response: response.toJson(),\n };\n }\n async transactionDoVoid(options) {\n const settings = Object.assign(new Settings(), JSON.parse(options.settings));\n const request = Object.assign(new VoidTransaction(), JSON.parse(options.request));\n const service = new Transaction(settings);\n const response = await service.doVoid(request);\n return {\n status: response.getStatus(),\n response: response.toJson(),\n };\n }\n async transactionGetStatus(options) {\n const settings = Object.assign(new Settings(), JSON.parse(options.settings));\n const request = Object.assign(new StatusTransaction(), JSON.parse(options.request));\n const service = new Transaction(settings);\n const response = await service.getStatus(request);\n return {\n status: response.getStatus(),\n response: response.toJson(),\n };\n }\n async tokenizationVaultCard(options) {\n const settings = Object.assign(new Settings(), JSON.parse(options.settings));\n const request = Object.assign(new CardTokenization(), JSON.parse(options.request));\n const service = new Tokenization(settings);\n const response = await service.vaultCard(request);\n return {\n status: response.getStatus(),\n response: response.toJson(),\n };\n }\n async tokenizationUpdateCard(options) {\n const settings = Object.assign(new Settings(), JSON.parse(options.settings));\n const request = Object.assign(new CardTokenization(), JSON.parse(options.request));\n const service = new Tokenization(settings);\n const response = await service.updateCard(options.token, request);\n return {\n status: response.getStatus(),\n response: response.toJson(),\n };\n }\n async tokenizationShowCard(options) {\n const settings = Object.assign(new Settings(), JSON.parse(options.settings));\n const service = new Tokenization(settings);\n const response = await service.showCard(options.token);\n return {\n status: response.getStatus(),\n response: response.toJson(),\n };\n }\n async tokenizationShowCards(options) {\n const settings = Object.assign(new Settings(), JSON.parse(options.settings));\n const service = new Tokenization(settings);\n const response = await service.showCards(options.tokens.split('|'));\n return {\n status: response.getStatus(),\n response: response.toJson(),\n };\n }\n async tokenizationDeleteCard(options) {\n const settings = Object.assign(new Settings(), JSON.parse(options.settings));\n const service = new Tokenization(settings);\n const response = await service.deleteCard(options.token);\n return {\n status: response.getStatus(),\n response: response.toJson(),\n };\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","Response","SuccessResponse","PayloadResponse","ErrorResponse","NoAccessResponse","PaymentDeclinedResponse","NotFoundResponse","TimeoutResponse","PreconditionalResponse","InputErrorResponse","FailureResponse","NetworkFailureResponse","BaseTransaction","WebPlugin","Settings","SaleTransaction","Transaction","AuthTransaction","CaptureTransaction","VoidTransaction","StatusTransaction","CardTokenization","Tokenization"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;IAcA,MAAM,WAAW,GAAGA,mBAAc,CAAC,aAAa,EAAE;IAClD,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,cAAc,EAAE,CAAC;IAChE,CAAC,CAAC,CAAC;IACH,MAAM,gBAAgB,CAAC;IACvB,IAAI,WAAW,CAAC,QAAQ,EAAE;IAC1B,QAAQ,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC;IAClC,QAAQ,IAAI,CAAC,SAAS,CAAC,GAAG,GAAG,WAAW,CAAC;IACzC,QAAQ,IAAI,CAAC,SAAS,CAAC,WAAW,GAAG,OAAO,CAAC;IAC7C,KAAK;IACL,IAAI,WAAW,GAAG;IAClB,QAAQ,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IAC9C,KAAK;IACL,IAAI,WAAW,CAAC,MAAM,EAAE;IACxB,QAAQ,IAAI,QAAQ,GAAG,IAAIC,4BAAQ,EAAE,CAAC;IACtC,QAAQ,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IACjD,QAAQ,QAAQ,MAAM,CAAC,MAAM;IAC7B,YAAY,KAAK,GAAG;IACpB,gBAAgB,QAAQ,GAAG,IAAIC,mCAAe,EAAE,CAAC;IACjD,gBAAgB,MAAM;IACtB,YAAY,KAAK,GAAG;IACp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CAAC,QAAQ,CAAC,CAAC;IACnD,QAAQ,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IACjE,QAAQ,OAAO;IACf,YAAY,MAAM,EAAE,QAAQ,CAAC,SAAS,EAAE;IACxC,YAAY,QAAQ,EAAE,QAAQ,CAAC,MAAM,EAAE;IACvC,SAAS,CAAC;IACV,KAAK;IACL;;;;;;;;;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"plugin.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nimport Response from '@pixelpay/sdk-core/lib/base/Response';\nimport ErrorResponse from '@pixelpay/sdk-core/lib/responses/ErrorResponse';\nimport FailureResponse from '@pixelpay/sdk-core/lib/responses/FailureResponse';\nimport InputErrorResponse from '@pixelpay/sdk-core/lib/responses/InputErrorResponse';\nimport NetworkFailureResponse from '@pixelpay/sdk-core/lib/responses/NetworkFailureResponse';\nimport NoAccessResponse from '@pixelpay/sdk-core/lib/responses/NoAccessResponse';\nimport NotFoundResponse from '@pixelpay/sdk-core/lib/responses/NotFoundResponse';\nimport PayloadResponse from '@pixelpay/sdk-core/lib/responses/PayloadResponse';\nimport PaymentDeclinedResponse from '@pixelpay/sdk-core/lib/responses/PaymentDeclinedResponse';\nimport PreconditionalResponse from '@pixelpay/sdk-core/lib/responses/PreconditionalResponse';\nimport SuccessResponse from '@pixelpay/sdk-core/lib/responses/SuccessResponse';\nimport TimeoutResponse from '@pixelpay/sdk-core/lib/responses/TimeoutResponse';\nimport BaseTransaction from '@pixelpay/sdk-core/lib/services/Transaction';\nconst PixelPaySDK = registerPlugin('PixelPaySDK', {\n web: () => import('./web').then(m => new m.PixelPaySDKWeb()),\n});\nclass ServiceBehaviour {\n constructor(settings) {\n this._settings = settings;\n this._settings.sdk = 'sdk-ionic';\n this._settings.sdk_version = '2.0.11';\n }\n getSettings() {\n return JSON.stringify(this._settings);\n }\n parseResult(result) {\n let response = new Response();\n const data = JSON.parse(result.response);\n switch (result.status) {\n case 200:\n response = new SuccessResponse();\n break;\n case 202:\n response = new PayloadResponse();\n break;\n case 400:\n response = new ErrorResponse();\n break;\n case 401:\n case 403:\n response = new NoAccessResponse();\n break;\n case 402:\n response = new PaymentDeclinedResponse();\n break;\n case 404:\n case 405:\n case 406:\n response = new NotFoundResponse();\n break;\n case 408:\n response = new TimeoutResponse();\n break;\n case 412:\n case 418:\n response = new PreconditionalResponse();\n break;\n case 422:\n response = new InputErrorResponse();\n break;\n case 500:\n response = new FailureResponse();\n break;\n default:\n if (result.status > 500) {\n response = new NetworkFailureResponse();\n }\n break;\n }\n response.setStatus(result.status);\n response.action = (data === null || data === void 0 ? void 0 : data.action) || null;\n response.success = (data === null || data === void 0 ? void 0 : data.success) || false;\n response.message = (data === null || data === void 0 ? void 0 : data.message) || null;\n response.data = (data === null || data === void 0 ? void 0 : data.data) || null;\n response.errors = (data === null || data === void 0 ? void 0 : data.errors) || null;\n return response;\n }\n}\nclass Transaction extends ServiceBehaviour {\n /**\n * Send and proccesing SALE transaction\n *\n * @param transaction\n * @return\n * @throws InvalidCredentialsException\n */\n async doSale(transaction) {\n return this.parseResult(await PixelPaySDK.transactionDoSale({\n settings: this.getSettings(),\n request: transaction.toJson()\n }));\n }\n /**\n * Send and proccesing AUTH transaction\n *\n * @param transaction\n * @return\n * @throws InvalidCredentialsException\n */\n async doAuth(transaction) {\n return this.parseResult(await PixelPaySDK.transactionDoAuth({\n settings: this.getSettings(),\n request: transaction.toJson()\n }));\n }\n /**\n * Send and proccesing CAPTURE transaction\n *\n * @param transaction\n * @return\n * @throws InvalidCredentialsException\n */\n async doCapture(transaction) {\n return this.parseResult(await PixelPaySDK.transactionDoCapture({\n settings: this.getSettings(),\n request: transaction.toJson()\n }));\n }\n /**\n * Send and proccesing VOID transaction\n *\n * @param transaction\n * @return\n * @throws InvalidCredentialsException\n */\n async doVoid(transaction) {\n return this.parseResult(await PixelPaySDK.transactionDoVoid({\n settings: this.getSettings(),\n request: transaction.toJson()\n }));\n }\n /**\n * Send and proccesing SALE transaction\n *\n * @param transaction\n * @return\n * @throws InvalidCredentialsException\n */\n async getStatus(transaction) {\n return this.parseResult(await PixelPaySDK.transactionGetStatus({\n settings: this.getSettings(),\n request: transaction.toJson()\n }));\n }\n /**\n * Verify a payment hash and returns true if payment response is not modified\n *\n * @param hash\n * @param order_id\n * @param secret\n * @return\n */\n verifyPaymentHash(hash, order_id, secret) {\n return (new BaseTransaction(this._settings)).verifyPaymentHash(hash, order_id, secret);\n }\n}\nclass Tokenization extends ServiceBehaviour {\n /**\n * Vault credit/debit card and obtain a token card identifier (T-* format)\n *\n * @param card\n * @return\n * @throws InvalidCredentialsException\n */\n async vaultCard(card) {\n return this.parseResult(await PixelPaySDK.tokenizationVaultCard({\n settings: this.getSettings(),\n request: card.toJson()\n }));\n }\n /**\n * Update credit/debit card by token card identifier\n *\n * @param token\n * @param card\n * @return\n * @throws InvalidCredentialsException\n */\n async updateCard(token, card) {\n return this.parseResult(await PixelPaySDK.tokenizationUpdateCard({\n settings: this.getSettings(),\n token: token,\n request: card.toJson()\n }));\n }\n /**\n * Show credit/debit card metadata by token card identifier\n *\n * @param token\n * @return\n * @throws InvalidCredentialsException\n */\n async showCard(token) {\n return this.parseResult(await PixelPaySDK.tokenizationShowCard({\n settings: this.getSettings(),\n token: token\n }));\n }\n /**\n * Show credit/debit card metadata by token card identifier\n *\n * @param token\n * @return\n * @throws InvalidCredentialsException\n */\n async showCards(tokens) {\n return this.parseResult(await PixelPaySDK.tokenizationShowCards({\n settings: this.getSettings(),\n tokens: tokens.join('|')\n }));\n }\n /**\n * Delete credit/debit card metadata by token card identifier\n *\n * @param token\n * @return\n * @throws InvalidCredentialsException\n */\n async deleteCard(token) {\n return this.parseResult(await PixelPaySDK.tokenizationDeleteCard({\n settings: this.getSettings(),\n token: token\n }));\n }\n}\nexport * from './definitions';\nexport { Transaction, Tokenization };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nimport Settings from '@pixelpay/sdk-core/lib/models/Settings';\nimport AuthTransaction from '@pixelpay/sdk-core/lib/requests/AuthTransaction';\nimport CaptureTransaction from '@pixelpay/sdk-core/lib/requests/CaptureTransaction';\nimport CardTokenization from '@pixelpay/sdk-core/lib/requests/CardTokenization';\nimport SaleTransaction from '@pixelpay/sdk-core/lib/requests/SaleTransaction';\nimport StatusTransaction from '@pixelpay/sdk-core/lib/requests/StatusTransaction';\nimport VoidTransaction from '@pixelpay/sdk-core/lib/requests/VoidTransaction';\nimport Tokenization from '@pixelpay/sdk-core/lib/services/Tokenization';\nimport Transaction from '@pixelpay/sdk-core/lib/services/Transaction';\nexport class PixelPaySDKWeb extends WebPlugin {\n async transactionDoSale(options) {\n const settings = Object.assign(new Settings(), JSON.parse(options.settings));\n const request = Object.assign(new SaleTransaction(), JSON.parse(options.request));\n const service = new Transaction(settings);\n const response = await service.doSale(request);\n return {\n status: response.getStatus(),\n response: response.toJson(),\n };\n }\n async transactionDoAuth(options) {\n const settings = Object.assign(new Settings(), JSON.parse(options.settings));\n const request = Object.assign(new AuthTransaction(), JSON.parse(options.request));\n const service = new Transaction(settings);\n const response = await service.doAuth(request);\n return {\n status: response.getStatus(),\n response: response.toJson(),\n };\n }\n async transactionDoCapture(options) {\n const settings = Object.assign(new Settings(), JSON.parse(options.settings));\n const request = Object.assign(new CaptureTransaction(), JSON.parse(options.request));\n const service = new Transaction(settings);\n const response = await service.doCapture(request);\n return {\n status: response.getStatus(),\n response: response.toJson(),\n };\n }\n async transactionDoVoid(options) {\n const settings = Object.assign(new Settings(), JSON.parse(options.settings));\n const request = Object.assign(new VoidTransaction(), JSON.parse(options.request));\n const service = new Transaction(settings);\n const response = await service.doVoid(request);\n return {\n status: response.getStatus(),\n response: response.toJson(),\n };\n }\n async transactionGetStatus(options) {\n const settings = Object.assign(new Settings(), JSON.parse(options.settings));\n const request = Object.assign(new StatusTransaction(), JSON.parse(options.request));\n const service = new Transaction(settings);\n const response = await service.getStatus(request);\n return {\n status: response.getStatus(),\n response: response.toJson(),\n };\n }\n async tokenizationVaultCard(options) {\n const settings = Object.assign(new Settings(), JSON.parse(options.settings));\n const request = Object.assign(new CardTokenization(), JSON.parse(options.request));\n const service = new Tokenization(settings);\n const response = await service.vaultCard(request);\n return {\n status: response.getStatus(),\n response: response.toJson(),\n };\n }\n async tokenizationUpdateCard(options) {\n const settings = Object.assign(new Settings(), JSON.parse(options.settings));\n const request = Object.assign(new CardTokenization(), JSON.parse(options.request));\n const service = new Tokenization(settings);\n const response = await service.updateCard(options.token, request);\n return {\n status: response.getStatus(),\n response: response.toJson(),\n };\n }\n async tokenizationShowCard(options) {\n const settings = Object.assign(new Settings(), JSON.parse(options.settings));\n const service = new Tokenization(settings);\n const response = await service.showCard(options.token);\n return {\n status: response.getStatus(),\n response: response.toJson(),\n };\n }\n async tokenizationShowCards(options) {\n const settings = Object.assign(new Settings(), JSON.parse(options.settings));\n const service = new Tokenization(settings);\n const response = await service.showCards(options.tokens.split('|'));\n return {\n status: response.getStatus(),\n response: response.toJson(),\n };\n }\n async tokenizationDeleteCard(options) {\n const settings = Object.assign(new Settings(), JSON.parse(options.settings));\n const service = new Tokenization(settings);\n const response = await service.deleteCard(options.token);\n return {\n status: response.getStatus(),\n response: response.toJson(),\n };\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","Response","SuccessResponse","PayloadResponse","ErrorResponse","NoAccessResponse","PaymentDeclinedResponse","NotFoundResponse","TimeoutResponse","PreconditionalResponse","InputErrorResponse","FailureResponse","NetworkFailureResponse","BaseTransaction","WebPlugin","Settings","SaleTransaction","Transaction","AuthTransaction","CaptureTransaction","VoidTransaction","StatusTransaction","CardTokenization","Tokenization"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;IAcA,MAAM,WAAW,GAAGA,mBAAc,CAAC,aAAa,EAAE;IAClD,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CA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
|
|
8
10
|
<key>LibraryIdentifier</key>
|
|
9
|
-
<string>ios-
|
|
11
|
+
<string>ios-arm64_x86_64-simulator</string>
|
|
10
12
|
<key>LibraryPath</key>
|
|
11
13
|
<string>CardinalMobile.framework</string>
|
|
12
14
|
<key>SupportedArchitectures</key>
|
|
13
15
|
<array>
|
|
14
16
|
<string>arm64</string>
|
|
17
|
+
<string>x86_64</string>
|
|
15
18
|
</array>
|
|
16
19
|
<key>SupportedPlatform</key>
|
|
17
20
|
<string>ios</string>
|
|
21
|
+
<key>SupportedPlatformVariant</key>
|
|
22
|
+
<string>simulator</string>
|
|
18
23
|
</dict>
|
|
19
24
|
<dict>
|
|
25
|
+
<key>BinaryPath</key>
|
|
26
|
+
<string>CardinalMobile.framework/CardinalMobile</string>
|
|
20
27
|
<key>LibraryIdentifier</key>
|
|
21
|
-
<string>ios-
|
|
28
|
+
<string>ios-arm64</string>
|
|
22
29
|
<key>LibraryPath</key>
|
|
23
30
|
<string>CardinalMobile.framework</string>
|
|
24
31
|
<key>SupportedArchitectures</key>
|
|
25
32
|
<array>
|
|
26
33
|
<string>arm64</string>
|
|
27
|
-
<string>x86_64</string>
|
|
28
34
|
</array>
|
|
29
35
|
<key>SupportedPlatform</key>
|
|
30
36
|
<string>ios</string>
|
|
31
|
-
<key>SupportedPlatformVariant</key>
|
|
32
|
-
<string>simulator</string>
|
|
33
37
|
</dict>
|
|
34
38
|
</array>
|
|
35
39
|
<key>CFBundlePackageType</key>
|