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
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright (c) 2019 by ACI Worldwide, Inc.
|
|
3
|
+
// All rights reserved.
|
|
4
|
+
//
|
|
5
|
+
// This software is the confidential and proprietary information
|
|
6
|
+
// of ACI Worldwide Inc ("Confidential Information"). You shall
|
|
7
|
+
// not disclose such Confidential Information and shall use it
|
|
8
|
+
// only in accordance with the terms of the license agreement
|
|
9
|
+
// you entered with ACI Worldwide Inc.
|
|
10
|
+
//
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
#import <Foundation/Foundation.h>
|
|
14
|
+
|
|
15
|
+
/// An enumeration for the possible modes of security policy.
|
|
16
|
+
typedef NS_ENUM(NSInteger, OPPSecurityPolicyMode) {
|
|
17
|
+
/// Device authentication is required to complete payment. Payment method won't be displayed in the list if neither Touch ID/FACE ID nor passcode are set.
|
|
18
|
+
OPPSecurityPolicyModeDeviceAuthRequired,
|
|
19
|
+
/// Require device authentication only if Touch ID, Face ID or passcode are set.
|
|
20
|
+
OPPSecurityPolicyModeDeviceAuthRequiredIfAvailable,
|
|
21
|
+
/// Shopper don't have to provide Touch ID, Face ID or passcode to complete payment.
|
|
22
|
+
OPPSecurityPolicyModeDeviceAuthNotRequired
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
Class which is used to apply security policy mode for the set of payment methods.
|
|
27
|
+
*/
|
|
28
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
29
|
+
@interface OPPSecurityPolicy : NSObject
|
|
30
|
+
|
|
31
|
+
/// @name Initialization
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
Creates security policy for the list of payment methods with specified mode.
|
|
35
|
+
@param paymentBrands List of payment brands. Note that Apple Pay will be ignored, because device authentication is mandatory for this payment method.
|
|
36
|
+
@param mode Mode of security policy which will be applied to the `paymentBrands`.
|
|
37
|
+
*/
|
|
38
|
+
+ (instancetype)securityPolicyWithPaymentBrands:(NSArray<NSString *> *)paymentBrands mode:(OPPSecurityPolicyMode)mode;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
Creates security policy for tokens with specified mode.
|
|
42
|
+
@param mode Mode of security policy which will be applied for all tokens.
|
|
43
|
+
*/
|
|
44
|
+
+ (instancetype)securityPolicyForTokensWithMode:(OPPSecurityPolicyMode)mode;
|
|
45
|
+
|
|
46
|
+
/// :nodoc:
|
|
47
|
+
- (instancetype)init NS_UNAVAILABLE;
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
/// @name Properties
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
The mode of security policy.
|
|
54
|
+
*/
|
|
55
|
+
@property (nonatomic, readonly) OPPSecurityPolicyMode mode;
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
The list of payment brands.
|
|
59
|
+
*/
|
|
60
|
+
@property (nonatomic, copy, readonly, nullable) NSArray<NSString *> *paymentBrands;
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
The flag that defines whether mode is applied to `paymentBrands` or to all tokens.
|
|
64
|
+
*/
|
|
65
|
+
@property (nonatomic, readonly, getter=isTokenPolicy) BOOL tokenPolicy;
|
|
66
|
+
|
|
67
|
+
/// @name Deprecated Properties
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
The list of payment methods.
|
|
71
|
+
@warning **Deprecated:** Use `paymentBrands` instead
|
|
72
|
+
*/
|
|
73
|
+
@property (nonatomic, copy, readonly, nullable) NSArray<NSNumber *> *paymentMethods DEPRECATED_ATTRIBUTE;
|
|
74
|
+
|
|
75
|
+
@end
|
|
76
|
+
|
|
77
|
+
/// Deprecated methods
|
|
78
|
+
@interface OPPSecurityPolicy (Deprecated)
|
|
79
|
+
/**
|
|
80
|
+
Creates security policy for the list of payment methods with specified mode.
|
|
81
|
+
@param paymentMethods List of payment methods. Note that Apple Pay will be ignored, because device authentication is mandatory for this payment method.
|
|
82
|
+
@param mode Mode of security policy which will be applied to the `paymentMethods`.
|
|
83
|
+
@warning **Deprecated:** Use `+securityPolicyWithPaymentBrands:mode:` instead
|
|
84
|
+
*/
|
|
85
|
+
+ (instancetype)securityPolicyWithPaymentMethods:(NSArray<NSNumber *> *)paymentMethods mode:(OPPSecurityPolicyMode)mode DEPRECATED_MSG_ATTRIBUTE("- Use +securityPolicyWithPaymentBrands:mode: instead.");
|
|
86
|
+
@end
|
|
87
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright (c) 2019 by ACI Worldwide, Inc.
|
|
3
|
+
// All rights reserved.
|
|
4
|
+
//
|
|
5
|
+
// This software is the confidential and proprietary information
|
|
6
|
+
// of ACI Worldwide Inc ("Confidential Information"). You shall
|
|
7
|
+
// not disclose such Confidential Information and shall use it
|
|
8
|
+
// only in accordance with the terms of the license agreement
|
|
9
|
+
// you entered with ACI Worldwide Inc.
|
|
10
|
+
//
|
|
11
|
+
|
|
12
|
+
#import <Foundation/Foundation.h>
|
|
13
|
+
#import "OPPCard.h"
|
|
14
|
+
#import "OPPBankAccount.h"
|
|
15
|
+
#import "OPPPaymentParams.h"
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
Class to encapsulate shopper’s payment details that have been tokenized.
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
22
|
+
@interface OPPToken : NSObject
|
|
23
|
+
|
|
24
|
+
/// @name Properties
|
|
25
|
+
|
|
26
|
+
/** The identifier of the token that can be used to reference the token later. */
|
|
27
|
+
@property (nonatomic, copy, readonly) NSString *tokenID;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
The payment brand of the transaction.
|
|
31
|
+
*/
|
|
32
|
+
@property (nonatomic, copy, readonly) NSString *paymentBrand;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
Shopper’s card details.
|
|
36
|
+
*/
|
|
37
|
+
@property (nonatomic, readonly) OPPCard *card;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
Shopper’s bank account details.
|
|
41
|
+
*/
|
|
42
|
+
@property (nonatomic, readonly) OPPBankAccount *bankAccount;
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
/// @name Initialization
|
|
46
|
+
|
|
47
|
+
/// :nodoc:
|
|
48
|
+
- (instancetype)init NS_UNAVAILABLE;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
Creates an `OPPToken` object from JSON.
|
|
52
|
+
@param JSON A dictionary with parameters received from the Server.
|
|
53
|
+
@return Returns an `OPPToken` object, or `nil` if JSON contains invalid values.
|
|
54
|
+
*/
|
|
55
|
+
+ (nullable instancetype)tokenFromJSON:(NSDictionary *)JSON;
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
Creates an `OPPToken` object with provided card parameters.
|
|
59
|
+
@param tokenID The identifier of the token that can be used to reference the token later.
|
|
60
|
+
@param paymentBrand The payment brand.
|
|
61
|
+
@param card Shopper’s card details.
|
|
62
|
+
@return Returns an `OPPToken` object, or `nil` if parameters are empty.
|
|
63
|
+
*/
|
|
64
|
+
+ (nullable instancetype)tokenWithTokenID:(NSString *)tokenID paymentBrand:(NSString *)paymentBrand card:(OPPCard *)card;
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
Creates an `OPPToken` object with provided bank account parameters.
|
|
69
|
+
@param tokenID The identifier of the token that can be used to reference the token later.
|
|
70
|
+
@param paymentBrand The payment brand.
|
|
71
|
+
@param bankAccount Shopper’s bank account details.
|
|
72
|
+
@return Returns an `OPPToken` object, or `nil` if parameters are empty.
|
|
73
|
+
*/
|
|
74
|
+
+ (nullable instancetype)tokenWithTokenID:(NSString *)tokenID paymentBrand:(NSString *)paymentBrand bankAccount:(OPPBankAccount *)bankAccount;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
Creates an `OPPToken` object with provided card parameters.
|
|
78
|
+
@param tokenID The identifier of the token that can be used to reference the token later.
|
|
79
|
+
@param paymentBrand The payment brand.
|
|
80
|
+
@param card Shopper’s card details.
|
|
81
|
+
@return Returns an `OPPToken` object, or `nil` if parameters are empty.
|
|
82
|
+
*/
|
|
83
|
+
- (nullable instancetype)initWithTokenID:(NSString *)tokenID paymentBrand:(NSString *)paymentBrand card:(OPPCard *)card;
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
Creates an `OPPToken` object with provided bank account parameters.
|
|
87
|
+
@param tokenID The identifier of the token that can be used to reference the token later.
|
|
88
|
+
@param paymentBrand The payment brand.
|
|
89
|
+
@param bankAccount Shopper’s bank account details.
|
|
90
|
+
@return Returns an `OPPToken` object, or `nil` if parameters are empty.
|
|
91
|
+
*/
|
|
92
|
+
- (nullable instancetype)initWithTokenID:(NSString *)tokenID paymentBrand:(NSString *)paymentBrand bankAccount:(OPPBankAccount *)bankAccount;
|
|
93
|
+
|
|
94
|
+
@end
|
|
95
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright (c) 2019 by ACI Worldwide, Inc.
|
|
3
|
+
// All rights reserved.
|
|
4
|
+
//
|
|
5
|
+
// This software is the confidential and proprietary information
|
|
6
|
+
// of ACI Worldwide Inc ("Confidential Information"). You shall
|
|
7
|
+
// not disclose such Confidential Information and shall use it
|
|
8
|
+
// only in accordance with the terms of the license agreement
|
|
9
|
+
// you entered with ACI Worldwide Inc.
|
|
10
|
+
//
|
|
11
|
+
|
|
12
|
+
#import "OPPPaymentParams.h"
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
Class to encapsulate all necessary transaction parameters for performing a token transaction.
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
19
|
+
@interface OPPTokenPaymentParams : OPPPaymentParams
|
|
20
|
+
|
|
21
|
+
/// @name Initialization
|
|
22
|
+
|
|
23
|
+
/// :nodoc:
|
|
24
|
+
- (instancetype)initWithCheckoutID:(NSString *)checkoutID paymentBrand:(NSString *)paymentBrand error:(NSError * _Nullable __autoreleasing *)error NS_UNAVAILABLE;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
Creates an object representing a token transaction.
|
|
28
|
+
|
|
29
|
+
@param checkoutID The checkout ID of the transaction. Must be not `nil` or empty.
|
|
30
|
+
@param tokenID The identifier of the token that can be used to reference the token later.
|
|
31
|
+
@param paymentBrand Payment brand of the tokenized transaction.
|
|
32
|
+
@param error The error that occurred while validating payment parameters. See code attribute (`OPPErrorCode`) and `NSLocalizedDescription` to identify the reason of failure.
|
|
33
|
+
@return Returns an object representing a token transaction, and `nil` if parameters are invalid.
|
|
34
|
+
*/
|
|
35
|
+
+ (nullable instancetype)tokenPaymentParamsWithCheckoutID:(NSString *)checkoutID tokenID:(NSString *)tokenID paymentBrand:(NSString *)paymentBrand error:(NSError **)error;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
Creates an object representing a token transaction.
|
|
39
|
+
|
|
40
|
+
@param checkoutID The checkout ID of the transaction. Must be not `nil` or empty.
|
|
41
|
+
@param tokenID The identifier of the token that can be used to reference the token later.
|
|
42
|
+
@param cardPaymentBrand The payment brand of the tokenized card.
|
|
43
|
+
@param CVV The CVV code found on the card.
|
|
44
|
+
@param error The error that occurred while validating payment parameters. See code attribute (`OPPErrorCode`) and `NSLocalizedDescription` to identify the reason of failure.
|
|
45
|
+
@return Returns an object representing a token transaction, and `nil` if parameters are invalid.
|
|
46
|
+
*/
|
|
47
|
+
+ (nullable instancetype)tokenPaymentParamsWithCheckoutID:(NSString *)checkoutID tokenID:(NSString *)tokenID cardPaymentBrand:(NSString *)cardPaymentBrand CVV:(nullable NSString *)CVV error:(NSError **)error;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
Creates an object representing a token transaction.
|
|
51
|
+
|
|
52
|
+
@param checkoutID The checkout ID of the transaction. Must be not `nil` or empty.
|
|
53
|
+
@param tokenID The identifier of the token that can be used to reference the token later.
|
|
54
|
+
@param paymentBrand Payment method brand.
|
|
55
|
+
@param error The error that occurred while validating payment parameters. See code attribute (`OPPErrorCode`) and `NSLocalizedDescription` to identify the reason of failure.
|
|
56
|
+
@return Returns an object representing a token transaction, and `nil` if parameters are invalid.
|
|
57
|
+
*/
|
|
58
|
+
- (nullable instancetype)initWithCheckoutID:(NSString *)checkoutID tokenID:(NSString *)tokenID paymentBrand:(NSString *)paymentBrand error:(NSError **)error NS_DESIGNATED_INITIALIZER;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
Creates an object representing a token transaction.
|
|
62
|
+
|
|
63
|
+
@param checkoutID The checkout ID of the transaction. Must be not `nil` or empty.
|
|
64
|
+
@param tokenID The identifier of the token that can be used to reference the token later.
|
|
65
|
+
@param cardPaymentBrand The payment brand of the tokenized card.
|
|
66
|
+
@param CVV The CVV code found on the card.
|
|
67
|
+
@param error The error that occurred while validating payment parameters. See code attribute (`OPPErrorCode`) and `NSLocalizedDescription` to identify the reason of failure.
|
|
68
|
+
@return Returns an object representing a token transaction, and `nil` if parameters are invalid.
|
|
69
|
+
*/
|
|
70
|
+
- (nullable instancetype)initWithCheckoutID:(NSString *)checkoutID tokenID:(NSString *)tokenID cardPaymentBrand:(NSString *)cardPaymentBrand CVV:(nullable NSString *)CVV error:(NSError **)error NS_DESIGNATED_INITIALIZER;
|
|
71
|
+
|
|
72
|
+
/// @name Properties
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
The identifier of the token that can be used to reference the token later.
|
|
76
|
+
*/
|
|
77
|
+
@property (nonatomic, copy, readonly) NSString *tokenID;
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
The CVV code found on the card. Property should be set, if CVV check is required for transaction processing.
|
|
81
|
+
*/
|
|
82
|
+
@property (nonatomic, copy, readonly, nullable) NSString *CVV;
|
|
83
|
+
|
|
84
|
+
/** The number of installments the payment should be split into. */
|
|
85
|
+
@property (nonatomic, copy) NSNumber *numberOfInstallments;
|
|
86
|
+
|
|
87
|
+
/// @name Validation methods
|
|
88
|
+
/**
|
|
89
|
+
Checks if the token identifier is valid to perform a transaction.
|
|
90
|
+
|
|
91
|
+
@param tokenID The identifier of the token that can be used to reference the token later.
|
|
92
|
+
@return `YES` if token identifier is alpha-numeric string of length 32.
|
|
93
|
+
*/
|
|
94
|
+
+ (BOOL)isTokenIDValid:(NSString *)tokenID;
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
Checks if the card CVV is filled with sufficient data to perform a transaction.
|
|
98
|
+
|
|
99
|
+
@param CVV The card security code or CVV.
|
|
100
|
+
@return `YES` if 3,4-digit number is provided.
|
|
101
|
+
*/
|
|
102
|
+
+ (BOOL)isCvvValid:(NSString *)CVV;
|
|
103
|
+
|
|
104
|
+
@end
|
|
105
|
+
|
|
106
|
+
/// Deprecated methods
|
|
107
|
+
@interface OPPTokenPaymentParams (Deprecated)
|
|
108
|
+
/**
|
|
109
|
+
Creates an object representing a token transaction.
|
|
110
|
+
|
|
111
|
+
@param checkoutID The checkout ID of the transaction. Must be not `nil` or empty.
|
|
112
|
+
@param tokenID The identifier of the token that can be used to reference the token later.
|
|
113
|
+
@param brand Payment method brand.
|
|
114
|
+
@param error The error that occurred while validating payment parameters. See code attribute (`OPPErrorCode`) and `NSLocalizedDescription` to identify the reason of failure.
|
|
115
|
+
@return Returns an object representing a token transaction, and `nil` if parameters are invalid.
|
|
116
|
+
@warning **Deprecated:** Use `+tokenPaymentParamsWithCheckoutID:tokenID:paymentBrand:error:` instead
|
|
117
|
+
*/
|
|
118
|
+
+ (nullable instancetype)tokenPaymentParamsWithCheckoutID:(NSString *)checkoutID tokenID:(NSString *)tokenID brand:(OPPPaymentParamsBrand)brand error:(NSError **)error DEPRECATED_MSG_ATTRIBUTE("- Use +tokenPaymentParamsWithCheckoutID:tokenID:paymentBrand:error: instead.");
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
Creates an object representing a token transaction.
|
|
122
|
+
|
|
123
|
+
@param checkoutID The checkout ID of the transaction. Must be not `nil` or empty.
|
|
124
|
+
@param tokenID The identifier of the token that can be used to reference the token later.
|
|
125
|
+
@param cardBrand The brand of the tokenized card.
|
|
126
|
+
@param CVV The CVV code found on the card.
|
|
127
|
+
@param error The error that occurred while validating payment parameters. See code attribute (`OPPErrorCode`) and `NSLocalizedDescription` to identify the reason of failure.
|
|
128
|
+
@return Returns an object representing a token transaction, and `nil` if parameters are invalid.
|
|
129
|
+
@warning **Deprecated:** Use `+tokenPaymentParamsWithCheckoutID:tokenID:cardPaymentBrand:CVV:error:` instead
|
|
130
|
+
*/
|
|
131
|
+
+ (nullable instancetype)tokenPaymentParamsWithCheckoutID:(NSString *)checkoutID tokenID:(NSString *)tokenID cardBrand:(OPPPaymentParamsBrand)cardBrand CVV:(nullable NSString *)CVV error:(NSError **)error DEPRECATED_MSG_ATTRIBUTE("- Use +tokenPaymentParamsWithCheckoutID:tokenID:cardPaymentBrand:CVV:error: instead.");
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
Creates an object representing a token transaction.
|
|
135
|
+
|
|
136
|
+
@param checkoutID The checkout ID of the transaction. Must be not `nil` or empty.
|
|
137
|
+
@param tokenID The identifier of the token that can be used to reference the token later.
|
|
138
|
+
@param brand Payment method brand.
|
|
139
|
+
@param error The error that occurred while validating payment parameters. See code attribute (`OPPErrorCode`) and `NSLocalizedDescription` to identify the reason of failure.
|
|
140
|
+
@return Returns an object representing a token transaction, and `nil` if parameters are invalid.
|
|
141
|
+
@warning **Deprecated:** Use `-initWithCheckoutID:tokenID:paymentBrand:error:` instead
|
|
142
|
+
*/
|
|
143
|
+
- (nullable instancetype)initWithCheckoutID:(NSString *)checkoutID tokenID:(NSString *)tokenID brand:(OPPPaymentParamsBrand)brand error:(NSError **)error DEPRECATED_MSG_ATTRIBUTE("- Use -initWithCheckoutID:tokenID:paymentBrand:error: instead.");
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
Creates an object representing a token transaction.
|
|
147
|
+
|
|
148
|
+
@param checkoutID The checkout ID of the transaction. Must be not `nil` or empty.
|
|
149
|
+
@param tokenID The identifier of the token that can be used to reference the token later.
|
|
150
|
+
@param cardBrand The brand of the tokenized card.
|
|
151
|
+
@param CVV The CVV code found on the card.
|
|
152
|
+
@param error The error that occurred while validating payment parameters. See code attribute (`OPPErrorCode`) and `NSLocalizedDescription` to identify the reason of failure.
|
|
153
|
+
@return Returns an object representing a token transaction, and `nil` if parameters are invalid.
|
|
154
|
+
@warning **Deprecated:** Use `-initWithCheckoutID:tokenID:cardPaymentBrand:CVV:error:` instead
|
|
155
|
+
*/
|
|
156
|
+
- (nullable instancetype)initWithCheckoutID:(NSString *)checkoutID tokenID:(NSString *)tokenID cardBrand:(OPPPaymentParamsBrand)cardBrand CVV:(nullable NSString *)CVV error:(NSError **)error DEPRECATED_MSG_ATTRIBUTE("- Use -initWithCheckoutID:tokenID:cardPaymentBrand:CVV:error: instead.");
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
Checks if the card CVV is filled with sufficient data to perform a transaction.
|
|
160
|
+
|
|
161
|
+
@param CVV The card security code or CVV.
|
|
162
|
+
@param brand The brand of the tokenized card.
|
|
163
|
+
@return YES if the card CVV length greater than 3 characters and less than 4 characters, it's also valid for `nil` value, because it's optional parameter.
|
|
164
|
+
@warning **Deprecated:** Use `+isCvvValid:forPaymentBrand:` instead
|
|
165
|
+
*/
|
|
166
|
+
+ (BOOL)isCvvValid:(NSString *)CVV forBrand:(OPPPaymentParamsBrand)brand DEPRECATED_MSG_ATTRIBUTE("- Use +isCvvValid:forPaymentBrand: instead.");
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
Checks if the card CVV is filled with sufficient data to perform a transaction.
|
|
170
|
+
|
|
171
|
+
@param CVV The card security code or CVV.
|
|
172
|
+
@param paymentBrand The payment brand of the tokenized card.
|
|
173
|
+
@return YES if the card CVV length greater than 3 characters and less than 4 characters, it's also valid for `nil` value, because it's optional parameter.
|
|
174
|
+
@warning **Deprecated:** Use `+isCvvValid:` instead
|
|
175
|
+
*/
|
|
176
|
+
+ (BOOL)isCvvValid:(NSString *)CVV forPaymentBrand:(NSString *)paymentBrand DEPRECATED_MSG_ATTRIBUTE("- Use +isCvvValid: instead.");
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
@end
|
|
180
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright (c) 2019 by ACI Worldwide, Inc.
|
|
3
|
+
// All rights reserved.
|
|
4
|
+
//
|
|
5
|
+
// This software is the confidential and proprietary information
|
|
6
|
+
// of ACI Worldwide Inc ("Confidential Information"). You shall
|
|
7
|
+
// not disclose such Confidential Information and shall use it
|
|
8
|
+
// only in accordance with the terms of the license agreement
|
|
9
|
+
// you entered with ACI Worldwide Inc.
|
|
10
|
+
//
|
|
11
|
+
|
|
12
|
+
#import <Foundation/Foundation.h>
|
|
13
|
+
@class OPPTransactionProcessor;
|
|
14
|
+
@class OPPPaymentParams;
|
|
15
|
+
|
|
16
|
+
/// An enumeration for the various types of transaction.
|
|
17
|
+
typedef NS_ENUM(NSInteger, OPPTransactionType) {
|
|
18
|
+
/// The synchronous transaction.
|
|
19
|
+
OPPTransactionTypeSynchronous,
|
|
20
|
+
/// The asynchronous transaction.
|
|
21
|
+
OPPTransactionTypeAsynchronous,
|
|
22
|
+
/// The transaction is undefined.
|
|
23
|
+
OPPTransactionTypeUndefined
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
Class to encapsulate the parameters needed for performing transaction.
|
|
28
|
+
*/
|
|
29
|
+
|
|
30
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
31
|
+
@interface OPPTransaction : NSObject
|
|
32
|
+
|
|
33
|
+
/// @name Initialization
|
|
34
|
+
|
|
35
|
+
/// :nodoc:
|
|
36
|
+
- (instancetype)init NS_UNAVAILABLE;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
Creates and returns transaction initialized with payment params.
|
|
40
|
+
|
|
41
|
+
@param paymentParams The payment parameters for transaction. Must not be `nil`.
|
|
42
|
+
*/
|
|
43
|
+
+ (instancetype)transactionWithPaymentParams:(OPPPaymentParams *)paymentParams;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
Creates and returns transaction initialized with payment params.
|
|
47
|
+
|
|
48
|
+
@param paymentParams The payment parameters for transaction. Must not be `nil`.
|
|
49
|
+
*/
|
|
50
|
+
- (instancetype)initWithPaymentParams:(OPPPaymentParams *)paymentParams NS_DESIGNATED_INITIALIZER;
|
|
51
|
+
|
|
52
|
+
/// @name Properties
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
The parameters representing a specific payment method that are kept as an `OPPPaymentParams` object.
|
|
56
|
+
*/
|
|
57
|
+
@property (nonatomic, readonly) OPPPaymentParams *paymentParams;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
The type of the transaction.
|
|
61
|
+
*/
|
|
62
|
+
@property (nonatomic, readonly) OPPTransactionType type;
|
|
63
|
+
|
|
64
|
+
/// The URL to the receiver system (e.g. 3-D Secure, PayPal) that the shopper should be forwarded to. The property has `nil` value on synchronous transaction.
|
|
65
|
+
@property (nonatomic, nullable) NSURL *redirectURL;
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
Relative path to get status of transaction.
|
|
69
|
+
@note The property is returned ONLY from `OPPCheckoutProvider` methods. If you are using core SDK, please request checkout info to get `checkoutInfo.resourcePath` by calling `-[OPPPaymentProvider requestCheckoutInfoWithCheckoutID:completionHandler:]`.
|
|
70
|
+
*/
|
|
71
|
+
@property (nonatomic, copy, nullable) NSString *resourcePath;
|
|
72
|
+
|
|
73
|
+
/// App payment signed request parameters contain seller’s order information which should be forwarded to Alipay native SDK.
|
|
74
|
+
@property (nonatomic, copy, readonly, nullable) NSString *alipaySignedOrderInfo;
|
|
75
|
+
|
|
76
|
+
@end
|
|
77
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright (c) 2019 by ACI Worldwide, Inc.
|
|
3
|
+
// All rights reserved.
|
|
4
|
+
//
|
|
5
|
+
// This software is the confidential and proprietary information
|
|
6
|
+
// of ACI Worldwide Inc ("Confidential Information"). You shall
|
|
7
|
+
// not disclose such Confidential Information and shall use it
|
|
8
|
+
// only in accordance with the terms of the license agreement
|
|
9
|
+
// you entered with ACI Worldwide Inc.
|
|
10
|
+
//
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Framework header file is solely used to provide one header file for all necessary imports.
|
|
15
|
+
*/
|
|
16
|
+
#import "OPPPaymentProvider.h"
|
|
17
|
+
#import "OPPTransaction.h"
|
|
18
|
+
#import "OPPPaymentParams.h"
|
|
19
|
+
#import "OPPCardPaymentParams.h"
|
|
20
|
+
#import "OPPBankAccountPaymentParams.h"
|
|
21
|
+
#import "OPPApplePayPaymentParams.h"
|
|
22
|
+
#import "OPPChinaUnionPayPaymentParams.h"
|
|
23
|
+
#import "OPPMBWayPaymentParams.h"
|
|
24
|
+
#import "OPPIkanoOiPaymentParams.h"
|
|
25
|
+
#import "OPPTokenPaymentParams.h"
|
|
26
|
+
#import "OPPErrors.h"
|
|
27
|
+
#import "OPPCheckoutInfo.h"
|
|
28
|
+
#import "OPPToken.h"
|
|
29
|
+
#import "OPPCard.h"
|
|
30
|
+
#import "OPPBankAccount.h"
|
|
31
|
+
#import "OPPPaymentBrandsConfig.h"
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
#import "OPPCheckoutProvider.h"
|
|
35
|
+
#import "OPPCheckoutSettings.h"
|
|
36
|
+
#import "OPPSecurityPolicy.h"
|
|
37
|
+
|
|
38
|
+
#import "OPPCheckoutTheme.h"
|
|
39
|
+
#import "OPPPaymentButton.h"
|
|
40
|
+
#import "OPPApplePayRequestStatus.h"
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
/// Deprecated
|
|
44
|
+
#import "OPPAlipayPaymentParams.h"
|
|
45
|
+
#import "OPPPayPalPaymentParams.h"
|
|
46
|
+
#import "OPPCheckoutPaymentMethod.h"
|
|
47
|
+
#import "OPPPaymentParamsBrand.h"
|
|
48
|
+
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright (c) 2019 by ACI Worldwide, Inc.
|
|
3
|
+
// All rights reserved.
|
|
4
|
+
//
|
|
5
|
+
// This software is the confidential and proprietary information
|
|
6
|
+
// of ACI Worldwide Inc ("Confidential Information"). You shall
|
|
7
|
+
// not disclose such Confidential Information and shall use it
|
|
8
|
+
// only in accordance with the terms of the license agreement
|
|
9
|
+
// you entered with ACI Worldwide Inc.
|
|
10
|
+
//
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
#import <Foundation/Foundation.h>
|
|
14
|
+
#import "OPPPaymentParams.h"
|
|
15
|
+
|
|
16
|
+
__deprecated_msg("The OPPAlipayPaymentParams class is formally deprecated. To make Alipay transaction, instead use OPPPaymentParams class with payment brand 'ALIPAY'.")
|
|
17
|
+
/**
|
|
18
|
+
Class to encapsulate all necessary transaction parameters for performing an Alipay transaction.
|
|
19
|
+
|
|
20
|
+
@warning **Deprecated:** The `OPPAlipayPaymentParams` class is formally deprecated in 1.4.0. To make Alipay transaction, instead use `OPPPaymentParams` class with payment brand 'ALIPAY'.
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
24
|
+
@interface OPPAlipayPaymentParams : OPPPaymentParams
|
|
25
|
+
|
|
26
|
+
/// @name Initialization
|
|
27
|
+
|
|
28
|
+
/// :nodoc:
|
|
29
|
+
- (instancetype)initWithCheckoutID:(NSString *)checkoutID paymentBrand:(NSString *)paymentBrand error:(NSError * _Nullable __autoreleasing *)error NS_UNAVAILABLE;
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
Creates an object representing an Alipay transaction.
|
|
33
|
+
|
|
34
|
+
@param checkoutID The checkout ID of the transaction. Must be not nil or empty.
|
|
35
|
+
@param error The error that occurred while validating payment parameters. See code attribute (OPPErrorCode) and NSLocalizedDescription to identify the reason of failure.
|
|
36
|
+
@return Returns an object representing an Alipay transaction.
|
|
37
|
+
*/
|
|
38
|
+
+ (nullable instancetype)alipayPaymentParamsWithCheckoutID:(NSString *)checkoutID error:(NSError **)error;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
Creates an object representing an Alipay transaction.
|
|
42
|
+
|
|
43
|
+
@param checkoutID The checkout ID of the transaction. Must be not nil or empty.
|
|
44
|
+
@param error The error that occurred while validating payment parameters. See code attribute (OPPErrorCode) and NSLocalizedDescription to identify the reason of failure.
|
|
45
|
+
@return Returns an object representing an Alipay transaction.
|
|
46
|
+
*/
|
|
47
|
+
- (nullable instancetype)initWithCheckoutID:(NSString *)checkoutID error:(NSError **)error NS_DESIGNATED_INITIALIZER;
|
|
48
|
+
@end
|
|
49
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright (c) 2019 by ACI Worldwide, Inc.
|
|
3
|
+
// All rights reserved.
|
|
4
|
+
//
|
|
5
|
+
// This software is the confidential and proprietary information
|
|
6
|
+
// of ACI Worldwide Inc ("Confidential Information"). You shall
|
|
7
|
+
// not disclose such Confidential Information and shall use it
|
|
8
|
+
// only in accordance with the terms of the license agreement
|
|
9
|
+
// you entered with ACI Worldwide Inc.
|
|
10
|
+
//
|
|
11
|
+
|
|
12
|
+
#import "OPPPaymentParams.h"
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
Class to encapsulate all necessary transaction parameters for performing an Apple Pay transaction.
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
19
|
+
@interface OPPApplePayPaymentParams : OPPPaymentParams
|
|
20
|
+
|
|
21
|
+
/// @name Initialization
|
|
22
|
+
|
|
23
|
+
/// :nodoc:
|
|
24
|
+
- (instancetype)initWithCheckoutID:(NSString *)checkoutID paymentBrand:(NSString *)paymentBrand error:(NSError * _Nullable __autoreleasing *)error NS_UNAVAILABLE;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
Creates an object representing an Apple Pay transaction.
|
|
28
|
+
|
|
29
|
+
@param checkoutID The checkout ID of the transaction. Must be not nil or empty.
|
|
30
|
+
@param tokenData UTF-8 encoded JSON dictionary of encrypted payment data.
|
|
31
|
+
@param error The error that occurred while validating payment parameters. See code attribute (`OPPErrorCode`) and `NSLocalizedDescription` to identify the reason of failure.
|
|
32
|
+
@return Returns an object representing an Apple Pay transaction, and nil if parameters are invalid.
|
|
33
|
+
*/
|
|
34
|
+
+ (nullable instancetype)applePayPaymentParamsWithCheckoutID:(NSString *)checkoutID tokenData:(NSData *)tokenData error:(NSError **)error;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
Creates an object representing an Apple Pay transaction.
|
|
38
|
+
|
|
39
|
+
@param checkoutID The checkout ID of the transaction. Must be not nil or empty.
|
|
40
|
+
@param tokenData UTF-8 encoded JSON dictionary of encrypted payment data.
|
|
41
|
+
@param error The error that occurred while validating payment parameters. See code attribute (`OPPErrorCode`) and `NSLocalizedDescription` to identify the reason of failure.
|
|
42
|
+
@return Returns an object representing an Apple Pay transaction, and nil if parameters are invalid.
|
|
43
|
+
*/
|
|
44
|
+
- (nullable instancetype)initWithCheckoutID:(NSString *)checkoutID tokenData:(NSData *)tokenData error:(NSError **)error NS_DESIGNATED_INITIALIZER;
|
|
45
|
+
|
|
46
|
+
/// @name Properties
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
UTF-8 encoded JSON dictionary of encrypted payment data. Ready for transmission to merchant's e-commerce backend for decryption and submission to a payment processor's gateway.
|
|
50
|
+
*/
|
|
51
|
+
@property (nonatomic, copy, readonly) NSData *tokenData;
|
|
52
|
+
|
|
53
|
+
/// @name Validation methods
|
|
54
|
+
/**
|
|
55
|
+
Checks if the token data is valid to perform a transaction.
|
|
56
|
+
|
|
57
|
+
@param tokenData UTF-8 encoded JSON dictionary of encrypted payment data.
|
|
58
|
+
@return `YES` if the token data is not empty.
|
|
59
|
+
*/
|
|
60
|
+
+ (BOOL)isTokenDataValid:(NSData *)tokenData;
|
|
61
|
+
|
|
62
|
+
@end
|
|
63
|
+
|
|
64
|
+
NS_ASSUME_NONNULL_END
|