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,57 @@
|
|
|
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
|
+
DEPRECATED_MSG_ATTRIBUTE("The OPPPaymentParamsBrand class is formally deprecated. Use string values for the payment brands.")
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
An enumeration for the various payment brands.
|
|
16
|
+
|
|
17
|
+
@warning **Deprecated:** The `OPPPaymentParamsBrand` class is formally deprecated in 1.4.0. Use string values for the payment brands.
|
|
18
|
+
*/
|
|
19
|
+
typedef NS_ENUM(NSInteger, OPPPaymentParamsBrand) {
|
|
20
|
+
/// VISA card payment brand.
|
|
21
|
+
OPPPaymentParamsBrandVISA DEPRECATED_MSG_ATTRIBUTE("The attribute is no longer used. Please use string value \"VISA\" instead of."),
|
|
22
|
+
/// MasterCard payment brand.
|
|
23
|
+
OPPPaymentParamsBrandMasterCard DEPRECATED_MSG_ATTRIBUTE("The attribute is no longer used. Please use string value \"MASTER\" instead of."),
|
|
24
|
+
/// American Express card brand.
|
|
25
|
+
OPPPaymentParamsBrandAMEX DEPRECATED_MSG_ATTRIBUTE("The attribute is no longer used. Please use string value \"AMEX\" instead of."),
|
|
26
|
+
/// Diners Club card brand.
|
|
27
|
+
OPPPaymentParamsBrandDinersClub DEPRECATED_MSG_ATTRIBUTE("The attribute is no longer used. Please use string value \"DINERS\" instead of."),
|
|
28
|
+
/// Discover card brand.
|
|
29
|
+
OPPPaymentParamsBrandDiscover DEPRECATED_MSG_ATTRIBUTE("The attribute is no longer used. Please use string value \"DISCOVER\" instead of."),
|
|
30
|
+
/// UnionPay (ExpressPay) card brand.
|
|
31
|
+
OPPPaymentParamsBrandUnionPay DEPRECATED_MSG_ATTRIBUTE("The attribute is no longer used. Please use string value \"UNIONPAY\" instead of."),
|
|
32
|
+
/// JCB card brand.
|
|
33
|
+
OPPPaymentParamsBrandJCB DEPRECATED_MSG_ATTRIBUTE("The attribute is no longer used. Please use string value \"JCB\" instead of."),
|
|
34
|
+
|
|
35
|
+
/// SEPA direct debit payment brand.
|
|
36
|
+
OPPPaymentParamsBrandDirectDebitSEPA DEPRECATED_MSG_ATTRIBUTE("The attribute is no longer used. Please use string value \"DIRECTDEBIT_SEPA\" instead of."),
|
|
37
|
+
/// SOFORT banking payment brand.
|
|
38
|
+
OPPPaymentParamsBrandSOFORTBanking DEPRECATED_MSG_ATTRIBUTE("The attribute is no longer used. Please use string value \"SOFORTUEBERWEISUNG\" instead of."),
|
|
39
|
+
/// BOLETO payment brand.
|
|
40
|
+
OPPPaymentParamsBrandBOLETO DEPRECATED_MSG_ATTRIBUTE("The attribute is no longer used. Please use string value \"BOLETO\" instead of."),
|
|
41
|
+
/// IDEAL payment brand.
|
|
42
|
+
OPPPaymentParamsBrandIDEAL DEPRECATED_MSG_ATTRIBUTE("The attribute is no longer used. Please use string value \"IDEAL\" instead of."),
|
|
43
|
+
|
|
44
|
+
/// Apple pay payment brand.
|
|
45
|
+
OPPPaymentParamsBrandApplePay DEPRECATED_MSG_ATTRIBUTE("The attribute is no longer used. Please use string value \"APPLEPAY\" instead of."),
|
|
46
|
+
|
|
47
|
+
/// PayPal payment brand.
|
|
48
|
+
OPPPaymentParamsBrandPayPal DEPRECATED_MSG_ATTRIBUTE("The attribute is no longer used. Please use string value \"PAYPAL\" instead of."),
|
|
49
|
+
/// China UnionPay brand.
|
|
50
|
+
OPPPaymentParamsBrandChinaUnionPay DEPRECATED_MSG_ATTRIBUTE("The attribute is no longer used. Please use string value \"CHINAUNIONPAY\" instead of."),
|
|
51
|
+
|
|
52
|
+
/// Alipay payment brand.
|
|
53
|
+
OPPPaymentParamsBrandAlipay DEPRECATED_MSG_ATTRIBUTE("The attribute is no longer used. Please use string value \"ALIPAY\" instead of."),
|
|
54
|
+
|
|
55
|
+
/// Unsupported payment brand.
|
|
56
|
+
OPPPaymentParamsBrandUnknown DEPRECATED_MSG_ATTRIBUTE("The attribute is no longer used.")
|
|
57
|
+
};
|
|
@@ -0,0 +1,132 @@
|
|
|
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;
|
|
13
|
+
@import PassKit;
|
|
14
|
+
@class OPPTransaction;
|
|
15
|
+
@class OPPPaymentParams;
|
|
16
|
+
@class OPPCheckoutInfo;
|
|
17
|
+
|
|
18
|
+
/// An enumeration for the various provider modes.
|
|
19
|
+
typedef NS_ENUM(NSInteger, OPPProviderMode) {
|
|
20
|
+
/// Sandbox environment for testing integration.
|
|
21
|
+
OPPProviderModeTest,
|
|
22
|
+
/// Live server for real transactions.
|
|
23
|
+
OPPProviderModeLive
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
27
|
+
/**
|
|
28
|
+
Defines the methods and properties of the payment provider. Use the factory method `+paymentProviderWithMode:` to instantiate a new provider.
|
|
29
|
+
*/
|
|
30
|
+
@interface OPPPaymentProvider : NSObject
|
|
31
|
+
|
|
32
|
+
/// @name Properties
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
Determines the type of Server to use. Transactions to the LIVE server come with fees attached.
|
|
36
|
+
*/
|
|
37
|
+
@property (nonatomic) OPPProviderMode mode;
|
|
38
|
+
|
|
39
|
+
/// @name Factory methods
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
Factory method to obtain a new provider.
|
|
43
|
+
@param mode Determines the type of Server to use. Transactions to the LIVE server come with fees attached.
|
|
44
|
+
@return An `OPPPaymentProvider` which can be used to process transactions.
|
|
45
|
+
*/
|
|
46
|
+
+ (instancetype)paymentProviderWithMode:(OPPProviderMode)mode;
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
/// @name Process transaction
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
On sending a transaction, it is performed asynchronously using an `NSURLSession` to communicate with the Server. Depending on the endpoint the transaction will be submitted or registered only without making the payment.
|
|
53
|
+
|
|
54
|
+
@param transaction The transaction to be sent.
|
|
55
|
+
@param endpoint The endpoint which will be used for processing transaction. The endpoint must start with a `"/"`.
|
|
56
|
+
@param completionHandler A block executed when the transaction is sent.
|
|
57
|
+
*/
|
|
58
|
+
- (void)sendTransaction:(OPPTransaction *)transaction toEndpoint:(NSString *)endpoint completionHandler:(void (^)(OPPTransaction *transaction, NSError * _Nullable error))completionHandler;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
On submitting a transaction, it is performed asynchronously using an `NSURLSession` to communicate with the Server. Depending on the concrete type of the transaction, various calls to the server are necessary to ensure proper processing. Submitting means that the transaction is sent to the server, where it will cause a debit of the given amount on the account specified in the `OPPTransaction`'s `OPPPaymentParams`.
|
|
62
|
+
|
|
63
|
+
@param transaction The transaction to be submitted.
|
|
64
|
+
@param completionHandler A block executed when the transaction is submitted.
|
|
65
|
+
*/
|
|
66
|
+
- (void)submitTransaction:(OPPTransaction *)transaction completionHandler:(void (^)(OPPTransaction *transaction, NSError * _Nullable error))completionHandler;
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
On storing a payment data, it is performed asynchronously using an `NSURLSession` to communicate with the Server. The method creates a just registration separate from any later payment.
|
|
70
|
+
|
|
71
|
+
@param transaction The transaction to be registered.
|
|
72
|
+
@param completionHandler A block executed when the transaction is registered.
|
|
73
|
+
*/
|
|
74
|
+
- (void)registerTransaction:(OPPTransaction *)transaction completionHandler:(void (^)(OPPTransaction *transaction, NSError * _Nullable error))completionHandler;
|
|
75
|
+
|
|
76
|
+
/// @name Request checkout info
|
|
77
|
+
/**
|
|
78
|
+
Requests checkout details such as amount, currency and tokens from the Server by checkout ID.
|
|
79
|
+
Request is performed asynchronously using an `NSURLSession`.
|
|
80
|
+
|
|
81
|
+
@param checkoutID The checkout ID of a transaction.
|
|
82
|
+
@param completionHandler The completion block will be invoked once the response in received. On success, you will receive an instance of `OPPCheckoutInfo`; on failure, an error.
|
|
83
|
+
*/
|
|
84
|
+
- (void)requestCheckoutInfoWithCheckoutID:(NSString *)checkoutID completionHandler:(void (^)(OPPCheckoutInfo * _Nullable checkoutInfo, NSError * _Nullable error))completionHandler;
|
|
85
|
+
|
|
86
|
+
/// @name Request URLs for payment brand logos
|
|
87
|
+
/**
|
|
88
|
+
Requests logo URLs for specified payment brands.
|
|
89
|
+
Request is performed asynchronously using an `NSURLSession`.
|
|
90
|
+
|
|
91
|
+
@param paymentBrands The list of payment brands to get logos from the Server.
|
|
92
|
+
@param completionHandler The completion block will be invoked once the response in received. On success, you will receive a dictionary with URLs in format `<paymentBrand: URL>`; on failure, an error.
|
|
93
|
+
*/
|
|
94
|
+
- (void)requestLogoURLsForPaymentBrands:(NSArray<NSString *> *)paymentBrands completionHandler:(void (^)(NSDictionary<NSString *, NSURL *> * _Nullable URLs, NSError * _Nullable error))completionHandler;
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
/// @name Apple Pay methods
|
|
98
|
+
/**
|
|
99
|
+
Determine whether this device can process Apple Pay payment requests using specific payment request. Your application should confirm that the user can make payments before attempting to authorize a payment. Your application may also want to alter its appearance or behavior when the user is not allowed to make payments.
|
|
100
|
+
|
|
101
|
+
@param request The return value of this method depends on the `supportedNetworks` property of this payment request.
|
|
102
|
+
|
|
103
|
+
@return `YES` if the user can authorize payments on this device using the payment request. `NO` if the user cannot authorize payments on these networks or if the user is restricted from authorizing payments.
|
|
104
|
+
*/
|
|
105
|
+
+ (BOOL)canSubmitPaymentRequest:(PKPaymentRequest *)request;
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
Whether or not this device is capable of using Apple Pay. This checks both whether the user is running an iPhone 6/6+ or later, iPad Air 2 or later, or iPad mini 3 or later, as well as whether or not they have stored any cards in Apple Pay on their device.
|
|
109
|
+
|
|
110
|
+
@return Whether or not the user is currently able to pay with Apple Pay.
|
|
111
|
+
*/
|
|
112
|
+
+ (BOOL)deviceSupportsApplePay;
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
A convenience method to return a `PKPaymentRequest` with sane default values. You will still need to configure the `paymentSummaryItems` property to indicate what the user is purchasing.
|
|
116
|
+
|
|
117
|
+
@param merchantIdentifier Your Apple Merchant ID, as obtained at https://developer.apple.com/account/ios/identifiers/merchant/merchantCreate.action
|
|
118
|
+
@param countryCode The merchant's ISO country code. We suggest using the country where your business is located.
|
|
119
|
+
@return A `PKPaymentRequest` with proper default values.
|
|
120
|
+
*/
|
|
121
|
+
+ (PKPaymentRequest *)paymentRequestWithMerchantIdentifier:(NSString *)merchantIdentifier countryCode:(NSString *)countryCode;
|
|
122
|
+
|
|
123
|
+
/// @name Device authentication
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
A convenience method to check if Touch ID, Face ID or passcode are set on user device.
|
|
127
|
+
@return `NO` if neither Touch ID/Face ID nor passcode are set, otherwise `YES`.
|
|
128
|
+
*/
|
|
129
|
+
+ (BOOL)isDeviceAuthenticationAvailable;
|
|
130
|
+
|
|
131
|
+
@end
|
|
132
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -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
|