pa-sdk-react-native 3.0.3 → 3.0.4
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/README.md +21 -12
- package/example/App.tsx +583 -0
- package/example/README.md +105 -0
- package/example/android/app/build.gradle +130 -0
- package/example/android/app/debug.keystore +0 -0
- package/example/android/app/proguard-rules.pro +10 -0
- package/example/android/app/src/debug/AndroidManifest.xml +9 -0
- package/example/android/app/src/main/AndroidManifest.xml +26 -0
- package/example/android/app/src/main/java/com/pademo/MainActivity.kt +22 -0
- package/example/android/app/src/main/java/com/pademo/MainApplication.kt +45 -0
- package/example/android/app/src/main/res/drawable/rn_edit_text_material.xml +37 -0
- package/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
- package/example/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png +0 -0
- package/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
- package/example/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png +0 -0
- package/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
- package/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png +0 -0
- package/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
- package/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
- package/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
- package/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
- package/example/android/app/src/main/res/values/strings.xml +3 -0
- package/example/android/app/src/main/res/values/styles.xml +9 -0
- package/example/android/build.gradle +21 -0
- package/example/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/example/android/gradle/wrapper/gradle-wrapper.properties +7 -0
- package/example/android/gradle.properties +39 -0
- package/example/android/gradlew +251 -0
- package/example/android/gradlew.bat +94 -0
- package/example/android/settings.gradle +8 -0
- package/example/app.json +4 -0
- package/example/index.js +4 -0
- package/example/ios/.xcode.env +11 -0
- package/example/ios/.xcode.env.local +1 -0
- package/example/ios/PaSdkExample/AppDelegate.swift +111 -0
- package/example/ios/PaSdkExample/Images.xcassets/AppIcon.appiconset/Contents.json +53 -0
- package/example/ios/PaSdkExample/Images.xcassets/Contents.json +6 -0
- package/example/ios/PaSdkExample/Info.plist +81 -0
- package/example/ios/PaSdkExample/LaunchScreen.storyboard +47 -0
- package/example/ios/PaSdkExample/PrivacyInfo.xcprivacy +37 -0
- package/example/ios/PaSdkExample.xcodeproj/project.pbxproj +468 -0
- package/example/ios/PaSdkExample.xcodeproj/xcshareddata/xcschemes/PaSdkExample.xcscheme +88 -0
- package/example/ios/PaSdkExample.xcworkspace/contents.xcworkspacedata +10 -0
- package/example/ios/Podfile +39 -0
- package/example/ios/Podfile.lock +1990 -0
- package/example/metro.config.js +17 -0
- package/example/package.json +29 -0
- package/example/patches/react-native+0.79.0.patch +215 -0
- package/lib/api.d.ts +3 -0
- package/lib/api.js +9 -2
- package/lib/confirm.js +78 -32
- package/lib/locales.generated.js +108 -4
- package/locales/en-US.json +27 -1
- package/locales/ms-MY.json +27 -1
- package/locales/zh-CN.json +27 -1
- package/locales/zh-TW.json +27 -1
- package/package.json +10 -2
package/locales/ms-MY.json
CHANGED
|
@@ -47,5 +47,31 @@
|
|
|
47
47
|
"field.invalid_expiry": "Semak tarikh luput",
|
|
48
48
|
"field.incomplete_cvc": "Masukkan kod keselamatan",
|
|
49
49
|
"field.invalid_cvc": "Semak kod keselamatan",
|
|
50
|
-
"field.unsupported_brand": "Jenis kad ini tidak diterima"
|
|
50
|
+
"field.unsupported_brand": "Jenis kad ini tidak diterima",
|
|
51
|
+
"error.customer_not_found": "Rekod pelanggan anda tidak dijumpai. Sila hubungi sokongan.",
|
|
52
|
+
"error.exemption_request_not_supported": "Pembayaran ini tidak dapat diproses seperti yang diminta. Sila cuba lagi.",
|
|
53
|
+
"error.incomplete_cvc": "Sila lengkapkan kod keselamatan kad.",
|
|
54
|
+
"error.incomplete_expiry": "Sila lengkapkan tarikh luput.",
|
|
55
|
+
"error.incomplete_number": "Sila lengkapkan nombor kad.",
|
|
56
|
+
"error.intent_not_awaiting_action": "Pembayaran ini tidak lagi menunggu pengesahan. Sila mulakan pembayaran semula.",
|
|
57
|
+
"error.internal_error": "Berlaku ralat sistem. Sila cuba lagi.",
|
|
58
|
+
"error.invalid_card_number": "Nombor kad tidak sah.",
|
|
59
|
+
"error.invalid_expiry": "Tarikh luput tidak sah.",
|
|
60
|
+
"error.invalid_threeds_result": "Hasil pengesahan tidak dapat disahkan. Sila cuba lagi.",
|
|
61
|
+
"error.merchant_misconfigured": "Tetapan pembayaran peniaga belum sedia. Sila hubungi peniaga.",
|
|
62
|
+
"error.method_not_allowed": "Tindakan ini tidak disokong.",
|
|
63
|
+
"error.network_error": "Ralat rangkaian. Sila semak sambungan anda dan cuba lagi.",
|
|
64
|
+
"error.provider_error": "Perkhidmatan pembayaran tidak dapat memproses permintaan buat sementara. Sila cuba lagi.",
|
|
65
|
+
"error.refund_failed": "Bayaran balik tidak dapat diselesaikan. Sila hubungi peniaga.",
|
|
66
|
+
"error.request_invalid": "Permintaan tidak sah. Sila semak maklumat anda dan cuba lagi.",
|
|
67
|
+
"error.saved_card_disabled": "Kad tersimpan ini telah dilumpuhkan. Sila gunakan kad lain.",
|
|
68
|
+
"error.saved_card_not_found": "Kad tersimpan ini tidak lagi tersedia. Sila gunakan kad lain.",
|
|
69
|
+
"error.session_already_used": "Sesi pembayaran ini telah digunakan. Sila mulakan pembayaran baharu.",
|
|
70
|
+
"error.session_expired": "Sesi pembayaran telah tamat tempoh. Sila cuba lagi.",
|
|
71
|
+
"error.threeds_action_external_not_supported_for_setup": "Kaedah pengesahan ini tidak disokong untuk pengesahan kad. Sila cuba lagi.",
|
|
72
|
+
"error.threeds_action_force_not_supported": "Pembayaran ini tidak menyokong pengesahan paksa. Sila cuba lagi.",
|
|
73
|
+
"error.threeds_result_required": "Hasil pengesahan diperlukan. Sila selesaikan pengesahan dan cuba lagi.",
|
|
74
|
+
"error.token_not_chargeable": "Kad ini tidak boleh dicaj. Sila gunakan kad lain.",
|
|
75
|
+
"error.token_not_found": "Kad ini tidak lagi boleh digunakan. Sila tambah kad anda semula.",
|
|
76
|
+
"error.transaction_not_permitted": "Transaksi ini tidak dibenarkan. Sila hubungi bank anda atau peniaga."
|
|
51
77
|
}
|
package/locales/zh-CN.json
CHANGED
|
@@ -47,5 +47,31 @@
|
|
|
47
47
|
"field.invalid_expiry": "请检查有效期",
|
|
48
48
|
"field.incomplete_cvc": "请输入安全码",
|
|
49
49
|
"field.invalid_cvc": "请检查安全码",
|
|
50
|
-
"field.unsupported_brand": "不支持此卡片类型"
|
|
50
|
+
"field.unsupported_brand": "不支持此卡片类型",
|
|
51
|
+
"error.customer_not_found": "找不到你的客户记录,请联系客服。",
|
|
52
|
+
"error.exemption_request_not_supported": "此付款无法以指定方式处理,请重试。",
|
|
53
|
+
"error.incomplete_cvc": "请输入完整的卡片安全码。",
|
|
54
|
+
"error.incomplete_expiry": "请输入完整的有效期。",
|
|
55
|
+
"error.incomplete_number": "请输入完整的卡号。",
|
|
56
|
+
"error.intent_not_awaiting_action": "此付款已不在等待验证的阶段,请重新发起付款。",
|
|
57
|
+
"error.internal_error": "系统发生错误,请重试。",
|
|
58
|
+
"error.invalid_card_number": "卡号无效。",
|
|
59
|
+
"error.invalid_expiry": "有效期无效。",
|
|
60
|
+
"error.invalid_threeds_result": "无法核实验证结果,请重试。",
|
|
61
|
+
"error.merchant_misconfigured": "商户的付款设置尚未就绪,请联系商户。",
|
|
62
|
+
"error.method_not_allowed": "不支持此操作方式。",
|
|
63
|
+
"error.network_error": "网络连接错误,请检查网络后重试。",
|
|
64
|
+
"error.provider_error": "付款服务暂时无法处理请求,请重试。",
|
|
65
|
+
"error.refund_failed": "退款无法完成,请联系商户。",
|
|
66
|
+
"error.request_invalid": "请求内容无效,请确认资料后重试。",
|
|
67
|
+
"error.saved_card_disabled": "此已保存卡片已停用,请改用其他卡片。",
|
|
68
|
+
"error.saved_card_not_found": "找不到此已保存卡片,请改用其他卡片。",
|
|
69
|
+
"error.session_already_used": "此付款工作阶段已使用,请重新发起付款。",
|
|
70
|
+
"error.session_expired": "付款工作阶段已过期,请重试。",
|
|
71
|
+
"error.threeds_action_external_not_supported_for_setup": "此验证方式不适用于验证卡片,请重试。",
|
|
72
|
+
"error.threeds_action_force_not_supported": "此付款不支持强制验证,请重试。",
|
|
73
|
+
"error.threeds_result_required": "需要验证结果,请完成验证后重试。",
|
|
74
|
+
"error.token_not_chargeable": "此卡片无法扣款,请改用其他卡片。",
|
|
75
|
+
"error.token_not_found": "此卡片已不可用,请重新添加卡片。",
|
|
76
|
+
"error.transaction_not_permitted": "此交易不被允许,请联系发卡银行或商户。"
|
|
51
77
|
}
|
package/locales/zh-TW.json
CHANGED
|
@@ -47,5 +47,31 @@
|
|
|
47
47
|
"field.invalid_expiry": "請檢查有效期",
|
|
48
48
|
"field.incomplete_cvc": "請輸入安全碼",
|
|
49
49
|
"field.invalid_cvc": "請檢查安全碼",
|
|
50
|
-
"field.unsupported_brand": "不支援此卡片類型"
|
|
50
|
+
"field.unsupported_brand": "不支援此卡片類型",
|
|
51
|
+
"error.customer_not_found": "找不到你的客戶記錄,請聯絡客服。",
|
|
52
|
+
"error.exemption_request_not_supported": "此付款無法以指定方式處理,請重試。",
|
|
53
|
+
"error.incomplete_cvc": "請輸入完整的卡片安全碼。",
|
|
54
|
+
"error.incomplete_expiry": "請輸入完整的有效日期。",
|
|
55
|
+
"error.incomplete_number": "請輸入完整的卡號。",
|
|
56
|
+
"error.intent_not_awaiting_action": "此付款已不在等待驗證的階段,請重新發起付款。",
|
|
57
|
+
"error.internal_error": "系統發生錯誤,請重試。",
|
|
58
|
+
"error.invalid_card_number": "卡號無效。",
|
|
59
|
+
"error.invalid_expiry": "有效日期無效。",
|
|
60
|
+
"error.invalid_threeds_result": "無法核實驗證結果,請重試。",
|
|
61
|
+
"error.merchant_misconfigured": "商戶的付款設定尚未就緒,請聯絡商戶。",
|
|
62
|
+
"error.method_not_allowed": "不支援此操作方式。",
|
|
63
|
+
"error.network_error": "網絡連線錯誤,請檢查網絡後重試。",
|
|
64
|
+
"error.provider_error": "付款服務暫時無法處理請求,請重試。",
|
|
65
|
+
"error.refund_failed": "退款無法完成,請聯絡商戶。",
|
|
66
|
+
"error.request_invalid": "請求內容無效,請確認資料後重試。",
|
|
67
|
+
"error.saved_card_disabled": "此已儲存卡片已停用,請改用其他卡片。",
|
|
68
|
+
"error.saved_card_not_found": "找不到此已儲存卡片,請改用其他卡片。",
|
|
69
|
+
"error.session_already_used": "此付款工作階段已使用,請重新發起付款。",
|
|
70
|
+
"error.session_expired": "付款工作階段已過期,請重試。",
|
|
71
|
+
"error.threeds_action_external_not_supported_for_setup": "此驗證方式不適用於驗證卡片,請重試。",
|
|
72
|
+
"error.threeds_action_force_not_supported": "此付款不支援強制驗證,請重試。",
|
|
73
|
+
"error.threeds_result_required": "需要驗證結果,請完成驗證後重試。",
|
|
74
|
+
"error.token_not_chargeable": "此卡片無法扣款,請改用其他卡片。",
|
|
75
|
+
"error.token_not_found": "此卡片已不可用,請重新加入卡片。",
|
|
76
|
+
"error.transaction_not_permitted": "此交易不被允許,請聯絡發卡銀行或商戶。"
|
|
51
77
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pa-sdk-react-native",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.4",
|
|
4
4
|
"description": "Payment Asia card payment SDK for React Native — headless card validation, tokenization, payment confirmation with built-in 3D Secure, card saving and multi-market merchant accounts.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -9,8 +9,16 @@
|
|
|
9
9
|
"locales",
|
|
10
10
|
"native",
|
|
11
11
|
"scripts",
|
|
12
|
+
"example",
|
|
12
13
|
"pa-sdk-react-native.podspec",
|
|
13
|
-
"README.md"
|
|
14
|
+
"README.md",
|
|
15
|
+
"!example/node_modules",
|
|
16
|
+
"!example/android/build",
|
|
17
|
+
"!example/android/.gradle",
|
|
18
|
+
"!example/android/app/build",
|
|
19
|
+
"!example/android/app/.cxx",
|
|
20
|
+
"!example/ios/build",
|
|
21
|
+
"!example/ios/Pods"
|
|
14
22
|
],
|
|
15
23
|
"scripts": {
|
|
16
24
|
"build": "tsc",
|