react-native-tpay 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +22 -0
- package/README.md +555 -0
- package/android/build.gradle +95 -0
- package/android/gradle.properties +5 -0
- package/android/src/main/AndroidManifest.xml +3 -0
- package/android/src/main/AndroidManifestNew.xml +2 -0
- package/android/src/main/java/com/tpay/TpayAmbiguousBLIKPaymentHandler.kt +21 -0
- package/android/src/main/java/com/tpay/TpayModule.kt +528 -0
- package/android/src/main/java/com/tpay/TpayPackage.kt +17 -0
- package/android/src/main/java/com/tpay/TpayResult.kt +12 -0
- package/android/src/main/java/com/tpay/TpayScreenlessPaymentHandler.kt +102 -0
- package/android/src/main/java/com/tpay/TpayScreenlessResult.kt +25 -0
- package/android/src/main/java/com/tpay/TpayScreenlessResultHandler.kt +121 -0
- package/android/src/main/java/com/tpay/delegate/AddCardDelegateImpl.kt +30 -0
- package/android/src/main/java/com/tpay/delegate/PaymentDelegateImpl.kt +33 -0
- package/android/src/main/java/com/tpay/extension/AmbiguousAlias+.kt +11 -0
- package/android/src/main/java/com/tpay/extension/BlikAlias+.kt +18 -0
- package/android/src/main/java/com/tpay/extension/CardTokenTransaction+.kt +19 -0
- package/android/src/main/java/com/tpay/extension/Exception.kt +3 -0
- package/android/src/main/java/com/tpay/extension/JSONObject+.kt +10 -0
- package/android/src/main/java/com/tpay/extension/PaymentChannel+.kt +22 -0
- package/android/src/main/java/com/tpay/extension/PaymentConstraint+.kt +24 -0
- package/android/src/main/java/com/tpay/extension/PaymentGroup+.kt +21 -0
- package/android/src/main/java/com/tpay/extension/SingleTransaction+.kt +14 -0
- package/android/src/main/java/com/tpay/extension/String+.kt +30 -0
- package/android/src/main/java/com/tpay/model/CertificateConfiguration.kt +20 -0
- package/android/src/main/java/com/tpay/model/Configuration.kt +5 -0
- package/android/src/main/java/com/tpay/model/ConfigurationMerchant.kt +33 -0
- package/android/src/main/java/com/tpay/model/Languages.kt +24 -0
- package/android/src/main/java/com/tpay/model/LocalizedString.kt +21 -0
- package/android/src/main/java/com/tpay/model/MerchantAuthorization.kt +20 -0
- package/android/src/main/java/com/tpay/model/MerchantDetails.kt +32 -0
- package/android/src/main/java/com/tpay/model/PaymentMethods.kt +90 -0
- package/android/src/main/java/com/tpay/model/TpayConfiguration.kt +50 -0
- package/android/src/main/java/com/tpay/model/WalletConfiguration.kt +14 -0
- package/android/src/main/java/com/tpay/model/googlePay/GooglePayConfiguration.kt +13 -0
- package/android/src/main/java/com/tpay/model/googlePay/GooglePayConfigureResult.kt +6 -0
- package/android/src/main/java/com/tpay/model/googlePay/GooglePayUtilsConfiguration.kt +57 -0
- package/android/src/main/java/com/tpay/model/screenless/AmbiguousBLIKAlias.kt +35 -0
- package/android/src/main/java/com/tpay/model/screenless/AmbiguousBLIKPayment.kt +26 -0
- package/android/src/main/java/com/tpay/model/screenless/BLIKScreenlessPayment.kt +28 -0
- package/android/src/main/java/com/tpay/model/screenless/CreditCardData.kt +10 -0
- package/android/src/main/java/com/tpay/model/screenless/CreditCardScreenlessPayment.kt +75 -0
- package/android/src/main/java/com/tpay/model/screenless/ExpirationDate.kt +22 -0
- package/android/src/main/java/com/tpay/model/screenless/GooglePayScreenlessPayment.kt +19 -0
- package/android/src/main/java/com/tpay/model/screenless/PaymentConstraintType.kt +5 -0
- package/android/src/main/java/com/tpay/model/screenless/RatyPekaoScreenlessPayment.kt +9 -0
- package/android/src/main/java/com/tpay/model/screenless/ScreenlessPayment.kt +87 -0
- package/android/src/main/java/com/tpay/model/screenless/TransferScreenlessPayment.kt +9 -0
- package/android/src/main/java/com/tpay/util/JsonUtil.kt +178 -0
- package/android/src/main/java/com/tpay/util/TpayBackpressUtil.kt +23 -0
- package/android/src/main/java/com/tpay/util/TpayUtil.kt +67 -0
- package/android/src/main/java/com/tpay/util/ValidationMessages.kt +19 -0
- package/ios/Source/Configuration/MerchantConfiguration.swift +120 -0
- package/ios/Source/Configuration/PaymentMethodConfiguration.swift +41 -0
- package/ios/Source/Configuration/TransactionConfiguration.swift +200 -0
- package/ios/Source/Extension/TPay+Setup.swift +32 -0
- package/ios/Source/Model/Domain/BankPayment.swift +12 -0
- package/ios/Source/Model/Domain/BlikPayment.swift +14 -0
- package/ios/Source/Model/Domain/CardPayment.swift +14 -0
- package/ios/Source/Model/Domain/ConfigurationResult.swift +98 -0
- package/ios/Source/Model/Domain/ContinuePayment.swift +10 -0
- package/ios/Source/Model/Domain/DigitalWalletPayment.swift +13 -0
- package/ios/Source/Model/Domain/PaymentChannelResult.swift +44 -0
- package/ios/Source/Model/Domain/ScreenlessResult.swift +67 -0
- package/ios/Source/Model/Domain/TokenisationData.swift +16 -0
- package/ios/Source/Model/Transportation/Transportation+AmbiguousAlias.swift +10 -0
- package/ios/Source/Model/Transportation/Transportation+Bank.swift +11 -0
- package/ios/Source/Model/Transportation/Transportation+BankPayment.swift +13 -0
- package/ios/Source/Model/Transportation/Transportation+BlikPayment+Alias.swift +9 -0
- package/ios/Source/Model/Transportation/Transportation+BlikPayment.swift +13 -0
- package/ios/Source/Model/Transportation/Transportation+Callbacks+Notifications.swift +10 -0
- package/ios/Source/Model/Transportation/Transportation+Callbacks+Redirects.swift +10 -0
- package/ios/Source/Model/Transportation/Transportation+Callbacks.swift +10 -0
- package/ios/Source/Model/Transportation/Transportation+CardDetails+Configuration.swift +9 -0
- package/ios/Source/Model/Transportation/Transportation+CardDetails+ExpiryDate.swift +10 -0
- package/ios/Source/Model/Transportation/Transportation+CardDetails.swift +12 -0
- package/ios/Source/Model/Transportation/Transportation+CardPayment.swift +13 -0
- package/ios/Source/Model/Transportation/Transportation+CardToken.swift +11 -0
- package/ios/Source/Model/Transportation/Transportation+ContinuePayment.swift +11 -0
- package/ios/Source/Model/Transportation/Transportation+DigitalWalletPayment.swift +12 -0
- package/ios/Source/Model/Transportation/Transportation+Environment.swift +23 -0
- package/ios/Source/Model/Transportation/Transportation+Languages.swift +10 -0
- package/ios/Source/Model/Transportation/Transportation+Merchant+Authorization.swift +10 -0
- package/ios/Source/Model/Transportation/Transportation+Merchant+CertificatePinning.swift +9 -0
- package/ios/Source/Model/Transportation/Transportation+Merchant+WalletConfiguration+ApplePay.swift +10 -0
- package/ios/Source/Model/Transportation/Transportation+Merchant+WalletConfiguration.swift +9 -0
- package/ios/Source/Model/Transportation/Transportation+Merchant.swift +13 -0
- package/ios/Source/Model/Transportation/Transportation+MerchantConfiguration.swift +12 -0
- package/ios/Source/Model/Transportation/Transportation+MerchantDetails+Detail.swift +10 -0
- package/ios/Source/Model/Transportation/Transportation+MerchantDetails.swift +11 -0
- package/ios/Source/Model/Transportation/Transportation+Payer+Address.swift +12 -0
- package/ios/Source/Model/Transportation/Transportation+Payer.swift +12 -0
- package/ios/Source/Model/Transportation/Transportation+PayerContext+AutomaticPaymentMethods+BlikAlias.swift +9 -0
- package/ios/Source/Model/Transportation/Transportation+PayerContext+AutomaticPaymentMethods.swift +10 -0
- package/ios/Source/Model/Transportation/Transportation+PayerContext.swift +10 -0
- package/ios/Source/Model/Transportation/Transportation+PaymentChannel.swift +21 -0
- package/ios/Source/Model/Transportation/Transportation+PaymentDetails.swift +10 -0
- package/ios/Source/Model/Transportation/Transportation+PaymentMethod.swift +47 -0
- package/ios/Source/Model/Transportation/Transportation+PaymentMethods.swift +11 -0
- package/ios/Source/Model/Transportation/Transportation+PaymentMethodsInfo.swift +12 -0
- package/ios/Source/Model/Transportation/Transportation+SingleTransaction.swift +11 -0
- package/ios/Source/Model/Transportation/Transportation+TokenPayment.swift +12 -0
- package/ios/Source/Model/Transportation/Transportation+Tokenisation.swift +12 -0
- package/ios/Source/Model/Transportation/Transportation.swift +3 -0
- package/ios/Source/Presentation/AddCardPresentation.swift +43 -0
- package/ios/Source/Presentation/CardTokenPresentation.swift +48 -0
- package/ios/Source/Presentation/PaymentPresentation.swift +48 -0
- package/ios/Source/Provider/DefaultMerchantDetailsProvider.swift +32 -0
- package/ios/Source/Provider/DefaultSSLCertificatesProvider.swift +14 -0
- package/ios/Source/TpaySDK.mm +35 -0
- package/ios/Source/TpaySDK.swift +324 -0
- package/ios/Tpay-Bridging-Header.h +2 -0
- package/lib/commonjs/assets/tpay_logo.png +0 -0
- package/lib/commonjs/assets/tpay_logo@2x.png +0 -0
- package/lib/commonjs/assets/tpay_logo@3x.png +0 -0
- package/lib/commonjs/component/tpay_button.js +38 -0
- package/lib/commonjs/component/tpay_button.js.map +1 -0
- package/lib/commonjs/index.js +856 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/model/language/language.js +12 -0
- package/lib/commonjs/model/language/language.js.map +1 -0
- package/lib/commonjs/model/language/languages.js +21 -0
- package/lib/commonjs/model/language/languages.js.map +1 -0
- package/lib/commonjs/model/language/localized_string.js +17 -0
- package/lib/commonjs/model/language/localized_string.js.map +1 -0
- package/lib/commonjs/model/merchant/apple_pay_configuration.js +22 -0
- package/lib/commonjs/model/merchant/apple_pay_configuration.js.map +1 -0
- package/lib/commonjs/model/merchant/certificate_configuration.js +20 -0
- package/lib/commonjs/model/merchant/certificate_configuration.js.map +1 -0
- package/lib/commonjs/model/merchant/google_pay_configuration.js +19 -0
- package/lib/commonjs/model/merchant/google_pay_configuration.js.map +1 -0
- package/lib/commonjs/model/merchant/merchant.js +27 -0
- package/lib/commonjs/model/merchant/merchant.js.map +1 -0
- package/lib/commonjs/model/merchant/merchant_authorization.js +21 -0
- package/lib/commonjs/model/merchant/merchant_authorization.js.map +1 -0
- package/lib/commonjs/model/merchant/merchant_details.js +23 -0
- package/lib/commonjs/model/merchant/merchant_details.js.map +1 -0
- package/lib/commonjs/model/merchant/tpay_environment.js +12 -0
- package/lib/commonjs/model/merchant/tpay_environment.js.map +1 -0
- package/lib/commonjs/model/merchant/wallet_configuration.js +21 -0
- package/lib/commonjs/model/merchant/wallet_configuration.js.map +1 -0
- package/lib/commonjs/model/payer/address.js +25 -0
- package/lib/commonjs/model/payer/address.js.map +1 -0
- package/lib/commonjs/model/payer/payer.js +25 -0
- package/lib/commonjs/model/payer/payer.js.map +1 -0
- package/lib/commonjs/model/payer/payer_context.js +21 -0
- package/lib/commonjs/model/payer/payer_context.js.map +1 -0
- package/lib/commonjs/model/payment_channel/payment_channel.js +35 -0
- package/lib/commonjs/model/payment_channel/payment_channel.js.map +1 -0
- package/lib/commonjs/model/payment_channel/payment_constraint.js +47 -0
- package/lib/commonjs/model/payment_channel/payment_constraint.js.map +1 -0
- package/lib/commonjs/model/payment_channel/payment_group.js +30 -0
- package/lib/commonjs/model/payment_channel/payment_group.js.map +1 -0
- package/lib/commonjs/model/payment_method/automatic_payment_methods.js +21 -0
- package/lib/commonjs/model/payment_method/automatic_payment_methods.js.map +1 -0
- package/lib/commonjs/model/payment_method/blik_alias.js +23 -0
- package/lib/commonjs/model/payment_method/blik_alias.js.map +1 -0
- package/lib/commonjs/model/payment_method/credit_card_brand.js +16 -0
- package/lib/commonjs/model/payment_method/credit_card_brand.js.map +1 -0
- package/lib/commonjs/model/payment_method/digital_wallet.js +15 -0
- package/lib/commonjs/model/payment_method/digital_wallet.js.map +1 -0
- package/lib/commonjs/model/payment_method/installment_payment.js +14 -0
- package/lib/commonjs/model/payment_method/installment_payment.js.map +1 -0
- package/lib/commonjs/model/payment_method/payment_method.js +16 -0
- package/lib/commonjs/model/payment_method/payment_method.js.map +1 -0
- package/lib/commonjs/model/payment_method/payment_methods.js +23 -0
- package/lib/commonjs/model/payment_method/payment_methods.js.map +1 -0
- package/lib/commonjs/model/payment_method/tokenized_card.js +23 -0
- package/lib/commonjs/model/payment_method/tokenized_card.js.map +1 -0
- package/lib/commonjs/model/result/google_pay_configure_result.js +33 -0
- package/lib/commonjs/model/result/google_pay_configure_result.js.map +1 -0
- package/lib/commonjs/model/result/google_pay_open_result.js +61 -0
- package/lib/commonjs/model/result/google_pay_open_result.js.map +1 -0
- package/lib/commonjs/model/result/payment_channels_result.js +42 -0
- package/lib/commonjs/model/result/payment_channels_result.js.map +1 -0
- package/lib/commonjs/model/result/result.js +96 -0
- package/lib/commonjs/model/result/result.js.map +1 -0
- package/lib/commonjs/model/result/screenless_result.js +141 -0
- package/lib/commonjs/model/result/screenless_result.js.map +1 -0
- package/lib/commonjs/model/screenless/ambiguous_alias.js +25 -0
- package/lib/commonjs/model/screenless/ambiguous_alias.js.map +1 -0
- package/lib/commonjs/model/screenless/ambiguous_blik_payment.js +23 -0
- package/lib/commonjs/model/screenless/ambiguous_blik_payment.js.map +1 -0
- package/lib/commonjs/model/screenless/apple_pay_payment.js +21 -0
- package/lib/commonjs/model/screenless/apple_pay_payment.js.map +1 -0
- package/lib/commonjs/model/screenless/blik_payment.js +26 -0
- package/lib/commonjs/model/screenless/blik_payment.js.map +1 -0
- package/lib/commonjs/model/screenless/callbacks.js +21 -0
- package/lib/commonjs/model/screenless/callbacks.js.map +1 -0
- package/lib/commonjs/model/screenless/credit_card.js +25 -0
- package/lib/commonjs/model/screenless/credit_card.js.map +1 -0
- package/lib/commonjs/model/screenless/credit_card_config.js +22 -0
- package/lib/commonjs/model/screenless/credit_card_config.js.map +1 -0
- package/lib/commonjs/model/screenless/credit_card_payment.js +26 -0
- package/lib/commonjs/model/screenless/credit_card_payment.js.map +1 -0
- package/lib/commonjs/model/screenless/expiration_date.js +21 -0
- package/lib/commonjs/model/screenless/expiration_date.js.map +1 -0
- package/lib/commonjs/model/screenless/frequency.js +18 -0
- package/lib/commonjs/model/screenless/frequency.js.map +1 -0
- package/lib/commonjs/model/screenless/google_pay_environment.js +15 -0
- package/lib/commonjs/model/screenless/google_pay_environment.js.map +1 -0
- package/lib/commonjs/model/screenless/google_pay_payment.js +21 -0
- package/lib/commonjs/model/screenless/google_pay_payment.js.map +1 -0
- package/lib/commonjs/model/screenless/google_pay_utils_configuration.js +27 -0
- package/lib/commonjs/model/screenless/google_pay_utils_configuration.js.map +1 -0
- package/lib/commonjs/model/screenless/notifications.js +21 -0
- package/lib/commonjs/model/screenless/notifications.js.map +1 -0
- package/lib/commonjs/model/screenless/payment_details.js +25 -0
- package/lib/commonjs/model/screenless/payment_details.js.map +1 -0
- package/lib/commonjs/model/screenless/raty_pekao_payment.js +21 -0
- package/lib/commonjs/model/screenless/raty_pekao_payment.js.map +1 -0
- package/lib/commonjs/model/screenless/recursive.js +23 -0
- package/lib/commonjs/model/screenless/recursive.js.map +1 -0
- package/lib/commonjs/model/screenless/redirects.js +21 -0
- package/lib/commonjs/model/screenless/redirects.js.map +1 -0
- package/lib/commonjs/model/screenless/screenless_payment.js +23 -0
- package/lib/commonjs/model/screenless/screenless_payment.js.map +1 -0
- package/lib/commonjs/model/screenless/transfer_payment.js +21 -0
- package/lib/commonjs/model/screenless/transfer_payment.js.map +1 -0
- package/lib/commonjs/model/tokenization/tokenization.js +21 -0
- package/lib/commonjs/model/tokenization/tokenization.js.map +1 -0
- package/lib/commonjs/model/tpay_configuration.js +25 -0
- package/lib/commonjs/model/tpay_configuration.js.map +1 -0
- package/lib/commonjs/model/transaction/single_transaction.js +24 -0
- package/lib/commonjs/model/transaction/single_transaction.js.map +1 -0
- package/lib/commonjs/model/transaction/token_payment.js +26 -0
- package/lib/commonjs/model/transaction/token_payment.js.map +1 -0
- package/lib/commonjs/model/transaction/transaction.js +23 -0
- package/lib/commonjs/model/transaction/transaction.js.map +1 -0
- package/lib/commonjs/util/google_pay_configuration_util.js +22 -0
- package/lib/commonjs/util/google_pay_configuration_util.js.map +1 -0
- package/lib/commonjs/util/google_pay_open_util.js +24 -0
- package/lib/commonjs/util/google_pay_open_util.js.map +1 -0
- package/lib/commonjs/util/payment_channels_util.js +22 -0
- package/lib/commonjs/util/payment_channels_util.js.map +1 -0
- package/lib/commonjs/util/result_util.js +40 -0
- package/lib/commonjs/util/result_util.js.map +1 -0
- package/lib/commonjs/util/screenless_result_util.js +38 -0
- package/lib/commonjs/util/screenless_result_util.js.map +1 -0
- package/lib/module/assets/tpay_logo.png +0 -0
- package/lib/module/assets/tpay_logo@2x.png +0 -0
- package/lib/module/assets/tpay_logo@3x.png +0 -0
- package/lib/module/component/tpay_button.js +31 -0
- package/lib/module/component/tpay_button.js.map +1 -0
- package/lib/module/index.js +204 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/model/language/language.js +6 -0
- package/lib/module/model/language/language.js.map +1 -0
- package/lib/module/model/language/languages.js +14 -0
- package/lib/module/model/language/languages.js.map +1 -0
- package/lib/module/model/language/localized_string.js +10 -0
- package/lib/module/model/language/localized_string.js.map +1 -0
- package/lib/module/model/merchant/apple_pay_configuration.js +15 -0
- package/lib/module/model/merchant/apple_pay_configuration.js.map +1 -0
- package/lib/module/model/merchant/certificate_configuration.js +13 -0
- package/lib/module/model/merchant/certificate_configuration.js.map +1 -0
- package/lib/module/model/merchant/google_pay_configuration.js +12 -0
- package/lib/module/model/merchant/google_pay_configuration.js.map +1 -0
- package/lib/module/model/merchant/merchant.js +20 -0
- package/lib/module/model/merchant/merchant.js.map +1 -0
- package/lib/module/model/merchant/merchant_authorization.js +14 -0
- package/lib/module/model/merchant/merchant_authorization.js.map +1 -0
- package/lib/module/model/merchant/merchant_details.js +16 -0
- package/lib/module/model/merchant/merchant_details.js.map +1 -0
- package/lib/module/model/merchant/tpay_environment.js +6 -0
- package/lib/module/model/merchant/tpay_environment.js.map +1 -0
- package/lib/module/model/merchant/wallet_configuration.js +14 -0
- package/lib/module/model/merchant/wallet_configuration.js.map +1 -0
- package/lib/module/model/payer/address.js +18 -0
- package/lib/module/model/payer/address.js.map +1 -0
- package/lib/module/model/payer/payer.js +18 -0
- package/lib/module/model/payer/payer.js.map +1 -0
- package/lib/module/model/payer/payer_context.js +14 -0
- package/lib/module/model/payer/payer_context.js.map +1 -0
- package/lib/module/model/payment_channel/payment_channel.js +28 -0
- package/lib/module/model/payment_channel/payment_channel.js.map +1 -0
- package/lib/module/model/payment_channel/payment_constraint.js +40 -0
- package/lib/module/model/payment_channel/payment_constraint.js.map +1 -0
- package/lib/module/model/payment_channel/payment_group.js +23 -0
- package/lib/module/model/payment_channel/payment_group.js.map +1 -0
- package/lib/module/model/payment_method/automatic_payment_methods.js +14 -0
- package/lib/module/model/payment_method/automatic_payment_methods.js.map +1 -0
- package/lib/module/model/payment_method/blik_alias.js +16 -0
- package/lib/module/model/payment_method/blik_alias.js.map +1 -0
- package/lib/module/model/payment_method/credit_card_brand.js +10 -0
- package/lib/module/model/payment_method/credit_card_brand.js.map +1 -0
- package/lib/module/model/payment_method/digital_wallet.js +9 -0
- package/lib/module/model/payment_method/digital_wallet.js.map +1 -0
- package/lib/module/model/payment_method/installment_payment.js +8 -0
- package/lib/module/model/payment_method/installment_payment.js.map +1 -0
- package/lib/module/model/payment_method/payment_method.js +10 -0
- package/lib/module/model/payment_method/payment_method.js.map +1 -0
- package/lib/module/model/payment_method/payment_methods.js +16 -0
- package/lib/module/model/payment_method/payment_methods.js.map +1 -0
- package/lib/module/model/payment_method/tokenized_card.js +16 -0
- package/lib/module/model/payment_method/tokenized_card.js.map +1 -0
- package/lib/module/model/result/google_pay_configure_result.js +24 -0
- package/lib/module/model/result/google_pay_configure_result.js.map +1 -0
- package/lib/module/model/result/google_pay_open_result.js +50 -0
- package/lib/module/model/result/google_pay_open_result.js.map +1 -0
- package/lib/module/model/result/payment_channels_result.js +33 -0
- package/lib/module/model/result/payment_channels_result.js.map +1 -0
- package/lib/module/model/result/result.js +81 -0
- package/lib/module/model/result/result.js.map +1 -0
- package/lib/module/model/result/screenless_result.js +127 -0
- package/lib/module/model/result/screenless_result.js.map +1 -0
- package/lib/module/model/screenless/ambiguous_alias.js +18 -0
- package/lib/module/model/screenless/ambiguous_alias.js.map +1 -0
- package/lib/module/model/screenless/ambiguous_blik_payment.js +16 -0
- package/lib/module/model/screenless/ambiguous_blik_payment.js.map +1 -0
- package/lib/module/model/screenless/apple_pay_payment.js +15 -0
- package/lib/module/model/screenless/apple_pay_payment.js.map +1 -0
- package/lib/module/model/screenless/blik_payment.js +20 -0
- package/lib/module/model/screenless/blik_payment.js.map +1 -0
- package/lib/module/model/screenless/callbacks.js +14 -0
- package/lib/module/model/screenless/callbacks.js.map +1 -0
- package/lib/module/model/screenless/credit_card.js +18 -0
- package/lib/module/model/screenless/credit_card.js.map +1 -0
- package/lib/module/model/screenless/credit_card_config.js +15 -0
- package/lib/module/model/screenless/credit_card_config.js.map +1 -0
- package/lib/module/model/screenless/credit_card_payment.js +20 -0
- package/lib/module/model/screenless/credit_card_payment.js.map +1 -0
- package/lib/module/model/screenless/expiration_date.js +14 -0
- package/lib/module/model/screenless/expiration_date.js.map +1 -0
- package/lib/module/model/screenless/frequency.js +12 -0
- package/lib/module/model/screenless/frequency.js.map +1 -0
- package/lib/module/model/screenless/google_pay_environment.js +9 -0
- package/lib/module/model/screenless/google_pay_environment.js.map +1 -0
- package/lib/module/model/screenless/google_pay_payment.js +15 -0
- package/lib/module/model/screenless/google_pay_payment.js.map +1 -0
- package/lib/module/model/screenless/google_pay_utils_configuration.js +20 -0
- package/lib/module/model/screenless/google_pay_utils_configuration.js.map +1 -0
- package/lib/module/model/screenless/notifications.js +14 -0
- package/lib/module/model/screenless/notifications.js.map +1 -0
- package/lib/module/model/screenless/payment_details.js +18 -0
- package/lib/module/model/screenless/payment_details.js.map +1 -0
- package/lib/module/model/screenless/raty_pekao_payment.js +15 -0
- package/lib/module/model/screenless/raty_pekao_payment.js.map +1 -0
- package/lib/module/model/screenless/recursive.js +16 -0
- package/lib/module/model/screenless/recursive.js.map +1 -0
- package/lib/module/model/screenless/redirects.js +14 -0
- package/lib/module/model/screenless/redirects.js.map +1 -0
- package/lib/module/model/screenless/screenless_payment.js +16 -0
- package/lib/module/model/screenless/screenless_payment.js.map +1 -0
- package/lib/module/model/screenless/transfer_payment.js +15 -0
- package/lib/module/model/screenless/transfer_payment.js.map +1 -0
- package/lib/module/model/tokenization/tokenization.js +14 -0
- package/lib/module/model/tokenization/tokenization.js.map +1 -0
- package/lib/module/model/tpay_configuration.js +18 -0
- package/lib/module/model/tpay_configuration.js.map +1 -0
- package/lib/module/model/transaction/single_transaction.js +18 -0
- package/lib/module/model/transaction/single_transaction.js.map +1 -0
- package/lib/module/model/transaction/token_payment.js +20 -0
- package/lib/module/model/transaction/token_payment.js.map +1 -0
- package/lib/module/model/transaction/transaction.js +16 -0
- package/lib/module/model/transaction/transaction.js.map +1 -0
- package/lib/module/util/google_pay_configuration_util.js +16 -0
- package/lib/module/util/google_pay_configuration_util.js.map +1 -0
- package/lib/module/util/google_pay_open_util.js +18 -0
- package/lib/module/util/google_pay_open_util.js.map +1 -0
- package/lib/module/util/payment_channels_util.js +16 -0
- package/lib/module/util/payment_channels_util.js.map +1 -0
- package/lib/module/util/result_util.js +41 -0
- package/lib/module/util/result_util.js.map +1 -0
- package/lib/module/util/screenless_result_util.js +32 -0
- package/lib/module/util/screenless_result_util.js.map +1 -0
- package/lib/typescript/src/component/tpay_button.d.ts +13 -0
- package/lib/typescript/src/component/tpay_button.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +147 -0
- package/lib/typescript/src/index.d.ts.map +1 -0
- package/lib/typescript/src/model/language/language.d.ts +5 -0
- package/lib/typescript/src/model/language/language.d.ts.map +1 -0
- package/lib/typescript/src/model/language/languages.d.ts +14 -0
- package/lib/typescript/src/model/language/languages.d.ts.map +1 -0
- package/lib/typescript/src/model/language/localized_string.d.ts +10 -0
- package/lib/typescript/src/model/language/localized_string.d.ts.map +1 -0
- package/lib/typescript/src/model/merchant/apple_pay_configuration.d.ts +14 -0
- package/lib/typescript/src/model/merchant/apple_pay_configuration.d.ts.map +1 -0
- package/lib/typescript/src/model/merchant/certificate_configuration.d.ts +12 -0
- package/lib/typescript/src/model/merchant/certificate_configuration.d.ts.map +1 -0
- package/lib/typescript/src/model/merchant/google_pay_configuration.d.ts +11 -0
- package/lib/typescript/src/model/merchant/google_pay_configuration.d.ts.map +1 -0
- package/lib/typescript/src/model/merchant/merchant.d.ts +23 -0
- package/lib/typescript/src/model/merchant/merchant.d.ts.map +1 -0
- package/lib/typescript/src/model/merchant/merchant_authorization.d.ts +13 -0
- package/lib/typescript/src/model/merchant/merchant_authorization.d.ts.map +1 -0
- package/lib/typescript/src/model/merchant/merchant_details.d.ts +16 -0
- package/lib/typescript/src/model/merchant/merchant_details.d.ts.map +1 -0
- package/lib/typescript/src/model/merchant/tpay_environment.d.ts +5 -0
- package/lib/typescript/src/model/merchant/tpay_environment.d.ts.map +1 -0
- package/lib/typescript/src/model/merchant/wallet_configuration.d.ts +15 -0
- package/lib/typescript/src/model/merchant/wallet_configuration.d.ts.map +1 -0
- package/lib/typescript/src/model/payer/address.d.ts +17 -0
- package/lib/typescript/src/model/payer/address.d.ts.map +1 -0
- package/lib/typescript/src/model/payer/payer.d.ts +18 -0
- package/lib/typescript/src/model/payer/payer.d.ts.map +1 -0
- package/lib/typescript/src/model/payer/payer_context.d.ts +15 -0
- package/lib/typescript/src/model/payer/payer_context.d.ts.map +1 -0
- package/lib/typescript/src/model/payment_channel/payment_channel.d.ts +24 -0
- package/lib/typescript/src/model/payment_channel/payment_channel.d.ts.map +1 -0
- package/lib/typescript/src/model/payment_channel/payment_constraint.d.ts +31 -0
- package/lib/typescript/src/model/payment_channel/payment_constraint.d.ts.map +1 -0
- package/lib/typescript/src/model/payment_channel/payment_group.d.ts +19 -0
- package/lib/typescript/src/model/payment_channel/payment_group.d.ts.map +1 -0
- package/lib/typescript/src/model/payment_method/automatic_payment_methods.d.ts +15 -0
- package/lib/typescript/src/model/payment_method/automatic_payment_methods.d.ts.map +1 -0
- package/lib/typescript/src/model/payment_method/blik_alias.d.ts +15 -0
- package/lib/typescript/src/model/payment_method/blik_alias.d.ts.map +1 -0
- package/lib/typescript/src/model/payment_method/credit_card_brand.d.ts +9 -0
- package/lib/typescript/src/model/payment_method/credit_card_brand.d.ts.map +1 -0
- package/lib/typescript/src/model/payment_method/digital_wallet.d.ts +8 -0
- package/lib/typescript/src/model/payment_method/digital_wallet.d.ts.map +1 -0
- package/lib/typescript/src/model/payment_method/installment_payment.d.ts +7 -0
- package/lib/typescript/src/model/payment_method/installment_payment.d.ts.map +1 -0
- package/lib/typescript/src/model/payment_method/payment_method.d.ts +9 -0
- package/lib/typescript/src/model/payment_method/payment_method.d.ts.map +1 -0
- package/lib/typescript/src/model/payment_method/payment_methods.d.ts +18 -0
- package/lib/typescript/src/model/payment_method/payment_methods.d.ts.map +1 -0
- package/lib/typescript/src/model/payment_method/tokenized_card.d.ts +16 -0
- package/lib/typescript/src/model/payment_method/tokenized_card.d.ts.map +1 -0
- package/lib/typescript/src/model/result/google_pay_configure_result.d.ts +21 -0
- package/lib/typescript/src/model/result/google_pay_configure_result.d.ts.map +1 -0
- package/lib/typescript/src/model/result/google_pay_open_result.d.ts +44 -0
- package/lib/typescript/src/model/result/google_pay_open_result.d.ts.map +1 -0
- package/lib/typescript/src/model/result/payment_channels_result.d.ts +27 -0
- package/lib/typescript/src/model/result/payment_channels_result.d.ts.map +1 -0
- package/lib/typescript/src/model/result/result.d.ts +66 -0
- package/lib/typescript/src/model/result/result.d.ts.map +1 -0
- package/lib/typescript/src/model/result/screenless_result.d.ts +98 -0
- package/lib/typescript/src/model/result/screenless_result.d.ts.map +1 -0
- package/lib/typescript/src/model/screenless/ambiguous_alias.d.ts +15 -0
- package/lib/typescript/src/model/screenless/ambiguous_alias.d.ts.map +1 -0
- package/lib/typescript/src/model/screenless/ambiguous_blik_payment.d.ts +17 -0
- package/lib/typescript/src/model/screenless/ambiguous_blik_payment.d.ts.map +1 -0
- package/lib/typescript/src/model/screenless/apple_pay_payment.d.ts +15 -0
- package/lib/typescript/src/model/screenless/apple_pay_payment.d.ts.map +1 -0
- package/lib/typescript/src/model/screenless/blik_payment.d.ts +21 -0
- package/lib/typescript/src/model/screenless/blik_payment.d.ts.map +1 -0
- package/lib/typescript/src/model/screenless/callbacks.d.ts +15 -0
- package/lib/typescript/src/model/screenless/callbacks.d.ts.map +1 -0
- package/lib/typescript/src/model/screenless/credit_card.d.ts +19 -0
- package/lib/typescript/src/model/screenless/credit_card.d.ts.map +1 -0
- package/lib/typescript/src/model/screenless/credit_card_config.d.ts +14 -0
- package/lib/typescript/src/model/screenless/credit_card_config.d.ts.map +1 -0
- package/lib/typescript/src/model/screenless/credit_card_payment.d.ts +21 -0
- package/lib/typescript/src/model/screenless/credit_card_payment.d.ts.map +1 -0
- package/lib/typescript/src/model/screenless/expiration_date.d.ts +13 -0
- package/lib/typescript/src/model/screenless/expiration_date.d.ts.map +1 -0
- package/lib/typescript/src/model/screenless/frequency.d.ts +11 -0
- package/lib/typescript/src/model/screenless/frequency.d.ts.map +1 -0
- package/lib/typescript/src/model/screenless/google_pay_environment.d.ts +8 -0
- package/lib/typescript/src/model/screenless/google_pay_environment.d.ts.map +1 -0
- package/lib/typescript/src/model/screenless/google_pay_payment.d.ts +15 -0
- package/lib/typescript/src/model/screenless/google_pay_payment.d.ts.map +1 -0
- package/lib/typescript/src/model/screenless/google_pay_utils_configuration.d.ts +20 -0
- package/lib/typescript/src/model/screenless/google_pay_utils_configuration.d.ts.map +1 -0
- package/lib/typescript/src/model/screenless/notifications.d.ts +13 -0
- package/lib/typescript/src/model/screenless/notifications.d.ts.map +1 -0
- package/lib/typescript/src/model/screenless/payment_details.d.ts +18 -0
- package/lib/typescript/src/model/screenless/payment_details.d.ts.map +1 -0
- package/lib/typescript/src/model/screenless/raty_pekao_payment.d.ts +15 -0
- package/lib/typescript/src/model/screenless/raty_pekao_payment.d.ts.map +1 -0
- package/lib/typescript/src/model/screenless/recursive.d.ts +16 -0
- package/lib/typescript/src/model/screenless/recursive.d.ts.map +1 -0
- package/lib/typescript/src/model/screenless/redirects.d.ts +13 -0
- package/lib/typescript/src/model/screenless/redirects.d.ts.map +1 -0
- package/lib/typescript/src/model/screenless/screenless_payment.d.ts +18 -0
- package/lib/typescript/src/model/screenless/screenless_payment.d.ts.map +1 -0
- package/lib/typescript/src/model/screenless/transfer_payment.d.ts +15 -0
- package/lib/typescript/src/model/screenless/transfer_payment.d.ts.map +1 -0
- package/lib/typescript/src/model/tokenization/tokenization.d.ts +14 -0
- package/lib/typescript/src/model/tokenization/tokenization.d.ts.map +1 -0
- package/lib/typescript/src/model/tpay_configuration.d.ts +21 -0
- package/lib/typescript/src/model/tpay_configuration.d.ts.map +1 -0
- package/lib/typescript/src/model/transaction/single_transaction.d.ts +17 -0
- package/lib/typescript/src/model/transaction/single_transaction.d.ts.map +1 -0
- package/lib/typescript/src/model/transaction/token_payment.d.ts +19 -0
- package/lib/typescript/src/model/transaction/token_payment.d.ts.map +1 -0
- package/lib/typescript/src/model/transaction/transaction.d.ts +16 -0
- package/lib/typescript/src/model/transaction/transaction.d.ts.map +1 -0
- package/lib/typescript/src/util/google_pay_configuration_util.d.ts +3 -0
- package/lib/typescript/src/util/google_pay_configuration_util.d.ts.map +1 -0
- package/lib/typescript/src/util/google_pay_open_util.d.ts +3 -0
- package/lib/typescript/src/util/google_pay_open_util.d.ts.map +1 -0
- package/lib/typescript/src/util/payment_channels_util.d.ts +3 -0
- package/lib/typescript/src/util/payment_channels_util.d.ts.map +1 -0
- package/lib/typescript/src/util/result_util.d.ts +3 -0
- package/lib/typescript/src/util/result_util.d.ts.map +1 -0
- package/lib/typescript/src/util/screenless_result_util.d.ts +3 -0
- package/lib/typescript/src/util/screenless_result_util.d.ts.map +1 -0
- package/package.json +164 -0
- package/react-native-tpay.podspec +42 -0
- package/src/assets/tpay_logo.png +0 -0
- package/src/assets/tpay_logo@2x.png +0 -0
- package/src/assets/tpay_logo@3x.png +0 -0
- package/src/component/tpay_button.tsx +44 -0
- package/src/index.tsx +267 -0
- package/src/model/language/language.ts +4 -0
- package/src/model/language/languages.ts +21 -0
- package/src/model/language/localized_string.ts +14 -0
- package/src/model/merchant/apple_pay_configuration.ts +17 -0
- package/src/model/merchant/certificate_configuration.ts +15 -0
- package/src/model/merchant/google_pay_configuration.ts +13 -0
- package/src/model/merchant/merchant.ts +36 -0
- package/src/model/merchant/merchant_authorization.ts +16 -0
- package/src/model/merchant/merchant_details.ts +25 -0
- package/src/model/merchant/tpay_environment.ts +4 -0
- package/src/model/merchant/wallet_configuration.ts +22 -0
- package/src/model/payer/address.ts +27 -0
- package/src/model/payer/payer.ts +29 -0
- package/src/model/payer/payer_context.ts +22 -0
- package/src/model/payment_channel/payment_channel.ts +38 -0
- package/src/model/payment_channel/payment_constraint.ts +41 -0
- package/src/model/payment_channel/payment_group.ts +25 -0
- package/src/model/payment_method/automatic_payment_methods.ts +22 -0
- package/src/model/payment_method/blik_alias.ts +19 -0
- package/src/model/payment_method/credit_card_brand.ts +8 -0
- package/src/model/payment_method/digital_wallet.ts +7 -0
- package/src/model/payment_method/installment_payment.ts +6 -0
- package/src/model/payment_method/payment_method.ts +8 -0
- package/src/model/payment_method/payment_methods.ts +27 -0
- package/src/model/payment_method/tokenized_card.ts +21 -0
- package/src/model/result/google_pay_configure_result.ts +25 -0
- package/src/model/result/google_pay_open_result.ts +58 -0
- package/src/model/result/payment_channels_result.ts +36 -0
- package/src/model/result/result.ts +84 -0
- package/src/model/result/screenless_result.ts +138 -0
- package/src/model/screenless/ambiguous_alias.ts +19 -0
- package/src/model/screenless/ambiguous_blik_payment.ts +26 -0
- package/src/model/screenless/apple_pay_payment.ts +24 -0
- package/src/model/screenless/blik_payment.ts +32 -0
- package/src/model/screenless/callbacks.ts +22 -0
- package/src/model/screenless/credit_card.ts +30 -0
- package/src/model/screenless/credit_card_config.ts +18 -0
- package/src/model/screenless/credit_card_payment.ts +32 -0
- package/src/model/screenless/expiration_date.ts +16 -0
- package/src/model/screenless/frequency.ts +10 -0
- package/src/model/screenless/google_pay_environment.ts +7 -0
- package/src/model/screenless/google_pay_payment.ts +24 -0
- package/src/model/screenless/google_pay_utils_configuration.ts +33 -0
- package/src/model/screenless/notifications.ts +16 -0
- package/src/model/screenless/payment_details.ts +29 -0
- package/src/model/screenless/raty_pekao_payment.ts +24 -0
- package/src/model/screenless/recursive.ts +21 -0
- package/src/model/screenless/redirects.ts +16 -0
- package/src/model/screenless/screenless_payment.ts +27 -0
- package/src/model/screenless/transfer_payment.ts +24 -0
- package/src/model/tokenization/tokenization.ts +18 -0
- package/src/model/tpay_configuration.ts +32 -0
- package/src/model/transaction/single_transaction.ts +26 -0
- package/src/model/transaction/token_payment.ts +30 -0
- package/src/model/transaction/transaction.ts +25 -0
- package/src/util/google_pay_configuration_util.ts +25 -0
- package/src/util/google_pay_open_util.ts +31 -0
- package/src/util/payment_channels_util.ts +22 -0
- package/src/util/result_util.ts +44 -0
- package/src/util/screenless_result_util.ts +50 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_payment_channels_result","require","success","error","unknownType","mapPaymentChannelsResult","json","object","JSON","parse","type","PaymentChannelsSuccess","channels","PaymentChannelsError","message","Error"],"sourceRoot":"../../../src","sources":["util/payment_channels_util.ts"],"mappings":";;;;;;AAAA,IAAAA,wBAAA,GAAAC,OAAA;AAMA,MAAMC,OAAO,GAAG,SAAS;AACzB,MAAMC,KAAK,GAAG,OAAO;AACrB,MAAMC,WAAW,GAAG,qBAAqB;AAElC,SAASC,wBAAwBA,CAACC,IAAY,EAAyB;EAC5E,MAAMC,MAAM,GAAGC,IAAI,CAACC,KAAK,CAACH,IAAI,CAAC;EAE/B,QAAQC,MAAM,CAACG,IAAI;IACjB,KAAKR,OAAO;MACV,OAAO,IAAIS,+CAAsB,CAACJ,MAAM,CAACK,QAAQ,CAAC;IACpD,KAAKT,KAAK;MACR,OAAO,IAAIU,6CAAoB,CAACN,MAAM,CAACO,OAAO,CAAC;IACjD;MACE,MAAMC,KAAK,CAACX,WAAW,CAAC;EAC5B;AACF"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.mapResult = mapResult;
|
|
7
|
+
var _result = require("../model/result/result");
|
|
8
|
+
const configurationSuccess = 'configurationSuccess';
|
|
9
|
+
const validationError = 'validationError';
|
|
10
|
+
const paymentCompleted = 'paymentCompleted';
|
|
11
|
+
const paymentCancelled = 'paymentCancelled';
|
|
12
|
+
const tokenizationCompleted = 'tokenizationCompleted';
|
|
13
|
+
const tokenizationFailure = 'tokenizationFailure';
|
|
14
|
+
const methodCallError = 'methodCallError';
|
|
15
|
+
const moduleClosed = 'moduleClosed';
|
|
16
|
+
const unknownResult = 'Unknown result type';
|
|
17
|
+
function mapResult(json) {
|
|
18
|
+
const object = JSON.parse(json);
|
|
19
|
+
switch (object.type) {
|
|
20
|
+
case configurationSuccess:
|
|
21
|
+
return new _result.ConfigurationSuccess();
|
|
22
|
+
case validationError:
|
|
23
|
+
return new _result.ValidationError(object.value);
|
|
24
|
+
case paymentCompleted:
|
|
25
|
+
return new _result.PaymentCompleted(object.value);
|
|
26
|
+
case paymentCancelled:
|
|
27
|
+
return new _result.PaymentCancelled(object.value);
|
|
28
|
+
case tokenizationCompleted:
|
|
29
|
+
return new _result.TokenizationCompleted();
|
|
30
|
+
case tokenizationFailure:
|
|
31
|
+
return new _result.TokenizationFailure();
|
|
32
|
+
case methodCallError:
|
|
33
|
+
return new _result.MethodCallError(object.value);
|
|
34
|
+
case moduleClosed:
|
|
35
|
+
return new _result.ModuleClosed();
|
|
36
|
+
default:
|
|
37
|
+
throw Error(unknownResult);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=result_util.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_result","require","configurationSuccess","validationError","paymentCompleted","paymentCancelled","tokenizationCompleted","tokenizationFailure","methodCallError","moduleClosed","unknownResult","mapResult","json","object","JSON","parse","type","ConfigurationSuccess","ValidationError","value","PaymentCompleted","PaymentCancelled","TokenizationCompleted","TokenizationFailure","MethodCallError","ModuleClosed","Error"],"sourceRoot":"../../../src","sources":["util/result_util.ts"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAUA,MAAMC,oBAAoB,GAAG,sBAAsB;AACnD,MAAMC,eAAe,GAAG,iBAAiB;AACzC,MAAMC,gBAAgB,GAAG,kBAAkB;AAC3C,MAAMC,gBAAgB,GAAG,kBAAkB;AAC3C,MAAMC,qBAAqB,GAAG,uBAAuB;AACrD,MAAMC,mBAAmB,GAAG,qBAAqB;AACjD,MAAMC,eAAe,GAAG,iBAAiB;AACzC,MAAMC,YAAY,GAAG,cAAc;AACnC,MAAMC,aAAa,GAAG,qBAAqB;AAEpC,SAASC,SAASA,CAACC,IAAY,EAAU;EAC9C,MAAMC,MAAM,GAAGC,IAAI,CAACC,KAAK,CAACH,IAAI,CAAC;EAE/B,QAAQC,MAAM,CAACG,IAAI;IACjB,KAAKd,oBAAoB;MACvB,OAAO,IAAIe,4BAAoB,CAAC,CAAC;IACnC,KAAKd,eAAe;MAClB,OAAO,IAAIe,uBAAe,CAACL,MAAM,CAACM,KAAK,CAAC;IAC1C,KAAKf,gBAAgB;MACnB,OAAO,IAAIgB,wBAAgB,CAACP,MAAM,CAACM,KAAK,CAAC;IAC3C,KAAKd,gBAAgB;MACnB,OAAO,IAAIgB,wBAAgB,CAACR,MAAM,CAACM,KAAK,CAAC;IAC3C,KAAKb,qBAAqB;MACxB,OAAO,IAAIgB,6BAAqB,CAAC,CAAC;IACpC,KAAKf,mBAAmB;MACtB,OAAO,IAAIgB,2BAAmB,CAAC,CAAC;IAClC,KAAKf,eAAe;MAClB,OAAO,IAAIgB,uBAAe,CAACX,MAAM,CAACM,KAAK,CAAC;IAC1C,KAAKV,YAAY;MACf,OAAO,IAAIgB,oBAAY,CAAC,CAAC;IAC3B;MACE,MAAMC,KAAK,CAAChB,aAAa,CAAC;EAC9B;AACF"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.mapScreenlessResult = mapScreenlessResult;
|
|
7
|
+
var _screenless_result = require("../model/result/screenless_result");
|
|
8
|
+
const paid = 'paid';
|
|
9
|
+
const configuredPaymentFailed = 'configuredPaymentFailed';
|
|
10
|
+
const ambiguousAlias = 'ambiguousAlias';
|
|
11
|
+
const error = 'error';
|
|
12
|
+
const paymentCreated = 'paymentCreated';
|
|
13
|
+
const validationError = 'validationError';
|
|
14
|
+
const methodCallError = 'methodCallError';
|
|
15
|
+
const unknownScreenlessResult = 'Unknown screenless result type';
|
|
16
|
+
function mapScreenlessResult(json) {
|
|
17
|
+
const object = JSON.parse(json);
|
|
18
|
+
switch (object.type) {
|
|
19
|
+
case paid:
|
|
20
|
+
return new _screenless_result.ScreenlessPaid(object.transactionId);
|
|
21
|
+
case configuredPaymentFailed:
|
|
22
|
+
return new _screenless_result.ScreenlessConfiguredPaymentFailed(object.transactionId, object.message);
|
|
23
|
+
case paymentCreated:
|
|
24
|
+
return new _screenless_result.ScreenlessPaymentCreated(object.transactionId, object.paymentUrl);
|
|
25
|
+
case ambiguousAlias:
|
|
26
|
+
const aliases = object.aliases;
|
|
27
|
+
return new _screenless_result.ScreenlessBlikAmbiguousAlias(object.transactionId, aliases);
|
|
28
|
+
case methodCallError:
|
|
29
|
+
return new _screenless_result.ScreenlessMethodCallError(object.message);
|
|
30
|
+
case error:
|
|
31
|
+
return new _screenless_result.ScreenlessPaymentError(object.message);
|
|
32
|
+
case validationError:
|
|
33
|
+
return new _screenless_result.ScreenlessValidationError(object.message);
|
|
34
|
+
default:
|
|
35
|
+
throw Error(unknownScreenlessResult);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=screenless_result_util.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_screenless_result","require","paid","configuredPaymentFailed","ambiguousAlias","error","paymentCreated","validationError","methodCallError","unknownScreenlessResult","mapScreenlessResult","json","object","JSON","parse","type","ScreenlessPaid","transactionId","ScreenlessConfiguredPaymentFailed","message","ScreenlessPaymentCreated","paymentUrl","aliases","ScreenlessBlikAmbiguousAlias","ScreenlessMethodCallError","ScreenlessPaymentError","ScreenlessValidationError","Error"],"sourceRoot":"../../../src","sources":["util/screenless_result_util.ts"],"mappings":";;;;;;AAAA,IAAAA,kBAAA,GAAAC,OAAA;AAYA,MAAMC,IAAI,GAAG,MAAM;AACnB,MAAMC,uBAAuB,GAAG,yBAAyB;AACzD,MAAMC,cAAc,GAAG,gBAAgB;AACvC,MAAMC,KAAK,GAAG,OAAO;AACrB,MAAMC,cAAc,GAAG,gBAAgB;AACvC,MAAMC,eAAe,GAAG,iBAAiB;AACzC,MAAMC,eAAe,GAAG,iBAAiB;AACzC,MAAMC,uBAAuB,GAAG,gCAAgC;AAEzD,SAASC,mBAAmBA,CAACC,IAAY,EAAoB;EAClE,MAAMC,MAAM,GAAGC,IAAI,CAACC,KAAK,CAACH,IAAI,CAAC;EAE/B,QAAQC,MAAM,CAACG,IAAI;IACjB,KAAKb,IAAI;MACP,OAAO,IAAIc,iCAAc,CAACJ,MAAM,CAACK,aAAa,CAAC;IACjD,KAAKd,uBAAuB;MAC1B,OAAO,IAAIe,oDAAiC,CAC1CN,MAAM,CAACK,aAAa,EACpBL,MAAM,CAACO,OACT,CAAC;IACH,KAAKb,cAAc;MACjB,OAAO,IAAIc,2CAAwB,CACjCR,MAAM,CAACK,aAAa,EACpBL,MAAM,CAACS,UACT,CAAC;IACH,KAAKjB,cAAc;MACjB,MAAMkB,OAA8B,GAAGV,MAAM,CAACU,OAAO;MACrD,OAAO,IAAIC,+CAA4B,CAACX,MAAM,CAACK,aAAa,EAAEK,OAAO,CAAC;IACxE,KAAKd,eAAe;MAClB,OAAO,IAAIgB,4CAAyB,CAACZ,MAAM,CAACO,OAAO,CAAC;IACtD,KAAKd,KAAK;MACR,OAAO,IAAIoB,yCAAsB,CAACb,MAAM,CAACO,OAAO,CAAC;IACnD,KAAKZ,eAAe;MAClB,OAAO,IAAImB,4CAAyB,CAACd,MAAM,CAACO,OAAO,CAAC;IACtD;MACE,MAAMQ,KAAK,CAAClB,uBAAuB,CAAC;EACxC;AACF"}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Image, Pressable, View, StyleSheet } from 'react-native';
|
|
2
|
+
import { useState } from 'react';
|
|
3
|
+
export const TpayButton = ({
|
|
4
|
+
onClick,
|
|
5
|
+
isEnabled
|
|
6
|
+
}) => {
|
|
7
|
+
const [isPressed, setIsPressed] = useState(false);
|
|
8
|
+
return /*#__PURE__*/React.createElement(Pressable, {
|
|
9
|
+
style: {
|
|
10
|
+
backgroundColor: isPressed ? '#112458' : '#2248B0',
|
|
11
|
+
borderRadius: 48
|
|
12
|
+
},
|
|
13
|
+
onPressIn: _ => setIsPressed(true),
|
|
14
|
+
onPressOut: _ => {
|
|
15
|
+
setIsPressed(false);
|
|
16
|
+
onClick();
|
|
17
|
+
},
|
|
18
|
+
disabled: !isEnabled
|
|
19
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
20
|
+
style: styles.tpayLogo
|
|
21
|
+
}, /*#__PURE__*/React.createElement(Image, {
|
|
22
|
+
source: require('../assets/tpay_logo.png')
|
|
23
|
+
})));
|
|
24
|
+
};
|
|
25
|
+
const styles = StyleSheet.create({
|
|
26
|
+
tpayLogo: {
|
|
27
|
+
alignSelf: 'center',
|
|
28
|
+
padding: 14
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
//# sourceMappingURL=tpay_button.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Image","Pressable","View","StyleSheet","useState","TpayButton","onClick","isEnabled","isPressed","setIsPressed","React","createElement","style","backgroundColor","borderRadius","onPressIn","_","onPressOut","disabled","styles","tpayLogo","source","require","create","alignSelf","padding"],"sourceRoot":"../../../src","sources":["component/tpay_button.tsx"],"mappings":"AAAA,SAASA,KAAK,EAAEC,SAAS,EAAEC,IAAI,EAAEC,UAAU,QAAQ,cAAc;AACjE,SAASC,QAAQ,QAAQ,OAAO;AAchC,OAAO,MAAMC,UAAU,GAAGA,CAAC;EAAEC,OAAO;EAAEC;AAA2B,CAAC,KAAK;EACrE,MAAM,CAACC,SAAS,EAAEC,YAAY,CAAC,GAAGL,QAAQ,CAAC,KAAK,CAAC;EAEjD,oBACEM,KAAA,CAAAC,aAAA,CAACV,SAAS;IACRW,KAAK,EAAE;MACLC,eAAe,EAAEL,SAAS,GAAG,SAAS,GAAG,SAAS;MAClDM,YAAY,EAAE;IAChB,CAAE;IACFC,SAAS,EAAGC,CAAC,IAAKP,YAAY,CAAC,IAAI,CAAE;IACrCQ,UAAU,EAAGD,CAAC,IAAK;MACjBP,YAAY,CAAC,KAAK,CAAC;MACnBH,OAAO,CAAC,CAAC;IACX,CAAE;IACFY,QAAQ,EAAE,CAACX;EAAU,gBAErBG,KAAA,CAAAC,aAAA,CAACT,IAAI;IAACU,KAAK,EAAEO,MAAM,CAACC;EAAS,gBAC3BV,KAAA,CAAAC,aAAA,CAACX,KAAK;IAACqB,MAAM,EAAEC,OAAO,CAAC,yBAAyB;EAAE,CAAE,CAChD,CACG,CAAC;AAEhB,CAAC;AAED,MAAMH,MAAM,GAAGhB,UAAU,CAACoB,MAAM,CAAC;EAC/BH,QAAQ,EAAE;IACRI,SAAS,EAAE,QAAQ;IACnBC,OAAO,EAAE;EACX;AACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
import { NativeModules, Platform } from 'react-native';
|
|
2
|
+
import { mapResult } from './util/result_util';
|
|
3
|
+
import { mapScreenlessResult } from './util/screenless_result_util';
|
|
4
|
+
import { mapGooglePayConfigurationResult } from './util/google_pay_configuration_util';
|
|
5
|
+
import { mapGooglePayOpenResult } from './util/google_pay_open_util';
|
|
6
|
+
import { mapPaymentChannelsResult } from './util/payment_channels_util';
|
|
7
|
+
const LINKING_ERROR = `The package 'react-native-tpay' doesn't seem to be linked. Make sure: \n\n` + Platform.select({
|
|
8
|
+
ios: "- You have run 'pod install'\n",
|
|
9
|
+
default: ''
|
|
10
|
+
}) + '- You rebuilt the app after installing the package\n' + '- You are not using Expo Go\n';
|
|
11
|
+
const Tpay = NativeModules.TpayRNModule ? NativeModules.TpayRNModule : new Proxy({}, {
|
|
12
|
+
get() {
|
|
13
|
+
throw new Error(LINKING_ERROR);
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
export * from './model/language/language';
|
|
17
|
+
export * from './model/language/languages';
|
|
18
|
+
export * from './model/language/localized_string';
|
|
19
|
+
export * from './model/merchant/apple_pay_configuration';
|
|
20
|
+
export * from './model/merchant/certificate_configuration';
|
|
21
|
+
export * from './model/merchant/google_pay_configuration';
|
|
22
|
+
export * from './model/merchant/merchant_authorization';
|
|
23
|
+
export * from './model/merchant/merchant_details';
|
|
24
|
+
export * from './model/merchant/merchant';
|
|
25
|
+
export * from './model/merchant/tpay_environment';
|
|
26
|
+
export * from './model/merchant/wallet_configuration';
|
|
27
|
+
export * from './model/payer/address';
|
|
28
|
+
export * from './model/payer/payer_context';
|
|
29
|
+
export * from './model/payer/payer';
|
|
30
|
+
export * from './model/payment_channel/payment_channel';
|
|
31
|
+
export * from './model/payment_channel/payment_constraint';
|
|
32
|
+
export * from './model/payment_channel/payment_group';
|
|
33
|
+
export * from './model/payment_method/automatic_payment_methods';
|
|
34
|
+
export * from './model/payment_method/blik_alias';
|
|
35
|
+
export * from './model/payment_method/credit_card_brand';
|
|
36
|
+
export * from './model/payment_method/digital_wallet';
|
|
37
|
+
export * from './model/payment_method/installment_payment';
|
|
38
|
+
export * from './model/payment_method/payment_method';
|
|
39
|
+
export * from './model/payment_method/payment_methods';
|
|
40
|
+
export * from './model/payment_method/tokenized_card';
|
|
41
|
+
export * from './model/result/google_pay_configure_result';
|
|
42
|
+
export * from './model/result/google_pay_open_result';
|
|
43
|
+
export * from './model/result/payment_channels_result';
|
|
44
|
+
export * from './model/result/result';
|
|
45
|
+
export * from './model/result/screenless_result';
|
|
46
|
+
export * from './model/screenless/ambiguous_alias';
|
|
47
|
+
export * from './model/screenless/ambiguous_blik_payment';
|
|
48
|
+
export * from './model/screenless/apple_pay_payment';
|
|
49
|
+
export * from './model/screenless/blik_payment';
|
|
50
|
+
export * from './model/screenless/callbacks';
|
|
51
|
+
export * from './model/screenless/credit_card_config';
|
|
52
|
+
export * from './model/screenless/credit_card_payment';
|
|
53
|
+
export * from './model/screenless/credit_card';
|
|
54
|
+
export * from './model/screenless/expiration_date';
|
|
55
|
+
export * from './model/screenless/frequency';
|
|
56
|
+
export * from './model/screenless/google_pay_environment';
|
|
57
|
+
export * from './model/screenless/google_pay_payment';
|
|
58
|
+
export * from './model/screenless/google_pay_utils_configuration';
|
|
59
|
+
export * from './model/screenless/notifications';
|
|
60
|
+
export * from './model/screenless/payment_details';
|
|
61
|
+
export * from './model/screenless/raty_pekao_payment';
|
|
62
|
+
export * from './model/screenless/recursive';
|
|
63
|
+
export * from './model/screenless/redirects';
|
|
64
|
+
export * from './model/screenless/screenless_payment';
|
|
65
|
+
export * from './model/screenless/transfer_payment';
|
|
66
|
+
export * from './model/tokenization/tokenization';
|
|
67
|
+
export * from './model/transaction/single_transaction';
|
|
68
|
+
export * from './model/transaction/token_payment';
|
|
69
|
+
export * from './model/transaction/transaction';
|
|
70
|
+
export * from './model/tpay_configuration';
|
|
71
|
+
export * from './component/tpay_button';
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Method used to configure Tpay UI Module
|
|
75
|
+
*
|
|
76
|
+
* @returns {Result} ConfigurationSuccess when Tpay module was successfully configured
|
|
77
|
+
*/
|
|
78
|
+
export async function configure(configuration) {
|
|
79
|
+
const result = await Tpay.configure(JSON.stringify(configuration));
|
|
80
|
+
return mapResult(result);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Method used to start standard payment with Tpay UI Module
|
|
85
|
+
*/
|
|
86
|
+
export async function startPayment(transaction) {
|
|
87
|
+
const result = await Tpay.startPayment(JSON.stringify(transaction));
|
|
88
|
+
return mapResult(result);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Method used to start credit card tokenization with Tpay UI Module
|
|
93
|
+
*/
|
|
94
|
+
export async function tokenizeCard(tokenization) {
|
|
95
|
+
const result = await Tpay.tokenizeCard(JSON.stringify(tokenization));
|
|
96
|
+
return mapResult(result);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* Method used to start credit card token payment with Tpay UI Module
|
|
101
|
+
*/
|
|
102
|
+
export async function startCardTokenPayment(tokenPayment) {
|
|
103
|
+
const result = await Tpay.startCardTokenPayment(JSON.stringify(tokenPayment));
|
|
104
|
+
return mapResult(result);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Method used to start screenless BLIK payment
|
|
109
|
+
*/
|
|
110
|
+
export async function screenlessBLIKPayment(blikPayment) {
|
|
111
|
+
const result = await Tpay.screenlessBLIKPayment(JSON.stringify(blikPayment));
|
|
112
|
+
return mapScreenlessResult(result);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* Method used to continue BLIK one click payment if ambiguous aliases were returned
|
|
117
|
+
*/
|
|
118
|
+
export async function screenlessAmbiguousBLIKPayment(ambiguousBlikPayment) {
|
|
119
|
+
const result = await Tpay.screenlessAmbiguousBLIKPayment(JSON.stringify(ambiguousBlikPayment));
|
|
120
|
+
return mapScreenlessResult(result);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Method used to start screenless transfer payment
|
|
125
|
+
*/
|
|
126
|
+
export async function screenlessTransferPayment(transferPayment) {
|
|
127
|
+
const result = await Tpay.screenlessTransferPayment(JSON.stringify(transferPayment));
|
|
128
|
+
return mapScreenlessResult(result);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Method used to start screenless Raty Pekao payment
|
|
133
|
+
*/
|
|
134
|
+
export async function screenlessRatyPekaoPayment(ratyPekaoPayment) {
|
|
135
|
+
const result = await Tpay.screenlessRatyPekaoPayment(JSON.stringify(ratyPekaoPayment));
|
|
136
|
+
return mapScreenlessResult(result);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* Method used to start screenless credit card payment
|
|
141
|
+
*/
|
|
142
|
+
export async function screenlessCreditCardPayment(creditCardPayment) {
|
|
143
|
+
const result = await Tpay.screenlessCreditCardPayment(JSON.stringify(creditCardPayment));
|
|
144
|
+
return mapScreenlessResult(result);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* Method used to start screenless Google Pay payment
|
|
149
|
+
*/
|
|
150
|
+
export async function screenlessGooglePayPayment(googlePayPayment) {
|
|
151
|
+
const result = await Tpay.screenlessGooglePayPayment(JSON.stringify(googlePayPayment));
|
|
152
|
+
return mapScreenlessResult(result);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* Method used to start screenless Apple Pay payment
|
|
157
|
+
*/
|
|
158
|
+
export async function screenlessApplePayPayment(applePayPayment) {
|
|
159
|
+
const result = await Tpay.screenlessApplePayPayment(JSON.stringify(applePayPayment));
|
|
160
|
+
return mapScreenlessResult(result);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* Method used to configure Google Pay utils.
|
|
165
|
+
* Call this method before using isGooglePayAvailable and openGooglePay methods.
|
|
166
|
+
*
|
|
167
|
+
* Android only
|
|
168
|
+
*/
|
|
169
|
+
export async function configureGooglePayUtils(googlePayUtilsConfiguration) {
|
|
170
|
+
const result = await Tpay.configureGooglePayUtils(JSON.stringify(googlePayUtilsConfiguration));
|
|
171
|
+
return mapGooglePayConfigurationResult(result);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* Method used to check if Google Pay is available
|
|
176
|
+
*
|
|
177
|
+
* Android only
|
|
178
|
+
*
|
|
179
|
+
* @returns true if Google Pay is available on the device
|
|
180
|
+
*/
|
|
181
|
+
export async function isGooglePayAvailable() {
|
|
182
|
+
return await Tpay.isGooglePayAvailable();
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* Method used to open Google Pay
|
|
187
|
+
*
|
|
188
|
+
* Android only
|
|
189
|
+
*
|
|
190
|
+
* @returns GooglePayOpenSuccess object if user successfully selects the credit card
|
|
191
|
+
*/
|
|
192
|
+
export async function openGooglePay() {
|
|
193
|
+
const result = await Tpay.openGooglePay();
|
|
194
|
+
return mapGooglePayOpenResult(result);
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* Method used to fetch payment channels from Tpay
|
|
199
|
+
*/
|
|
200
|
+
export async function getAvailablePaymentChannels() {
|
|
201
|
+
const result = await Tpay.getAvailablePaymentChannels();
|
|
202
|
+
return mapPaymentChannelsResult(result);
|
|
203
|
+
}
|
|
204
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["NativeModules","Platform","mapResult","mapScreenlessResult","mapGooglePayConfigurationResult","mapGooglePayOpenResult","mapPaymentChannelsResult","LINKING_ERROR","select","ios","default","Tpay","TpayRNModule","Proxy","get","Error","configure","configuration","result","JSON","stringify","startPayment","transaction","tokenizeCard","tokenization","startCardTokenPayment","tokenPayment","screenlessBLIKPayment","blikPayment","screenlessAmbiguousBLIKPayment","ambiguousBlikPayment","screenlessTransferPayment","transferPayment","screenlessRatyPekaoPayment","ratyPekaoPayment","screenlessCreditCardPayment","creditCardPayment","screenlessGooglePayPayment","googlePayPayment","screenlessApplePayPayment","applePayPayment","configureGooglePayUtils","googlePayUtilsConfiguration","isGooglePayAvailable","openGooglePay","getAvailablePaymentChannels"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":"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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Language"],"sourceRoot":"../../../../src","sources":["model/language/language.ts"],"mappings":"AAAA,WAAYA,QAAQ,0BAARA,QAAQ;EAARA,QAAQ;EAARA,QAAQ;EAAA,OAARA,QAAQ;AAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Class responsible for storing information about module languages.
|
|
3
|
+
*/
|
|
4
|
+
export class Languages {
|
|
5
|
+
/**
|
|
6
|
+
* @param {Language} preferredLanguage - module will open in this language
|
|
7
|
+
* @param {Array<Language>} supportedLanguages - languages that user will be able to use in module
|
|
8
|
+
*/
|
|
9
|
+
constructor(preferredLanguage, supportedLanguages) {
|
|
10
|
+
this.preferredLanguage = preferredLanguage;
|
|
11
|
+
this.supportedLanguages = supportedLanguages;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=languages.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Languages","constructor","preferredLanguage","supportedLanguages"],"sourceRoot":"../../../../src","sources":["model/language/languages.ts"],"mappings":"AAEA;AACA;AACA;AACA,OAAO,MAAMA,SAAS,CAAC;EAIrB;AACF;AACA;AACA;EACEC,WAAWA,CACTC,iBAA2B,EAC3BC,kBAAmC,EACnC;IACA,IAAI,CAACD,iBAAiB,GAAGA,iBAAiB;IAC1C,IAAI,CAACC,kBAAkB,GAAGA,kBAAkB;EAC9C;AACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["LocalizedString","constructor","language","value"],"sourceRoot":"../../../../src","sources":["model/language/localized_string.ts"],"mappings":"AAEA;AACA;AACA;AACA,OAAO,MAAMA,eAAe,CAAC;EAI3BC,WAAWA,CAACC,QAAkB,EAAEC,KAAa,EAAE;IAC7C,IAAI,CAACD,QAAQ,GAAGA,QAAQ;IACxB,IAAI,CAACC,KAAK,GAAGA,KAAK;EACpB;AACF"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Class responsible for storing information about Apple Pay configuration.
|
|
3
|
+
*/
|
|
4
|
+
export class ApplePayConfiguration {
|
|
5
|
+
/**
|
|
6
|
+
*
|
|
7
|
+
* @param merchantIdentifier - unique id that identifies your business as a merchant able to accept apple payments
|
|
8
|
+
* @param countryCode - country code, for example "PL"
|
|
9
|
+
*/
|
|
10
|
+
constructor(merchantIdentifier, countryCode) {
|
|
11
|
+
this.merchantIdentifier = merchantIdentifier;
|
|
12
|
+
this.countryCode = countryCode;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=apple_pay_configuration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["ApplePayConfiguration","constructor","merchantIdentifier","countryCode"],"sourceRoot":"../../../../src","sources":["model/merchant/apple_pay_configuration.ts"],"mappings":"AAAA;AACA;AACA;AACA,OAAO,MAAMA,qBAAqB,CAAC;EAIjC;AACF;AACA;AACA;AACA;EACEC,WAAWA,CAACC,kBAA0B,EAAEC,WAAmB,EAAE;IAC3D,IAAI,CAACD,kBAAkB,GAAGA,kBAAkB;IAC5C,IAAI,CAACC,WAAW,GAAGA,WAAW;EAChC;AACF"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Class responsible for storing information about certificate pinning.
|
|
3
|
+
*/
|
|
4
|
+
export class CertificatePinningConfiguration {
|
|
5
|
+
/**
|
|
6
|
+
* @param publicKeyHash - public key used to encrypt credit card data during payment/tokenization.
|
|
7
|
+
*/
|
|
8
|
+
constructor(publicKeyHash) {
|
|
9
|
+
this.publicKeyHash = publicKeyHash;
|
|
10
|
+
this.pinnedDomain = 'api.tpay.com';
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=certificate_configuration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["CertificatePinningConfiguration","constructor","publicKeyHash","pinnedDomain"],"sourceRoot":"../../../../src","sources":["model/merchant/certificate_configuration.ts"],"mappings":"AAAA;AACA;AACA;AACA,OAAO,MAAMA,+BAA+B,CAAC;EAI3C;AACF;AACA;EACEC,WAAWA,CAACC,aAAqB,EAAE;IACjC,IAAI,CAACA,aAAa,GAAGA,aAAa;IAClC,IAAI,CAACC,YAAY,GAAG,cAAc;EACpC;AACF"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Class responsible for storing information about GooglePay configuration
|
|
3
|
+
*/
|
|
4
|
+
export class GooglePayConfiguration {
|
|
5
|
+
/**
|
|
6
|
+
* @param merchantId - your merchant id in Tpay system
|
|
7
|
+
*/
|
|
8
|
+
constructor(merchantId) {
|
|
9
|
+
this.merchantId = merchantId;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=google_pay_configuration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["GooglePayConfiguration","constructor","merchantId"],"sourceRoot":"../../../../src","sources":["model/merchant/google_pay_configuration.ts"],"mappings":"AAAA;AACA;AACA;AACA,OAAO,MAAMA,sBAAsB,CAAC;EAGlC;AACF;AACA;EACEC,WAAWA,CAACC,UAAkB,EAAE;IAC9B,IAAI,CAACA,UAAU,GAAGA,UAAU;EAC9B;AACF"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Class responsible for storing merchant information
|
|
3
|
+
*/
|
|
4
|
+
export class Merchant {
|
|
5
|
+
/**
|
|
6
|
+
* @param authorization - merchant credentials
|
|
7
|
+
* @param environment - environment that the module will use
|
|
8
|
+
* @param certificatePinningConfiguration - encryption information
|
|
9
|
+
* @param blikAliasToRegister - BLIK that will be registered with payment
|
|
10
|
+
* @param walletConfiguration - configuration of digital wallets
|
|
11
|
+
*/
|
|
12
|
+
constructor(authorization, environment, certificatePinningConfiguration, blikAliasToRegister, walletConfiguration) {
|
|
13
|
+
this.authorization = authorization;
|
|
14
|
+
this.environment = environment;
|
|
15
|
+
this.certificatePinningConfiguration = certificatePinningConfiguration;
|
|
16
|
+
this.blikAliasToRegister = blikAliasToRegister;
|
|
17
|
+
this.walletConfiguration = walletConfiguration;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=merchant.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Merchant","constructor","authorization","environment","certificatePinningConfiguration","blikAliasToRegister","walletConfiguration"],"sourceRoot":"../../../../src","sources":["model/merchant/merchant.ts"],"mappings":"AAKA;AACA;AACA;AACA,OAAO,MAAMA,QAAQ,CAAC;EAOpB;AACF;AACA;AACA;AACA;AACA;AACA;EACEC,WAAWA,CACTC,aAAoC,EACpCC,WAA4B,EAC5BC,+BAAgE,EAChEC,mBAA2B,EAC3BC,mBAA+C,EAC/C;IACA,IAAI,CAACJ,aAAa,GAAGA,aAAa;IAClC,IAAI,CAACC,WAAW,GAAGA,WAAW;IAC9B,IAAI,CAACC,+BAA+B,GAAGA,+BAA+B;IACtE,IAAI,CAACC,mBAAmB,GAAGA,mBAAmB;IAC9C,IAAI,CAACC,mBAAmB,GAAGA,mBAAmB;EAChD;AACF"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Class responsible for storing merchant's authorization
|
|
3
|
+
*/
|
|
4
|
+
export class MerchantAuthorization {
|
|
5
|
+
/**
|
|
6
|
+
* @param clientId - your client id in Tpay system
|
|
7
|
+
* @param clientSecret - your client secret in Tpay system
|
|
8
|
+
*/
|
|
9
|
+
constructor(clientId, clientSecret) {
|
|
10
|
+
this.clientId = clientId;
|
|
11
|
+
this.clientSecret = clientSecret;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=merchant_authorization.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["MerchantAuthorization","constructor","clientId","clientSecret"],"sourceRoot":"../../../../src","sources":["model/merchant/merchant_authorization.ts"],"mappings":"AAAA;AACA;AACA;AACA,OAAO,MAAMA,qBAAqB,CAAC;EAIjC;AACF;AACA;AACA;EACEC,WAAWA,CAACC,QAAgB,EAAEC,YAAoB,EAAE;IAClD,IAAI,CAACD,QAAQ,GAAGA,QAAQ;IACxB,IAAI,CAACC,YAAY,GAAGA,YAAY;EAClC;AACF"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Class responsible for storing localized information about merchant
|
|
3
|
+
*/
|
|
4
|
+
export class MerchantDetails {
|
|
5
|
+
/**
|
|
6
|
+
* @param merchantDisplayNames - localized display names
|
|
7
|
+
* @param merchantHeadquarters - localized headquarters
|
|
8
|
+
* @param regulationUrls - localized regulation urls
|
|
9
|
+
*/
|
|
10
|
+
constructor(merchantDisplayNames, merchantHeadquarters, regulationUrls) {
|
|
11
|
+
this.merchantDisplayName = merchantDisplayNames;
|
|
12
|
+
this.merchantHeadquarters = merchantHeadquarters;
|
|
13
|
+
this.regulations = regulationUrls;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=merchant_details.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["MerchantDetails","constructor","merchantDisplayNames","merchantHeadquarters","regulationUrls","merchantDisplayName","regulations"],"sourceRoot":"../../../../src","sources":["model/merchant/merchant_details.ts"],"mappings":"AAEA;AACA;AACA;AACA,OAAO,MAAMA,eAAe,CAAC;EAK3B;AACF;AACA;AACA;AACA;EACEC,WAAWA,CACTC,oBAA4C,EAC5CC,oBAA4C,EAC5CC,cAAsC,EACtC;IACA,IAAI,CAACC,mBAAmB,GAAGH,oBAAoB;IAC/C,IAAI,CAACC,oBAAoB,GAAGA,oBAAoB;IAChD,IAAI,CAACG,WAAW,GAAGF,cAAc;EACnC;AACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["TpayEnvironment"],"sourceRoot":"../../../../src","sources":["model/merchant/tpay_environment.ts"],"mappings":"AAAA,WAAYA,eAAe,0BAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAA,OAAfA,eAAe;AAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Class responsible for storing wallet configuration
|
|
3
|
+
*/
|
|
4
|
+
export class WalletConfiguration {
|
|
5
|
+
/**
|
|
6
|
+
* @param googlePay - Google Pay configuration
|
|
7
|
+
* @param applePay - Apple Pay configuration
|
|
8
|
+
*/
|
|
9
|
+
constructor(googlePay, applePay) {
|
|
10
|
+
this.googlePay = googlePay;
|
|
11
|
+
this.applePay = applePay;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=wallet_configuration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["WalletConfiguration","constructor","googlePay","applePay"],"sourceRoot":"../../../../src","sources":["model/merchant/wallet_configuration.ts"],"mappings":"AAGA;AACA;AACA;AACA,OAAO,MAAMA,mBAAmB,CAAC;EAI/B;AACF;AACA;AACA;EACEC,WAAWA,CACTC,SAAwC,EACxCC,QAAsC,EACtC;IACA,IAAI,CAACD,SAAS,GAAGA,SAAS;IAC1B,IAAI,CAACC,QAAQ,GAAGA,QAAQ;EAC1B;AACF"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Class responsible for storing payer address
|
|
3
|
+
*/
|
|
4
|
+
export class Address {
|
|
5
|
+
/**
|
|
6
|
+
* @param address - street number
|
|
7
|
+
* @param city - city name
|
|
8
|
+
* @param countryCode - country code, for example 'PL'
|
|
9
|
+
* @param postalCode - postal code
|
|
10
|
+
*/
|
|
11
|
+
constructor(address, city, countryCode, postalCode) {
|
|
12
|
+
this.address = address;
|
|
13
|
+
this.city = city;
|
|
14
|
+
this.countryCode = countryCode;
|
|
15
|
+
this.postalCode = postalCode;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=address.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Address","constructor","address","city","countryCode","postalCode"],"sourceRoot":"../../../../src","sources":["model/payer/address.ts"],"mappings":"AAAA;AACA;AACA;AACA,OAAO,MAAMA,OAAO,CAAC;EAMnB;AACF;AACA;AACA;AACA;AACA;EACEC,WAAWA,CACTC,OAAsB,EACtBC,IAAmB,EACnBC,WAA0B,EAC1BC,UAAyB,EACzB;IACA,IAAI,CAACH,OAAO,GAAGA,OAAO;IACtB,IAAI,CAACC,IAAI,GAAGA,IAAI;IAChB,IAAI,CAACC,WAAW,GAAGA,WAAW;IAC9B,IAAI,CAACC,UAAU,GAAGA,UAAU;EAC9B;AACF"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Class responsible for storing information about payer
|
|
3
|
+
*/
|
|
4
|
+
export class Payer {
|
|
5
|
+
/**
|
|
6
|
+
* @param name - payer's full name
|
|
7
|
+
* @param email - payer's email
|
|
8
|
+
* @param phone - payer's phone number
|
|
9
|
+
* @param address - payer's address
|
|
10
|
+
*/
|
|
11
|
+
constructor(name, email, phone, address) {
|
|
12
|
+
this.name = name;
|
|
13
|
+
this.email = email;
|
|
14
|
+
this.phone = phone;
|
|
15
|
+
this.address = address;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=payer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Payer","constructor","name","email","phone","address"],"sourceRoot":"../../../../src","sources":["model/payer/payer.ts"],"mappings":"AAEA;AACA;AACA;AACA,OAAO,MAAMA,KAAK,CAAC;EAMjB;AACF;AACA;AACA;AACA;AACA;EACEC,WAAWA,CACTC,IAAY,EACZC,KAAa,EACbC,KAAoB,EACpBC,OAAuB,EACvB;IACA,IAAI,CAACH,IAAI,GAAGA,IAAI;IAChB,IAAI,CAACC,KAAK,GAAGA,KAAK;IAClB,IAAI,CAACC,KAAK,GAAGA,KAAK;IAClB,IAAI,CAACC,OAAO,GAAGA,OAAO;EACxB;AACF"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Class responsible for storing information about payer and automatic payment methods
|
|
3
|
+
*/
|
|
4
|
+
export class PayerContext {
|
|
5
|
+
/**
|
|
6
|
+
* @param payer - payer information
|
|
7
|
+
* @param automaticPaymentMethods - automatic payment methods for payer
|
|
8
|
+
*/
|
|
9
|
+
constructor(payer, automaticPaymentMethods) {
|
|
10
|
+
this.payer = payer;
|
|
11
|
+
this.automaticPaymentMethods = automaticPaymentMethods;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=payer_context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["PayerContext","constructor","payer","automaticPaymentMethods"],"sourceRoot":"../../../../src","sources":["model/payer/payer_context.ts"],"mappings":"AAGA;AACA;AACA;AACA,OAAO,MAAMA,YAAY,CAAC;EAIxB;AACF;AACA;AACA;EACEC,WAAWA,CACTC,KAAmB,EACnBC,uBAAuD,EACvD;IACA,IAAI,CAACD,KAAK,GAAGA,KAAK;IAClB,IAAI,CAACC,uBAAuB,GAAGA,uBAAuB;EACxD;AACF"}
|