react-native-hyperpay-sdk 0.2.0 → 0.5.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 +2 -1
- package/OPPWAMobile-Resources.bundle/Info.plist +0 -0
- package/OPPWAMobile-Resources.bundle/Klarna.json +67 -0
- package/OPPWAMobile-Resources.bundle/OPPBrandCollectionViewCell.nib +0 -0
- package/OPPWAMobile-Resources.bundle/OPPCardDetailsViewController.nib +0 -0
- package/OPPWAMobile-Resources.bundle/OPPCardsTableViewCell.nib +0 -0
- package/OPPWAMobile-Resources.bundle/OPPCheckoutTextFieldView.nib +0 -0
- package/OPPWAMobile-Resources.bundle/OPPChinaUnionPayDetailsViewController.nib +0 -0
- package/OPPWAMobile-Resources.bundle/OPPDirectDebitDetailsViewController.nib +0 -0
- package/OPPWAMobile-Resources.bundle/OPPGiropayDetailsViewController.nib +0 -0
- package/OPPWAMobile-Resources.bundle/OPPIkanoDetailsViewController.nib +0 -0
- package/OPPWAMobile-Resources.bundle/OPPKlarnaDetailsViewController.nib +0 -0
- package/OPPWAMobile-Resources.bundle/OPPKlarnaTableViewCell.nib +0 -0
- package/OPPWAMobile-Resources.bundle/OPPListDetailsViewController.nib +0 -0
- package/OPPWAMobile-Resources.bundle/OPPMBWAYDetailsViewController.nib +0 -0
- package/OPPWAMobile-Resources.bundle/OPPPaymentFormHeaderView.nib +0 -0
- package/OPPWAMobile-Resources.bundle/OPPPaymentProcessingViewController.nib +0 -0
- package/OPPWAMobile-Resources.bundle/OPPPaymentSchemeTableViewCell.nib +0 -0
- package/OPPWAMobile-Resources.bundle/OPPPaymentSchemeViewController.nib +0 -0
- package/OPPWAMobile-Resources.bundle/OPPStorePaymentDetailsView.nib +0 -0
- package/OPPWAMobile-Resources.bundle/OPPTokenCollectionViewCell.nib +0 -0
- package/OPPWAMobile-Resources.bundle/OPPTokensTableViewCell.nib +0 -0
- package/OPPWAMobile-Resources.bundle/OPPTotalAmountView.nib/objects-11.0+.nib +0 -0
- package/OPPWAMobile-Resources.bundle/OPPTotalAmountView.nib/runtime.nib +0 -0
- package/OPPWAMobile-Resources.bundle/alipay.png +0 -0
- package/OPPWAMobile-Resources.bundle/alipay@2x.png +0 -0
- package/OPPWAMobile-Resources.bundle/alipay@3x.png +0 -0
- package/OPPWAMobile-Resources.bundle/amex.png +0 -0
- package/OPPWAMobile-Resources.bundle/amex@2x.png +0 -0
- package/OPPWAMobile-Resources.bundle/amex@3x.png +0 -0
- package/OPPWAMobile-Resources.bundle/applepay.png +0 -0
- package/OPPWAMobile-Resources.bundle/applepay@2x.png +0 -0
- package/OPPWAMobile-Resources.bundle/applepay@3x.png +0 -0
- package/OPPWAMobile-Resources.bundle/ar.lproj/OPPCheckout.strings +89 -0
- package/OPPWAMobile-Resources.bundle/arrow_down.png +0 -0
- package/OPPWAMobile-Resources.bundle/arrow_up.png +0 -0
- package/OPPWAMobile-Resources.bundle/boleto.png +0 -0
- package/OPPWAMobile-Resources.bundle/boleto@2x.png +0 -0
- package/OPPWAMobile-Resources.bundle/boleto@3x.png +0 -0
- package/OPPWAMobile-Resources.bundle/ca.lproj/OPPCheckout.strings +90 -0
- package/OPPWAMobile-Resources.bundle/camera_icon.png +0 -0
- package/OPPWAMobile-Resources.bundle/camera_icon@2x.png +0 -0
- package/OPPWAMobile-Resources.bundle/camera_icon@3x.png +0 -0
- package/OPPWAMobile-Resources.bundle/card.png +0 -0
- package/OPPWAMobile-Resources.bundle/card@2x.png +0 -0
- package/OPPWAMobile-Resources.bundle/card@3x.png +0 -0
- package/OPPWAMobile-Resources.bundle/cartebleue.png +0 -0
- package/OPPWAMobile-Resources.bundle/cartebleue@2x.png +0 -0
- package/OPPWAMobile-Resources.bundle/cartebleue@3x.png +0 -0
- package/OPPWAMobile-Resources.bundle/dankort.png +0 -0
- package/OPPWAMobile-Resources.bundle/dankort@2x.png +0 -0
- package/OPPWAMobile-Resources.bundle/dankort@3x.png +0 -0
- package/OPPWAMobile-Resources.bundle/de.lproj/OPPCheckout.strings +99 -0
- package/OPPWAMobile-Resources.bundle/diners.png +0 -0
- package/OPPWAMobile-Resources.bundle/diners@2x.png +0 -0
- package/OPPWAMobile-Resources.bundle/diners@3x.png +0 -0
- package/OPPWAMobile-Resources.bundle/directdebit_sepa.png +0 -0
- package/OPPWAMobile-Resources.bundle/directdebit_sepa@2x.png +0 -0
- package/OPPWAMobile-Resources.bundle/directdebit_sepa@3x.png +0 -0
- package/OPPWAMobile-Resources.bundle/discover.png +0 -0
- package/OPPWAMobile-Resources.bundle/discover@2x.png +0 -0
- package/OPPWAMobile-Resources.bundle/discover@3x.png +0 -0
- package/OPPWAMobile-Resources.bundle/en.lproj/OPPCheckout.strings +145 -0
- package/OPPWAMobile-Resources.bundle/es.lproj/OPPCheckout.strings +92 -0
- package/OPPWAMobile-Resources.bundle/eu-ES.lproj/OPPCheckout.strings +92 -0
- package/OPPWAMobile-Resources.bundle/fr-CA.lproj/OPPCheckout.strings +93 -0
- package/OPPWAMobile-Resources.bundle/fr.lproj/OPPCheckout.strings +93 -0
- package/OPPWAMobile-Resources.bundle/giropay.png +0 -0
- package/OPPWAMobile-Resources.bundle/giropay@2x.png +0 -0
- package/OPPWAMobile-Resources.bundle/giropay@3x.png +0 -0
- package/OPPWAMobile-Resources.bundle/gl-ES.lproj/OPPCheckout.strings +92 -0
- package/OPPWAMobile-Resources.bundle/ideal.png +0 -0
- package/OPPWAMobile-Resources.bundle/ideal@2x.png +0 -0
- package/OPPWAMobile-Resources.bundle/ideal@3x.png +0 -0
- package/OPPWAMobile-Resources.bundle/it.lproj/OPPCheckout.strings +94 -0
- package/OPPWAMobile-Resources.bundle/ja.lproj/OPPCheckout.strings +74 -0
- package/OPPWAMobile-Resources.bundle/jcb.png +0 -0
- package/OPPWAMobile-Resources.bundle/jcb@2x.png +0 -0
- package/OPPWAMobile-Resources.bundle/jcb@3x.png +0 -0
- package/OPPWAMobile-Resources.bundle/klarna.png +0 -0
- package/OPPWAMobile-Resources.bundle/klarna@2x.png +0 -0
- package/OPPWAMobile-Resources.bundle/klarna@3x.png +0 -0
- package/OPPWAMobile-Resources.bundle/klarna_detail_logo.png +0 -0
- package/OPPWAMobile-Resources.bundle/klarna_detail_logo@2x.png +0 -0
- package/OPPWAMobile-Resources.bundle/klarna_detail_logo@3x.png +0 -0
- package/OPPWAMobile-Resources.bundle/klarna_nl_agreement.png +0 -0
- package/OPPWAMobile-Resources.bundle/klarna_nl_agreement@2x.png +0 -0
- package/OPPWAMobile-Resources.bundle/klarna_nl_agreement@3x.png +0 -0
- package/OPPWAMobile-Resources.bundle/klarna_payments_billpay.png +0 -0
- package/OPPWAMobile-Resources.bundle/klarna_payments_billpay@2x.png +0 -0
- package/OPPWAMobile-Resources.bundle/klarna_payments_billpay@3x.png +0 -0
- package/OPPWAMobile-Resources.bundle/klarna_payments_paylater.png +0 -0
- package/OPPWAMobile-Resources.bundle/klarna_payments_paylater@2x.png +0 -0
- package/OPPWAMobile-Resources.bundle/klarna_payments_paylater@3x.png +0 -0
- package/OPPWAMobile-Resources.bundle/klarna_payments_sliceit.png +0 -0
- package/OPPWAMobile-Resources.bundle/klarna_payments_sliceit@2x.png +0 -0
- package/OPPWAMobile-Resources.bundle/klarna_payments_sliceit@3x.png +0 -0
- package/OPPWAMobile-Resources.bundle/mada.png +0 -0
- package/OPPWAMobile-Resources.bundle/mada@2x.png +0 -0
- package/OPPWAMobile-Resources.bundle/mada@3x.png +0 -0
- package/OPPWAMobile-Resources.bundle/maestro.png +0 -0
- package/OPPWAMobile-Resources.bundle/maestro@2x.png +0 -0
- package/OPPWAMobile-Resources.bundle/maestro@3x.png +0 -0
- package/OPPWAMobile-Resources.bundle/master.png +0 -0
- package/OPPWAMobile-Resources.bundle/master@2x.png +0 -0
- package/OPPWAMobile-Resources.bundle/master@3x.png +0 -0
- package/OPPWAMobile-Resources.bundle/masterdebit.png +0 -0
- package/OPPWAMobile-Resources.bundle/masterdebit@2x.png +0 -0
- package/OPPWAMobile-Resources.bundle/masterdebit@3x.png +0 -0
- package/OPPWAMobile-Resources.bundle/masterpass.png +0 -0
- package/OPPWAMobile-Resources.bundle/masterpass@2x.png +0 -0
- package/OPPWAMobile-Resources.bundle/masterpass@3x.png +0 -0
- package/OPPWAMobile-Resources.bundle/nl.lproj/OPPCheckout.strings +91 -0
- package/OPPWAMobile-Resources.bundle/paydirekt.png +0 -0
- package/OPPWAMobile-Resources.bundle/paydirekt@2x.png +0 -0
- package/OPPWAMobile-Resources.bundle/paydirekt@3x.png +0 -0
- package/OPPWAMobile-Resources.bundle/paypal.png +0 -0
- package/OPPWAMobile-Resources.bundle/paypal@2x.png +0 -0
- package/OPPWAMobile-Resources.bundle/paypal@3x.png +0 -0
- package/OPPWAMobile-Resources.bundle/paysafecard.png +0 -0
- package/OPPWAMobile-Resources.bundle/paysafecard@2x.png +0 -0
- package/OPPWAMobile-Resources.bundle/paysafecard@3x.png +0 -0
- package/OPPWAMobile-Resources.bundle/paytrail.png +0 -0
- package/OPPWAMobile-Resources.bundle/paytrail@2x.png +0 -0
- package/OPPWAMobile-Resources.bundle/paytrail@3x.png +0 -0
- package/OPPWAMobile-Resources.bundle/pf_karte_direct.png +0 -0
- package/OPPWAMobile-Resources.bundle/pf_karte_direct@2x.png +0 -0
- package/OPPWAMobile-Resources.bundle/pf_karte_direct@3x.png +0 -0
- package/OPPWAMobile-Resources.bundle/przelewy.png +0 -0
- package/OPPWAMobile-Resources.bundle/przelewy@2x.png +0 -0
- package/OPPWAMobile-Resources.bundle/przelewy@3x.png +0 -0
- package/OPPWAMobile-Resources.bundle/pt.lproj/OPPCheckout.strings +91 -0
- package/OPPWAMobile-Resources.bundle/ratenkauf.png +0 -0
- package/OPPWAMobile-Resources.bundle/ratenkauf@2x.png +0 -0
- package/OPPWAMobile-Resources.bundle/ratenkauf@3x.png +0 -0
- package/OPPWAMobile-Resources.bundle/ru.lproj/OPPCheckout.strings +91 -0
- package/OPPWAMobile-Resources.bundle/sibs_multibanco.png +0 -0
- package/OPPWAMobile-Resources.bundle/sibs_multibanco@2x.png +0 -0
- package/OPPWAMobile-Resources.bundle/sibs_multibanco@3x.png +0 -0
- package/OPPWAMobile-Resources.bundle/sofortueberweisung.png +0 -0
- package/OPPWAMobile-Resources.bundle/sofortueberweisung@2x.png +0 -0
- package/OPPWAMobile-Resources.bundle/sofortueberweisung@3x.png +0 -0
- package/OPPWAMobile-Resources.bundle/th.lproj/OPPCheckout.strings +91 -0
- package/OPPWAMobile-Resources.bundle/trustly.png +0 -0
- package/OPPWAMobile-Resources.bundle/trustly@2x.png +0 -0
- package/OPPWAMobile-Resources.bundle/trustly@3x.png +0 -0
- package/OPPWAMobile-Resources.bundle/unionpay.png +0 -0
- package/OPPWAMobile-Resources.bundle/unionpay@2x.png +0 -0
- package/OPPWAMobile-Resources.bundle/unionpay@3x.png +0 -0
- package/OPPWAMobile-Resources.bundle/version.plist +0 -0
- package/OPPWAMobile-Resources.bundle/visa.png +0 -0
- package/OPPWAMobile-Resources.bundle/visa@2x.png +0 -0
- package/OPPWAMobile-Resources.bundle/visa@3x.png +0 -0
- package/OPPWAMobile-Resources.bundle/visadebit.png +0 -0
- package/OPPWAMobile-Resources.bundle/visadebit@2x.png +0 -0
- package/OPPWAMobile-Resources.bundle/visadebit@3x.png +0 -0
- package/OPPWAMobile-Resources.bundle/visaelectron.png +0 -0
- package/OPPWAMobile-Resources.bundle/visaelectron@2x.png +0 -0
- package/OPPWAMobile-Resources.bundle/visaelectron@3x.png +0 -0
- package/OPPWAMobile-Resources.bundle/yandex.png +0 -0
- package/OPPWAMobile-Resources.bundle/yandex@2x.png +0 -0
- package/OPPWAMobile-Resources.bundle/yandex@3x.png +0 -0
- package/OPPWAMobile-Resources.bundle/zh-Hans.lproj/OPPCheckout.strings +92 -0
- package/OPPWAMobile.framework/.DS_Store +0 -0
- package/OPPWAMobile.framework/Headers/OPPAlipayPaymentParams.h +49 -0
- package/OPPWAMobile.framework/Headers/OPPApplePayPaymentParams.h +64 -0
- package/OPPWAMobile.framework/Headers/OPPApplePayRequestStatus.h +117 -0
- package/OPPWAMobile.framework/Headers/OPPBankAccount.h +58 -0
- package/OPPWAMobile.framework/Headers/OPPBankAccountPaymentParams.h +171 -0
- package/OPPWAMobile.framework/Headers/OPPCard.h +68 -0
- package/OPPWAMobile.framework/Headers/OPPCardPaymentParams.h +251 -0
- package/OPPWAMobile.framework/Headers/OPPCheckoutInfo.h +130 -0
- package/OPPWAMobile.framework/Headers/OPPCheckoutPaymentMethod.h +51 -0
- package/OPPWAMobile.framework/Headers/OPPCheckoutProvider.h +197 -0
- package/OPPWAMobile.framework/Headers/OPPCheckoutSettings.h +185 -0
- package/OPPWAMobile.framework/Headers/OPPCheckoutTheme.h +268 -0
- package/OPPWAMobile.framework/Headers/OPPChinaUnionPayPaymentParams.h +62 -0
- package/OPPWAMobile.framework/Headers/OPPErrors.h +183 -0
- package/OPPWAMobile.framework/Headers/OPPIkanoOiPaymentParams.h +74 -0
- package/OPPWAMobile.framework/Headers/OPPMBWayPaymentParams.h +66 -0
- package/OPPWAMobile.framework/Headers/OPPPayPalPaymentParams.h +48 -0
- package/OPPWAMobile.framework/Headers/OPPPaymentBrandsConfig.h +56 -0
- package/OPPWAMobile.framework/Headers/OPPPaymentButton.h +79 -0
- package/OPPWAMobile.framework/Headers/OPPPaymentParams.h +100 -0
- package/OPPWAMobile.framework/Headers/OPPPaymentParamsBrand.h +57 -0
- package/OPPWAMobile.framework/Headers/OPPPaymentProvider.h +132 -0
- package/OPPWAMobile.framework/Headers/OPPSecurityPolicy.h +87 -0
- package/OPPWAMobile.framework/Headers/OPPToken.h +95 -0
- package/OPPWAMobile.framework/Headers/OPPTokenPaymentParams.h +180 -0
- package/OPPWAMobile.framework/Headers/OPPTransaction.h +77 -0
- package/OPPWAMobile.framework/Headers/OPPWAMobile.h +48 -0
- package/OPPWAMobile.framework/OPPWAMobile +0 -0
- package/OPPWAMobile.framework/Resources/Info.plist +0 -0
- package/OPPWAMobile.framework/Versions/.DS_Store +0 -0
- package/OPPWAMobile.framework/Versions/2.47.0/.DS_Store +0 -0
- package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPAlipayPaymentParams.h +49 -0
- package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPApplePayPaymentParams.h +64 -0
- package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPApplePayRequestStatus.h +117 -0
- package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPBankAccount.h +58 -0
- package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPBankAccountPaymentParams.h +171 -0
- package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPCard.h +68 -0
- package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPCardPaymentParams.h +251 -0
- package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPCheckoutInfo.h +130 -0
- package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPCheckoutPaymentMethod.h +51 -0
- package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPCheckoutProvider.h +197 -0
- package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPCheckoutSettings.h +185 -0
- package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPCheckoutTheme.h +268 -0
- package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPChinaUnionPayPaymentParams.h +62 -0
- package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPErrors.h +183 -0
- package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPIkanoOiPaymentParams.h +74 -0
- package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPMBWayPaymentParams.h +66 -0
- package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPPayPalPaymentParams.h +48 -0
- package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPPaymentBrandsConfig.h +56 -0
- package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPPaymentButton.h +79 -0
- package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPPaymentParams.h +100 -0
- package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPPaymentParamsBrand.h +57 -0
- package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPPaymentProvider.h +132 -0
- package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPSecurityPolicy.h +87 -0
- package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPToken.h +95 -0
- package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPTokenPaymentParams.h +180 -0
- package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPTransaction.h +77 -0
- package/OPPWAMobile.framework/Versions/2.47.0/Headers/OPPWAMobile.h +48 -0
- package/OPPWAMobile.framework/Versions/2.47.0/OPPWAMobile +0 -0
- package/OPPWAMobile.framework/Versions/2.47.0/Resources/Info.plist +0 -0
- package/OPPWAMobile.framework/Versions/Current/.DS_Store +0 -0
- package/OPPWAMobile.framework/Versions/Current/Headers/OPPAlipayPaymentParams.h +49 -0
- package/OPPWAMobile.framework/Versions/Current/Headers/OPPApplePayPaymentParams.h +64 -0
- package/OPPWAMobile.framework/Versions/Current/Headers/OPPApplePayRequestStatus.h +117 -0
- package/OPPWAMobile.framework/Versions/Current/Headers/OPPBankAccount.h +58 -0
- package/OPPWAMobile.framework/Versions/Current/Headers/OPPBankAccountPaymentParams.h +171 -0
- package/OPPWAMobile.framework/Versions/Current/Headers/OPPCard.h +68 -0
- package/OPPWAMobile.framework/Versions/Current/Headers/OPPCardPaymentParams.h +251 -0
- package/OPPWAMobile.framework/Versions/Current/Headers/OPPCheckoutInfo.h +130 -0
- package/OPPWAMobile.framework/Versions/Current/Headers/OPPCheckoutPaymentMethod.h +51 -0
- package/OPPWAMobile.framework/Versions/Current/Headers/OPPCheckoutProvider.h +197 -0
- package/OPPWAMobile.framework/Versions/Current/Headers/OPPCheckoutSettings.h +185 -0
- package/OPPWAMobile.framework/Versions/Current/Headers/OPPCheckoutTheme.h +268 -0
- package/OPPWAMobile.framework/Versions/Current/Headers/OPPChinaUnionPayPaymentParams.h +62 -0
- package/OPPWAMobile.framework/Versions/Current/Headers/OPPErrors.h +183 -0
- package/OPPWAMobile.framework/Versions/Current/Headers/OPPIkanoOiPaymentParams.h +74 -0
- package/OPPWAMobile.framework/Versions/Current/Headers/OPPMBWayPaymentParams.h +66 -0
- package/OPPWAMobile.framework/Versions/Current/Headers/OPPPayPalPaymentParams.h +48 -0
- package/OPPWAMobile.framework/Versions/Current/Headers/OPPPaymentBrandsConfig.h +56 -0
- package/OPPWAMobile.framework/Versions/Current/Headers/OPPPaymentButton.h +79 -0
- package/OPPWAMobile.framework/Versions/Current/Headers/OPPPaymentParams.h +100 -0
- package/OPPWAMobile.framework/Versions/Current/Headers/OPPPaymentParamsBrand.h +57 -0
- package/OPPWAMobile.framework/Versions/Current/Headers/OPPPaymentProvider.h +132 -0
- package/OPPWAMobile.framework/Versions/Current/Headers/OPPSecurityPolicy.h +87 -0
- package/OPPWAMobile.framework/Versions/Current/Headers/OPPToken.h +95 -0
- package/OPPWAMobile.framework/Versions/Current/Headers/OPPTokenPaymentParams.h +180 -0
- package/OPPWAMobile.framework/Versions/Current/Headers/OPPTransaction.h +77 -0
- package/OPPWAMobile.framework/Versions/Current/Headers/OPPWAMobile.h +48 -0
- package/OPPWAMobile.framework/Versions/Current/OPPWAMobile +0 -0
- package/OPPWAMobile.framework/Versions/Current/Resources/Info.plist +0 -0
- package/README.md +6 -8
- package/android/.DS_Store +0 -0
- package/android/.gradle/6.8/executionHistory/executionHistory.bin +0 -0
- package/android/.gradle/6.8/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/6.8/fileChanges/last-build.bin +0 -0
- package/android/.gradle/6.8/fileHashes/fileHashes.bin +0 -0
- package/android/.gradle/6.8/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/6.8/fileHashes/resourceHashesCache.bin +0 -0
- package/android/.gradle/6.8/gc.properties +0 -0
- package/android/.gradle/6.8/javaCompile/javaCompile.lock +0 -0
- package/android/.gradle/7.1.1/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/android/.gradle/7.1.1/dependencies-accessors/gc.properties +0 -0
- package/android/.gradle/7.1.1/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/7.1.1/fileChanges/last-build.bin +0 -0
- package/android/.gradle/7.1.1/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/7.1.1/gc.properties +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +2 -0
- package/android/.gradle/checksums/checksums.lock +0 -0
- package/android/.gradle/checksums/md5-checksums.bin +0 -0
- package/android/.gradle/checksums/sha1-checksums.bin +0 -0
- package/android/.gradle/configuration-cache/gc.properties +0 -0
- package/android/.gradle/vcs-1/gc.properties +0 -0
- package/android/.idea/.gitignore +3 -0
- package/android/.idea/compiler.xml +6 -0
- package/android/.idea/gradle.xml +19 -0
- package/android/.idea/jarRepositories.xml +40 -0
- package/android/.idea/libraries/Gradle____oppwa_mobile_2_44_0_oppwa_mobile_2_44_0_aar.xml +11 -0
- package/android/.idea/libraries/Gradle__com_android_support_appcompat_v7_23_0_1_aar.xml +18 -0
- package/android/.idea/libraries/Gradle__com_android_support_recyclerview_v7_23_0_1_aar.xml +15 -0
- package/android/.idea/libraries/Gradle__com_android_support_support_annotations_23_0_1.xml +13 -0
- package/android/.idea/libraries/Gradle__com_android_support_support_v4_23_0_1_aar.xml +19 -0
- package/android/.idea/libraries/Gradle__com_facebook_fresco_drawee_0_8_1_aar.xml +15 -0
- package/android/.idea/libraries/Gradle__com_facebook_fresco_fbcore_0_8_1_aar.xml +15 -0
- package/android/.idea/libraries/Gradle__com_facebook_fresco_fresco_0_8_1_aar.xml +15 -0
- package/android/.idea/libraries/Gradle__com_facebook_fresco_imagepipeline_0_8_1_aar.xml +15 -0
- package/android/.idea/libraries/Gradle__com_facebook_fresco_imagepipeline_okhttp_0_8_1_aar.xml +15 -0
- package/android/.idea/libraries/Gradle__com_facebook_react_react_native_0_20_1_aar.xml +19 -0
- package/android/.idea/libraries/Gradle__com_facebook_stetho_stetho_1_2_0.xml +13 -0
- package/android/.idea/libraries/Gradle__com_facebook_stetho_stetho_okhttp_1_2_0.xml +13 -0
- package/android/.idea/libraries/Gradle__com_fasterxml_jackson_core_jackson_core_2_2_3.xml +13 -0
- package/android/.idea/libraries/Gradle__com_google_code_findbugs_jsr305_3_0_0.xml +13 -0
- package/android/.idea/libraries/Gradle__com_nineoldandroids_library_2_4_0.xml +13 -0
- package/android/.idea/libraries/Gradle__com_parse_bolts_bolts_android_1_1_4.xml +13 -0
- package/android/.idea/libraries/Gradle__com_squareup_okhttp_okhttp_2_5_0.xml +13 -0
- package/android/.idea/libraries/Gradle__com_squareup_okhttp_okhttp_ws_2_5_0.xml +13 -0
- package/android/.idea/libraries/Gradle__com_squareup_okio_okio_1_6_0.xml +13 -0
- package/android/.idea/libraries/Gradle__commons_cli_commons_cli_1_2.xml +13 -0
- package/android/.idea/libraries/Gradle__org_webkit_android_jsc_r174650_aar.xml +11 -0
- package/android/.idea/misc.xml +9 -0
- package/android/.idea/modules/android.iml +66 -0
- package/android/.idea/modules.xml +8 -0
- package/android/.idea/vcs.xml +6 -0
- package/android/build.gradle +40 -116
- package/android/local.properties +8 -0
- package/android/src/main/AndroidManifest.xml +1 -1
- package/android/src/main/java/com/{reactnativehyperpaysdk/HyperpaySdkModule.java → reactnativehyperpay/HyperPayModule.java} +8 -7
- package/android/src/main/java/com/{reactnativehyperpaysdk/HyperpaySdkPackage.java → reactnativehyperpay/HyperPayPackage.java} +3 -3
- package/ios/HyperPay.h +11 -0
- package/ios/HyperPay.m +93 -0
- package/ios/{HyperpaySdk.xcodeproj → HyperPay.xcodeproj}/project.pbxproj +28 -20
- package/ios/{HyperpaySdk.xcodeproj → HyperPay.xcodeproj}/project.xcworkspace/contents.xcworkspacedata +0 -0
- package/lib/typescript/index.d.ts +24 -1
- package/package.json +27 -30
- package/react-native-hyperpay.podspec +20 -0
- package/src/index.tsx +17 -11
- package/android/gradle.properties +0 -5
- package/ios/HyperpaySdk.h +0 -5
- package/ios/HyperpaySdk.mm +0 -31
- package/react-native-hyperpay-sdk.podspec +0 -40
package/ios/HyperPay.m
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
|
|
2
|
+
#import <Foundation/Foundation.h>
|
|
3
|
+
#import "HyperPay.h"
|
|
4
|
+
#import <React/RCTLog.h>
|
|
5
|
+
|
|
6
|
+
@implementation HyperPay
|
|
7
|
+
|
|
8
|
+
OPPPaymentProvider *provider;
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
RCT_EXPORT_MODULE(HyperPay)
|
|
12
|
+
|
|
13
|
+
-(instancetype)init
|
|
14
|
+
{
|
|
15
|
+
self = [super init];
|
|
16
|
+
if (self) {
|
|
17
|
+
#ifdef DEBUG
|
|
18
|
+
provider = [OPPPaymentProvider paymentProviderWithMode:OPPProviderModeTest];
|
|
19
|
+
#else
|
|
20
|
+
provider = [OPPPaymentProvider paymentProviderWithMode:OPPProviderModeLive];
|
|
21
|
+
#endif
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
return self;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
- (NSArray<NSString *> *)supportedEvents {
|
|
28
|
+
return @[@"onTransactionComplete"];
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
React Native functions
|
|
33
|
+
*/
|
|
34
|
+
|
|
35
|
+
RCT_EXPORT_METHOD(createPaymentTransaction: (NSDictionary*)options resolver:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject) {
|
|
36
|
+
NSError * _Nullable error;
|
|
37
|
+
|
|
38
|
+
OPPCardPaymentParams *params = [OPPCardPaymentParams cardPaymentParamsWithCheckoutID:[options valueForKey:@"checkoutID"]
|
|
39
|
+
paymentBrand:[options valueForKey:@"paymentBrand"]
|
|
40
|
+
holder:[options valueForKey:@"holderName"]
|
|
41
|
+
number:[options valueForKey:@"cardNumber"]
|
|
42
|
+
expiryMonth:[options valueForKey:@"expiryMonth"]
|
|
43
|
+
expiryYear:[options valueForKey:@"expiryYear"]
|
|
44
|
+
CVV:[options valueForKey:@"cvv"]
|
|
45
|
+
error:&error];
|
|
46
|
+
|
|
47
|
+
if (error) {
|
|
48
|
+
NSLog(@"%s", "error");
|
|
49
|
+
reject(@"createTransaction",error.localizedDescription, error);
|
|
50
|
+
|
|
51
|
+
} else {
|
|
52
|
+
params.shopperResultURL =[options valueForKey:@"shopperResultURL"];
|
|
53
|
+
|
|
54
|
+
OPPTransaction *transaction = [OPPTransaction transactionWithPaymentParams:params];
|
|
55
|
+
|
|
56
|
+
[provider submitTransaction:transaction completionHandler:^(OPPTransaction * _Nonnull transaction, NSError * _Nullable error) {
|
|
57
|
+
NSDictionary *transactionResult;
|
|
58
|
+
if (transaction.type == OPPTransactionTypeAsynchronous) {
|
|
59
|
+
|
|
60
|
+
transactionResult = @{
|
|
61
|
+
@"redirectURL":transaction.redirectURL.absoluteString,
|
|
62
|
+
@"status":@"pending",
|
|
63
|
+
@"checkoutId":transaction.paymentParams.checkoutID
|
|
64
|
+
};
|
|
65
|
+
resolve(transactionResult);
|
|
66
|
+
|
|
67
|
+
} else if (transaction.type == OPPTransactionTypeSynchronous) {
|
|
68
|
+
|
|
69
|
+
transactionResult = @{
|
|
70
|
+
@"status":@"completed",
|
|
71
|
+
@"checkoutId":transaction.paymentParams.checkoutID
|
|
72
|
+
};
|
|
73
|
+
resolve(transactionResult);
|
|
74
|
+
} else {
|
|
75
|
+
reject(@"createTransaction",error.localizedDescription, error);
|
|
76
|
+
}
|
|
77
|
+
}];
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
RCT_REMAP_METHOD(multiply,
|
|
82
|
+
multiplyWithA:(nonnull NSNumber*)a withB:(nonnull NSNumber*)b
|
|
83
|
+
withResolver:(RCTPromiseResolveBlock)resolve
|
|
84
|
+
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
85
|
+
{
|
|
86
|
+
NSNumber *result = @([a floatValue] * [b floatValue]);
|
|
87
|
+
|
|
88
|
+
resolve(result);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
@end
|
|
92
|
+
|
|
93
|
+
|
|
@@ -7,7 +7,9 @@
|
|
|
7
7
|
objects = {
|
|
8
8
|
|
|
9
9
|
/* Begin PBXBuildFile section */
|
|
10
|
-
|
|
10
|
+
|
|
11
|
+
5E555C0D2413F4C50049A1A2 /* HyperPay.m in Sources */ = {isa = PBXBuildFile; fileRef = B3E7B5891CC2AC0600A0062D /* HyperPay.m */; };
|
|
12
|
+
|
|
11
13
|
/* End PBXBuildFile section */
|
|
12
14
|
|
|
13
15
|
/* Begin PBXCopyFilesBuildPhase section */
|
|
@@ -23,9 +25,11 @@
|
|
|
23
25
|
/* End PBXCopyFilesBuildPhase section */
|
|
24
26
|
|
|
25
27
|
/* Begin PBXFileReference section */
|
|
26
|
-
134814201AA4EA6300B7C361 /*
|
|
27
|
-
|
|
28
|
-
|
|
28
|
+
134814201AA4EA6300B7C361 /* libHyperPay.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libHyperPay.a; sourceTree = BUILT_PRODUCTS_DIR; };
|
|
29
|
+
|
|
30
|
+
B3E7B5881CC2AC0600A0062D /* HyperPay.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HyperPay.h; sourceTree = "<group>"; };
|
|
31
|
+
B3E7B5891CC2AC0600A0062D /* HyperPay.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = HyperPay.m; sourceTree = "<group>"; };
|
|
32
|
+
|
|
29
33
|
/* End PBXFileReference section */
|
|
30
34
|
|
|
31
35
|
/* Begin PBXFrameworksBuildPhase section */
|
|
@@ -42,7 +46,7 @@
|
|
|
42
46
|
134814211AA4EA7D00B7C361 /* Products */ = {
|
|
43
47
|
isa = PBXGroup;
|
|
44
48
|
children = (
|
|
45
|
-
134814201AA4EA6300B7C361 /*
|
|
49
|
+
134814201AA4EA6300B7C361 /* libHyperPay.a */,
|
|
46
50
|
);
|
|
47
51
|
name = Products;
|
|
48
52
|
sourceTree = "<group>";
|
|
@@ -50,8 +54,10 @@
|
|
|
50
54
|
58B511D21A9E6C8500147676 = {
|
|
51
55
|
isa = PBXGroup;
|
|
52
56
|
children = (
|
|
53
|
-
|
|
54
|
-
|
|
57
|
+
|
|
58
|
+
B3E7B5881CC2AC0600A0062D /* HyperPay.h */,
|
|
59
|
+
B3E7B5891CC2AC0600A0062D /* HyperPay.m */,
|
|
60
|
+
|
|
55
61
|
134814211AA4EA7D00B7C361 /* Products */,
|
|
56
62
|
);
|
|
57
63
|
sourceTree = "<group>";
|
|
@@ -59,9 +65,9 @@
|
|
|
59
65
|
/* End PBXGroup section */
|
|
60
66
|
|
|
61
67
|
/* Begin PBXNativeTarget section */
|
|
62
|
-
58B511DA1A9E6C8500147676 /*
|
|
68
|
+
58B511DA1A9E6C8500147676 /* HyperPay */ = {
|
|
63
69
|
isa = PBXNativeTarget;
|
|
64
|
-
buildConfigurationList = 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "
|
|
70
|
+
buildConfigurationList = 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "HyperPay" */;
|
|
65
71
|
buildPhases = (
|
|
66
72
|
58B511D71A9E6C8500147676 /* Sources */,
|
|
67
73
|
58B511D81A9E6C8500147676 /* Frameworks */,
|
|
@@ -71,9 +77,9 @@
|
|
|
71
77
|
);
|
|
72
78
|
dependencies = (
|
|
73
79
|
);
|
|
74
|
-
name =
|
|
80
|
+
name = HyperPay;
|
|
75
81
|
productName = RCTDataManager;
|
|
76
|
-
productReference = 134814201AA4EA6300B7C361 /*
|
|
82
|
+
productReference = 134814201AA4EA6300B7C361 /* libHyperPay.a */;
|
|
77
83
|
productType = "com.apple.product-type.library.static";
|
|
78
84
|
};
|
|
79
85
|
/* End PBXNativeTarget section */
|
|
@@ -90,7 +96,7 @@
|
|
|
90
96
|
};
|
|
91
97
|
};
|
|
92
98
|
};
|
|
93
|
-
buildConfigurationList = 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "
|
|
99
|
+
buildConfigurationList = 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "HyperPay" */;
|
|
94
100
|
compatibilityVersion = "Xcode 3.2";
|
|
95
101
|
developmentRegion = English;
|
|
96
102
|
hasScannedForEncodings = 0;
|
|
@@ -103,7 +109,7 @@
|
|
|
103
109
|
projectDirPath = "";
|
|
104
110
|
projectRoot = "";
|
|
105
111
|
targets = (
|
|
106
|
-
58B511DA1A9E6C8500147676 /*
|
|
112
|
+
58B511DA1A9E6C8500147676 /* HyperPay */,
|
|
107
113
|
);
|
|
108
114
|
};
|
|
109
115
|
/* End PBXProject section */
|
|
@@ -113,7 +119,9 @@
|
|
|
113
119
|
isa = PBXSourcesBuildPhase;
|
|
114
120
|
buildActionMask = 2147483647;
|
|
115
121
|
files = (
|
|
116
|
-
|
|
122
|
+
|
|
123
|
+
B3E7B58A1CC2AC0600A0062D /* HyperPay.m in Sources */,
|
|
124
|
+
|
|
117
125
|
);
|
|
118
126
|
runOnlyForDeploymentPostprocessing = 0;
|
|
119
127
|
};
|
|
@@ -148,7 +156,6 @@
|
|
|
148
156
|
COPY_PHASE_STRIP = NO;
|
|
149
157
|
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
|
150
158
|
ENABLE_TESTABILITY = YES;
|
|
151
|
-
"EXCLUDED_ARCHS[sdk=*]" = arm64;
|
|
152
159
|
GCC_C_LANGUAGE_STANDARD = gnu99;
|
|
153
160
|
GCC_DYNAMIC_NO_PIC = NO;
|
|
154
161
|
GCC_NO_COMMON_BLOCKS = YES;
|
|
@@ -199,7 +206,6 @@
|
|
|
199
206
|
COPY_PHASE_STRIP = YES;
|
|
200
207
|
ENABLE_NS_ASSERTIONS = NO;
|
|
201
208
|
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
|
202
|
-
"EXCLUDED_ARCHS[sdk=*]" = arm64;
|
|
203
209
|
GCC_C_LANGUAGE_STANDARD = gnu99;
|
|
204
210
|
GCC_NO_COMMON_BLOCKS = YES;
|
|
205
211
|
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
|
|
@@ -226,8 +232,9 @@
|
|
|
226
232
|
);
|
|
227
233
|
LIBRARY_SEARCH_PATHS = "$(inherited)";
|
|
228
234
|
OTHER_LDFLAGS = "-ObjC";
|
|
229
|
-
PRODUCT_NAME =
|
|
235
|
+
PRODUCT_NAME = HyperPay;
|
|
230
236
|
SKIP_INSTALL = YES;
|
|
237
|
+
|
|
231
238
|
};
|
|
232
239
|
name = Debug;
|
|
233
240
|
};
|
|
@@ -242,15 +249,16 @@
|
|
|
242
249
|
);
|
|
243
250
|
LIBRARY_SEARCH_PATHS = "$(inherited)";
|
|
244
251
|
OTHER_LDFLAGS = "-ObjC";
|
|
245
|
-
PRODUCT_NAME =
|
|
252
|
+
PRODUCT_NAME = HyperPay;
|
|
246
253
|
SKIP_INSTALL = YES;
|
|
254
|
+
|
|
247
255
|
};
|
|
248
256
|
name = Release;
|
|
249
257
|
};
|
|
250
258
|
/* End XCBuildConfiguration section */
|
|
251
259
|
|
|
252
260
|
/* Begin XCConfigurationList section */
|
|
253
|
-
58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "
|
|
261
|
+
58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "HyperPay" */ = {
|
|
254
262
|
isa = XCConfigurationList;
|
|
255
263
|
buildConfigurations = (
|
|
256
264
|
58B511ED1A9E6C8500147676 /* Debug */,
|
|
@@ -259,7 +267,7 @@
|
|
|
259
267
|
defaultConfigurationIsVisible = 0;
|
|
260
268
|
defaultConfigurationName = Release;
|
|
261
269
|
};
|
|
262
|
-
58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "
|
|
270
|
+
58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "HyperPay" */ = {
|
|
263
271
|
isa = XCConfigurationList;
|
|
264
272
|
buildConfigurations = (
|
|
265
273
|
58B511F01A9E6C8500147676 /* Debug */,
|
|
File without changes
|
|
@@ -1 +1,24 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
export type CreateTransactionResponseType = {
|
|
5
|
+
status: 'pending',
|
|
6
|
+
checkoutId: string,
|
|
7
|
+
redirectURL: string
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export type CreateTransactionParams = {
|
|
11
|
+
paymentBrand: string,
|
|
12
|
+
holderName: string,
|
|
13
|
+
cardNumber: string,
|
|
14
|
+
expiryYear: string,
|
|
15
|
+
expiryMonth: string,
|
|
16
|
+
cvv: string,
|
|
17
|
+
checkoutID: string,
|
|
18
|
+
shopperResultURL: string
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export declare function
|
|
22
|
+
createPaymentTransaction(params: CreateTransactionParams):
|
|
23
|
+
Promise<CreateTransactionResponseType>;
|
|
24
|
+
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-hyperpay-sdk",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.5.0",
|
|
4
|
+
"description": "hyperpay",
|
|
5
5
|
"main": "lib/commonjs/index",
|
|
6
6
|
"module": "lib/module/index",
|
|
7
7
|
"types": "lib/typescript/index.d.ts",
|
|
@@ -13,7 +13,9 @@
|
|
|
13
13
|
"android",
|
|
14
14
|
"ios",
|
|
15
15
|
"cpp",
|
|
16
|
-
"react-native-hyperpay
|
|
16
|
+
"react-native-hyperpay.podspec",
|
|
17
|
+
"OPPWAMobile-Resources.bundle",
|
|
18
|
+
"OPPWAMobile.framework",
|
|
17
19
|
"!lib/typescript/example",
|
|
18
20
|
"!android/build",
|
|
19
21
|
"!ios/build",
|
|
@@ -25,50 +27,46 @@
|
|
|
25
27
|
"test": "jest",
|
|
26
28
|
"typescript": "tsc --noEmit",
|
|
27
29
|
"lint": "eslint \"**/*.{js,ts,tsx}\"",
|
|
28
|
-
"prepare": "bob build",
|
|
29
30
|
"release": "release-it",
|
|
30
31
|
"example": "yarn --cwd example",
|
|
31
|
-
"
|
|
32
|
+
"pods": "cd example && pod-install --quiet",
|
|
33
|
+
"bootstrap": "yarn example && yarn && yarn pods"
|
|
32
34
|
},
|
|
33
35
|
"keywords": [
|
|
34
36
|
"react-native",
|
|
35
37
|
"ios",
|
|
36
38
|
"android"
|
|
37
39
|
],
|
|
38
|
-
"repository": "https://github.com/RMabroukS/react-native-hyperpay
|
|
40
|
+
"repository": "https://github.com/RMabroukS/react-native-hyperpay",
|
|
39
41
|
"author": "RMabroukS <r.mabrouk.sayed@gmail.com> (https://github.com/RMabroukS)",
|
|
40
42
|
"license": "MIT",
|
|
41
43
|
"bugs": {
|
|
42
|
-
"url": "https://github.com/RMabroukS/react-native-hyperpay
|
|
44
|
+
"url": "https://github.com/RMabroukS/react-native-hyperpay/issues"
|
|
43
45
|
},
|
|
44
|
-
"homepage": "https://github.com/RMabroukS/react-native-hyperpay
|
|
46
|
+
"homepage": "https://github.com/RMabroukS/react-native-hyperpay#readme",
|
|
45
47
|
"publishConfig": {
|
|
46
48
|
"registry": "https://registry.npmjs.org/"
|
|
47
49
|
},
|
|
48
50
|
"devDependencies": {
|
|
49
|
-
"@
|
|
50
|
-
"@
|
|
51
|
-
"@
|
|
52
|
-
"@
|
|
53
|
-
"@
|
|
54
|
-
"@types/
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"eslint": "^
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"jest": "^28.1.1",
|
|
51
|
+
"@commitlint/config-conventional": "^11.0.0",
|
|
52
|
+
"@react-native-community/eslint-config": "^2.0.0",
|
|
53
|
+
"@release-it/conventional-changelog": "^2.0.0",
|
|
54
|
+
"@types/jest": "^26.0.0",
|
|
55
|
+
"@types/react": "^16.9.19",
|
|
56
|
+
"@types/react-native": "0.62.13",
|
|
57
|
+
"commitlint": "^11.0.0",
|
|
58
|
+
"eslint": "^7.2.0",
|
|
59
|
+
"eslint-config-prettier": "^7.0.0",
|
|
60
|
+
"eslint-plugin-prettier": "^3.1.3",
|
|
61
|
+
"husky": "^6.0.0",
|
|
62
|
+
"jest": "^26.0.1",
|
|
62
63
|
"pod-install": "^0.1.0",
|
|
63
64
|
"prettier": "^2.0.5",
|
|
64
|
-
"react": "
|
|
65
|
-
"react-native": "0.
|
|
66
|
-
"react-native-builder-bob": "^0.18.
|
|
67
|
-
"release-it": "^
|
|
68
|
-
"typescript": "^4.
|
|
69
|
-
},
|
|
70
|
-
"resolutions": {
|
|
71
|
-
"@types/react": "17.0.21"
|
|
65
|
+
"react": "16.13.1",
|
|
66
|
+
"react-native": "0.63.4",
|
|
67
|
+
"react-native-builder-bob": "^0.18.0",
|
|
68
|
+
"release-it": "^14.2.2",
|
|
69
|
+
"typescript": "^4.1.3"
|
|
72
70
|
},
|
|
73
71
|
"peerDependencies": {
|
|
74
72
|
"react": "*",
|
|
@@ -105,7 +103,6 @@
|
|
|
105
103
|
},
|
|
106
104
|
"eslintConfig": {
|
|
107
105
|
"root": true,
|
|
108
|
-
"parser": "@babel/eslint-parser",
|
|
109
106
|
"extends": [
|
|
110
107
|
"@react-native-community",
|
|
111
108
|
"prettier"
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
require "json"
|
|
2
|
+
|
|
3
|
+
package = JSON.parse(File.read(File.join(__dir__, "package.json")))
|
|
4
|
+
|
|
5
|
+
Pod::Spec.new do |s|
|
|
6
|
+
s.name = "react-native-hyperpay"
|
|
7
|
+
s.version = package["version"]
|
|
8
|
+
s.summary = package["description"]
|
|
9
|
+
s.homepage = package["homepage"]
|
|
10
|
+
s.license = package["license"]
|
|
11
|
+
s.authors = package["author"]
|
|
12
|
+
s.platforms = { :ios => "10.0" }
|
|
13
|
+
s.source = { :git => "https://github.com/RMabroukS/react-native-hyperpay.git", :tag => "#{s.version}" }
|
|
14
|
+
s.source_files = "ios/**/*.{h,m,mm}"
|
|
15
|
+
s.dependency "React-Core"
|
|
16
|
+
s.requires_arc = true
|
|
17
|
+
s.vendored_frameworks = "OPPWAMobile.framework"
|
|
18
|
+
s.public_header_files = "OPPWAMobile.framework/Versions/2.47.0/Headers/*.h"
|
|
19
|
+
s.resource_bundle = { 'OPPWAMobile-Resources' => '*' }
|
|
20
|
+
end
|
package/src/index.tsx
CHANGED
|
@@ -1,20 +1,26 @@
|
|
|
1
1
|
import { NativeModules, Platform } from 'react-native';
|
|
2
|
-
|
|
2
|
+
import { CreateTransactionResponseType, CreateTransactionParams } from '../lib/typescript'
|
|
3
3
|
const LINKING_ERROR =
|
|
4
|
-
`The package 'react-native-hyperpay
|
|
4
|
+
`The package 'react-native-hyperpay' doesn't seem to be linked. Make sure: \n\n` +
|
|
5
5
|
Platform.select({ ios: "- You have run 'pod install'\n", default: '' }) +
|
|
6
6
|
'- You rebuilt the app after installing the package\n' +
|
|
7
7
|
'- You are not using Expo managed workflow\n';
|
|
8
8
|
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
9
|
+
const HyperPay = NativeModules.HyperPay
|
|
10
|
+
? NativeModules.HyperPay
|
|
11
|
+
: new Proxy(
|
|
12
|
+
{},
|
|
13
|
+
{
|
|
14
|
+
get() {
|
|
15
|
+
throw new Error(LINKING_ERROR);
|
|
16
|
+
},
|
|
17
|
+
}
|
|
18
|
+
);
|
|
17
19
|
|
|
18
20
|
export function multiply(a: number, b: number): Promise<number> {
|
|
19
|
-
return
|
|
21
|
+
return HyperPay.multiply(a, b);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export function createPaymentTransaction(params: CreateTransactionParams): Promise<CreateTransactionResponseType> {
|
|
25
|
+
return HyperPay.createPaymentTransaction(params);
|
|
20
26
|
}
|
package/ios/HyperpaySdk.h
DELETED
package/ios/HyperpaySdk.mm
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
#import "HyperpaySdk.h"
|
|
2
|
-
|
|
3
|
-
#ifdef RCT_NEW_ARCH_ENABLED
|
|
4
|
-
#import "RNHyperpaySdkSpec.h"
|
|
5
|
-
#endif
|
|
6
|
-
|
|
7
|
-
@implementation HyperpaySdk
|
|
8
|
-
RCT_EXPORT_MODULE()
|
|
9
|
-
|
|
10
|
-
// Example method
|
|
11
|
-
// See // https://reactnative.dev/docs/native-modules-ios
|
|
12
|
-
RCT_REMAP_METHOD(multiply,
|
|
13
|
-
multiplyWithA:(double)a withB:(double)b
|
|
14
|
-
withResolver:(RCTPromiseResolveBlock)resolve
|
|
15
|
-
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
16
|
-
{
|
|
17
|
-
NSNumber *result = @(a * b);
|
|
18
|
-
|
|
19
|
-
resolve(result);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
// Don't compile this code when we build for the old architecture.
|
|
23
|
-
#ifdef RCT_NEW_ARCH_ENABLED
|
|
24
|
-
- (std::shared_ptr<facebook::react::TurboModule>)getTurboModule:
|
|
25
|
-
(const facebook::react::ObjCTurboModule::InitParams &)params
|
|
26
|
-
{
|
|
27
|
-
return std::make_shared<facebook::react::NativeHyperpaySdkSpecJSI>(params);
|
|
28
|
-
}
|
|
29
|
-
#endif
|
|
30
|
-
|
|
31
|
-
@end
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
require "json"
|
|
2
|
-
|
|
3
|
-
package = JSON.parse(File.read(File.join(__dir__, "package.json")))
|
|
4
|
-
folly_version = '2021.06.28.00-v2'
|
|
5
|
-
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32'
|
|
6
|
-
|
|
7
|
-
Pod::Spec.new do |s|
|
|
8
|
-
s.name = "react-native-hyperpay-sdk"
|
|
9
|
-
s.version = package["version"]
|
|
10
|
-
s.summary = package["description"]
|
|
11
|
-
s.homepage = package["homepage"]
|
|
12
|
-
s.license = package["license"]
|
|
13
|
-
s.authors = package["author"]
|
|
14
|
-
|
|
15
|
-
s.platforms = { :ios => "10.0" }
|
|
16
|
-
s.source = { :git => "https://github.com/RMabroukS/react-native-hyperpay-sdk.git", :tag => "#{s.version}" }
|
|
17
|
-
|
|
18
|
-
s.source_files = "ios/**/*.{h,m,mm}"
|
|
19
|
-
|
|
20
|
-
s.dependency "React-Core"
|
|
21
|
-
s.requires_arc = true
|
|
22
|
-
s.vendored_frameworks = "OPPWAMobile.framework"
|
|
23
|
-
s.public_header_files = "OPPWAMobile.framework/Versions/2.47.0/Headers/*.h"
|
|
24
|
-
s.resource_bundle = { 'OPPWAMobile-Resources' => '*' }
|
|
25
|
-
|
|
26
|
-
# Don't install the dependencies when we run `pod install` in the old architecture.
|
|
27
|
-
if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
|
|
28
|
-
s.compiler_flags = folly_compiler_flags + " -DRCT_NEW_ARCH_ENABLED=1"
|
|
29
|
-
s.pod_target_xcconfig = {
|
|
30
|
-
"HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\"",
|
|
31
|
-
"CLANG_CXX_LANGUAGE_STANDARD" => "c++17"
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
s.dependency "React-Codegen"
|
|
35
|
-
s.dependency "RCT-Folly", folly_version
|
|
36
|
-
s.dependency "RCTRequired"
|
|
37
|
-
s.dependency "RCTTypeSafety"
|
|
38
|
-
s.dependency "ReactCommon/turbomodule/core"
|
|
39
|
-
end
|
|
40
|
-
end
|