react-native-hyperpay-sdk 0.1.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 +21 -0
- 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 +27 -0
- 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 +62 -0
- package/android/local.properties +8 -0
- package/android/oppwa.mobile-2.44.0/.DS_Store +0 -0
- package/android/oppwa.mobile-2.44.0/.project +17 -0
- package/android/oppwa.mobile-2.44.0/.settings/org.eclipse.buildship.core.prefs +2 -0
- package/android/oppwa.mobile-2.44.0/oppwa.mobile-3.14.0-release.aar +0 -0
- package/android/src/main/AndroidManifest.xml +4 -0
- package/android/src/main/java/com/reactnativehyperpay/HyperPayModule.java +34 -0
- package/android/src/main/java/com/reactnativehyperpay/HyperPayPackage.java +28 -0
- package/ios/HyperPay.h +11 -0
- package/ios/HyperPay.m +95 -0
- package/ios/HyperPay.xcodeproj/project.pbxproj +282 -0
- package/ios/HyperPay.xcodeproj/project.xcworkspace/contents.xcworkspacedata +4 -0
- package/package.json +148 -0
- package/react-native-hyperpay.podspec +20 -0
- package/src/index.tsx +22 -0
|
@@ -0,0 +1,130 @@
|
|
|
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 OPPToken;
|
|
14
|
+
@class OPPPaymentBrandsConfig;
|
|
15
|
+
|
|
16
|
+
/** Class to encapsulate the parameters related to the checkout. */
|
|
17
|
+
|
|
18
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
19
|
+
@interface OPPCheckoutInfo : NSObject
|
|
20
|
+
|
|
21
|
+
/// @name Properties
|
|
22
|
+
|
|
23
|
+
/** The amount of the transaction in the specified currency. */
|
|
24
|
+
@property (nonatomic) NSDecimalNumber *amount;
|
|
25
|
+
|
|
26
|
+
/** ISO 4217 currency code. */
|
|
27
|
+
@property (nonatomic, copy) NSString *currencyCode;
|
|
28
|
+
|
|
29
|
+
/** Tokens related to the checkout. */
|
|
30
|
+
@property (nonatomic, copy, nullable) NSArray<OPPToken *> *tokens;
|
|
31
|
+
|
|
32
|
+
/** Brand configuration parameters from the Server. */
|
|
33
|
+
@property (nonatomic, nullable) OPPPaymentBrandsConfig *paymentBrandsConfig;
|
|
34
|
+
|
|
35
|
+
/** The endpoint where the transaction will be sent to. */
|
|
36
|
+
@property (nonatomic, copy) NSString *endpoint;
|
|
37
|
+
|
|
38
|
+
/** Relative path to get status of transaction. */
|
|
39
|
+
@property (nonatomic, copy) NSString *resourcePath;
|
|
40
|
+
|
|
41
|
+
/** The merchant IDs related to Klarna Invoice and Klarna Installments. */
|
|
42
|
+
@property (nonatomic, copy, nullable) NSArray<NSString *> *klarnaMerchantIDs;
|
|
43
|
+
|
|
44
|
+
/** Shows if ReD Shield Device Id collecting is enabled or disabled. */
|
|
45
|
+
@property (nonatomic) BOOL collectRedShieldDeviceId;
|
|
46
|
+
|
|
47
|
+
/// @name Initialization
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
Creates checkout info object from the JSON that can be received from the Server by checkout ID.
|
|
51
|
+
@param JSON A dictionary with parameters received from the Server.
|
|
52
|
+
@param error An error if JSON is invalid.
|
|
53
|
+
@return Returns an `OPPCheckoutInfo` object, or `nil` if JSON is invalid.
|
|
54
|
+
*/
|
|
55
|
+
+ (nullable instancetype)checkoutInfoFromJSON:(NSDictionary *)JSON error:(NSError * _Nullable *)error;
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
Creates checkout info object with the provided values.
|
|
59
|
+
@param amount The amount of the transaction in the specified currency.
|
|
60
|
+
@param currencyCode ISO 4217 currency code.
|
|
61
|
+
@param tokens Tokens related to the checkout.
|
|
62
|
+
@param paymentBrandsConfig Brand configuration parameters from the Server.
|
|
63
|
+
@param klarnaMerchantIDs Klarna merchant IDs.
|
|
64
|
+
@return an `OPPCheckoutInfo` object, or `nil` if parameters are invalid.
|
|
65
|
+
*/
|
|
66
|
+
+ (nullable instancetype)checkoutInfoWithAmount:(NSDecimalNumber *)amount
|
|
67
|
+
currencyCode:(NSString *)currencyCode
|
|
68
|
+
tokens:(nullable NSArray<OPPToken *> *)tokens
|
|
69
|
+
paymentBrandsConfig:(nullable OPPPaymentBrandsConfig *)paymentBrandsConfig
|
|
70
|
+
klarnaMerchantIDs:(nullable NSArray<NSString *> *)klarnaMerchantIDs;
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
Creates checkout info object with the provided values.
|
|
74
|
+
@param amount The amount of the transaction in the specified currency.
|
|
75
|
+
@param currencyCode ISO 4217 currency code.
|
|
76
|
+
@param tokens Tokens related to the checkout.
|
|
77
|
+
@param paymentBrandsConfig Brand configuration parameters from the Server.
|
|
78
|
+
@param klarnaMerchantIDs Klarna merchant IDs.
|
|
79
|
+
@return an `OPPCheckoutInfo` object, or `nil` if parameters are invalid.
|
|
80
|
+
*/
|
|
81
|
+
- (nullable instancetype)initWithAmount:(NSDecimalNumber *)amount
|
|
82
|
+
currencyCode:(NSString *)currencyCode
|
|
83
|
+
tokens:(nullable NSArray<OPPToken *> *)tokens
|
|
84
|
+
paymentBrandsConfig:(nullable OPPPaymentBrandsConfig *)paymentBrandsConfig
|
|
85
|
+
klarnaMerchantIDs:(nullable NSArray<NSString *> *)klarnaMerchantIDs;
|
|
86
|
+
|
|
87
|
+
@end
|
|
88
|
+
|
|
89
|
+
/// Deprecated methods
|
|
90
|
+
@interface OPPCheckoutInfo (Deprecated)
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
Creates checkout info object with the provided values.
|
|
94
|
+
@param amount The amount of the transaction in the specified currency.
|
|
95
|
+
@param currencyCode ISO 4217 currency code.
|
|
96
|
+
@param tokens Tokens related to the checkout.
|
|
97
|
+
@param paymentBrandsConfig Brand configuration parameters from the Server.
|
|
98
|
+
@return an `OPPCheckoutInfo` object, or `nil` if parameters are invalid.
|
|
99
|
+
|
|
100
|
+
@warning **Deprecated:** Use `+checkoutInfoWithAmount:currencyCode:tokens:paymentBrandsConfig:klarnaMerchantIDs:` instead.
|
|
101
|
+
*/
|
|
102
|
+
+ (nullable instancetype)checkoutInfoWithAmount:(NSDecimalNumber *)amount
|
|
103
|
+
currencyCode:(NSString *)currencyCode
|
|
104
|
+
tokens:(nullable NSArray<OPPToken *> *)tokens
|
|
105
|
+
paymentBrandsConfig:(nullable OPPPaymentBrandsConfig *)paymentBrandsConfig DEPRECATED_MSG_ATTRIBUTE("- Use +checkoutInfoWithAmount:currencyCode:tokens:paymentBrandsConfig:klarnaMerchantIDs: instead.");
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
Creates checkout info object with the provided values.
|
|
109
|
+
@param amount The amount of the transaction in the specified currency.
|
|
110
|
+
@param currencyCode ISO 4217 currency code.
|
|
111
|
+
@param tokens Tokens related to the checkout.
|
|
112
|
+
@param paymentBrandsConfig Brand configuration parameters from the Server.
|
|
113
|
+
@return an `OPPCheckoutInfo` object, or `nil` if parameters are invalid.
|
|
114
|
+
@warning **Deprecated:** Use `-initWithAmount:currencyCode:tokens:paymentBrandsConfig:klarnaMerchantIDs:` instead.
|
|
115
|
+
*/
|
|
116
|
+
- (nullable instancetype)initWithAmount:(NSDecimalNumber *)amount
|
|
117
|
+
currencyCode:(NSString *)currencyCode
|
|
118
|
+
tokens:(nullable NSArray<OPPToken *> *)tokens
|
|
119
|
+
paymentBrandsConfig:(nullable OPPPaymentBrandsConfig *)paymentBrandsConfig DEPRECATED_MSG_ATTRIBUTE("- Use -initWithAmount:currencyCode:tokens:paymentBrandsConfig:klarnaMerchantIDs: instead.");
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
Creates checkout info object from the JSON that can be received from the Server by checkout ID.
|
|
123
|
+
@param JSON A dictionary with parameters received from the Server.
|
|
124
|
+
@return Returns an `OPPCheckoutInfo` object, or `nil` if JSON is invalid.
|
|
125
|
+
@warning **Deprecated:** Use `+checkoutInfoFromJSON:error:` instead
|
|
126
|
+
*/
|
|
127
|
+
+ (nullable instancetype)checkoutInfoFromJSON:(NSDictionary *)JSON DEPRECATED_MSG_ATTRIBUTE("- Use +checkoutInfoFromJSON:error: instead.");
|
|
128
|
+
|
|
129
|
+
@end
|
|
130
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,51 @@
|
|
|
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("The OPPCheckoutPaymentMethod class is formally deprecated. Use string values for the payment brands.")
|
|
13
|
+
/**
|
|
14
|
+
An enumeration for the possible payment methods.
|
|
15
|
+
|
|
16
|
+
@warning **Deprecated:** The `OPPCheckoutPaymentMethod` class is formally deprecated. Use string values for the payment brands.
|
|
17
|
+
*/
|
|
18
|
+
typedef NS_ENUM(NSInteger, OPPCheckoutPaymentMethod) {
|
|
19
|
+
/// VISA payment system.
|
|
20
|
+
OPPCheckoutPaymentMethodVISA __deprecated_enum_msg("The attribute is no longer used. Please use string value \"VISA\" instead of."),
|
|
21
|
+
/// MasterCard payment system.
|
|
22
|
+
OPPCheckoutPaymentMethodMasterCard __deprecated_enum_msg("The attribute is no longer used. Please use string value \"MASTER\" instead of."),
|
|
23
|
+
/// AMEX payment system.
|
|
24
|
+
OPPCheckoutPaymentMethodAMEX __deprecated_enum_msg("The attribute is no longer used. Please use string value \"AMEX\" instead of."),
|
|
25
|
+
/// Diners Club payment system.
|
|
26
|
+
OPPCheckoutPaymentMethodDinersClub __deprecated_enum_msg("The attribute is no longer used. Please use string value \"DINERS\" instead of."),
|
|
27
|
+
/// Discover payment system.
|
|
28
|
+
OPPCheckoutPaymentMethodDiscover __deprecated_enum_msg("The attribute is no longer used. Please use string value \"DISCOVER\" instead of."),
|
|
29
|
+
/// UnionPay payment system.
|
|
30
|
+
OPPCheckoutPaymentMethodUnionPay __deprecated_enum_msg("The attribute is no longer used. Please use string value \"UNIONPAY\" instead of."),
|
|
31
|
+
/// JCB payment system.
|
|
32
|
+
OPPCheckoutPaymentMethodJCB __deprecated_enum_msg("The attribute is no longer used. Please use string value \"JCB\" instead of."),
|
|
33
|
+
/// SEPA Direct Debit payment system.
|
|
34
|
+
OPPCheckoutPaymentMethodDirectDebitSEPA __deprecated_enum_msg("The attribute is no longer used. Please use string value \"DIRECTDEBIT_SEPA\" instead of."),
|
|
35
|
+
/// BOLETO payment system.
|
|
36
|
+
OPPCheckoutPaymentMethodBOLETO __deprecated_enum_msg("The attribute is no longer used. Please use string value \"BOLETO\" instead of."),
|
|
37
|
+
/// Apple Pay payment system.
|
|
38
|
+
OPPCheckoutPaymentMethodApplePay __deprecated_enum_msg("The attribute is no longer used. Please use string value \"APPLEPAY\" instead of."),
|
|
39
|
+
/// SOFORT Banking payment system.
|
|
40
|
+
OPPCheckoutPaymentMethodSOFORTBanking __deprecated_enum_msg("The attribute is no longer used. Please use string value \"SOFORTUEBERWEISUNG\" instead of."),
|
|
41
|
+
/// PayPal payment system.
|
|
42
|
+
OPPCheckoutPaymentMethodPayPal __deprecated_enum_msg("The attribute is no longer used. Please use string value \"PAYPAL\" instead of."),
|
|
43
|
+
/// Alipay payment system.
|
|
44
|
+
OPPCheckoutPaymentMethodAlipay __deprecated_enum_msg("The attribute is no longer used. Please use string value \"ALIPAY\" instead of."),
|
|
45
|
+
/// China UnionPay (UPOP) payment system.
|
|
46
|
+
OPPCheckoutPaymentMethodChinaUnionPay __deprecated_enum_msg("The attribute is no longer used. Please use string value \"CHINAUNIONPAY\" instead of."),
|
|
47
|
+
/// IDEAL payment system.
|
|
48
|
+
OPPCheckoutPaymentMethodIDEAL __deprecated_enum_msg("The attribute is no longer used. Please use string value \"IDEAL\" instead of."),
|
|
49
|
+
/// Unsupported payment system.
|
|
50
|
+
OPPCheckoutPaymentMethodUnsupported __deprecated_enum_msg("The attribute is no longer used.")
|
|
51
|
+
};
|
|
@@ -0,0 +1,197 @@
|
|
|
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 OPPPaymentProvider;
|
|
15
|
+
@class OPPTransaction;
|
|
16
|
+
@class OPPCheckoutSettings;
|
|
17
|
+
@class OPPCheckoutProvider;
|
|
18
|
+
@class OPPApplePayRequestAuthorizationResult;
|
|
19
|
+
@class OPPApplePayRequestShippingContactUpdate;
|
|
20
|
+
@class OPPApplePayRequestShippingMethodUpdate;
|
|
21
|
+
@protocol OPPCheckoutProviderDelegate;
|
|
22
|
+
#import "OPPCheckoutPaymentMethod.h"
|
|
23
|
+
|
|
24
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
A protocol for additional checkout callbacks.
|
|
28
|
+
*/
|
|
29
|
+
@protocol OPPCheckoutProviderDelegate <NSObject>
|
|
30
|
+
@optional
|
|
31
|
+
|
|
32
|
+
/// @name Validation methods
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
Called before submitting a transaction to the Server.
|
|
36
|
+
Use this callback to recreate checkout for specific payment brand or abort transaction.
|
|
37
|
+
@param checkoutProvider The instance of `OPPCheckoutProvider` that is calling delegate method.
|
|
38
|
+
@param transaction The transaction with masked sensitive data.
|
|
39
|
+
@param completion The completion block you should call to continue submitting transaction or abort it. In case of abortion checkout will be closed with error `OPPErrorCodeTransactionAborted`.
|
|
40
|
+
*/
|
|
41
|
+
- (void)checkoutProvider:(OPPCheckoutProvider *)checkoutProvider continueSubmitting:(OPPTransaction *)transaction completion:(void (^)(NSString * _Nullable checkoutID, BOOL abort))completion;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
Called when card holder text field was changed or pressed Pay button on the payment detail view.
|
|
45
|
+
Use this callback to override the internal card holder validation.
|
|
46
|
+
@param checkoutProvider The instance of `OPPCheckoutProvider` that is calling delegate method.
|
|
47
|
+
@param cardHolder The card holder value.
|
|
48
|
+
@return `YES` if the card holder is valid, otherwise `NO`.
|
|
49
|
+
*/
|
|
50
|
+
- (BOOL)checkoutProvider:(OPPCheckoutProvider *)checkoutProvider validateCardHolder:(nullable NSString *)cardHolder;
|
|
51
|
+
|
|
52
|
+
/// @name Safari services methods
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
Called when the user taps the 'Done' button on SFSafariViewController.
|
|
56
|
+
@param checkoutProvider The instance of `OPPCheckoutProvider` that is calling delegate method.
|
|
57
|
+
*/
|
|
58
|
+
- (void)checkoutProviderDidFinishSafariViewController:(OPPCheckoutProvider *)checkoutProvider;
|
|
59
|
+
|
|
60
|
+
/// @name Apple Pay methods
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
Called when a new shipping method was selected.
|
|
64
|
+
The delegate must invoke the completion block with an updated array of `PKPaymentSummaryItem` objects.
|
|
65
|
+
@param checkoutProvider The instance of `OPPCheckoutProvider` that is calling delegate method.
|
|
66
|
+
@param shippingMethod The shipping method for this transaction.
|
|
67
|
+
@param completion The completion block you should call to update the shipping costs based on the shipping method.
|
|
68
|
+
*/
|
|
69
|
+
- (void)checkoutProvider:(OPPCheckoutProvider *)checkoutProvider applePayDidSelectShippingMethod:(PKShippingMethod *)shippingMethod handler:(void (^)(OPPApplePayRequestShippingMethodUpdate *update))completion;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
Called when a new shipping address was selected.
|
|
73
|
+
The delegate must invoke the completion block with an updated array of `PKPaymentSummaryItem` objects.
|
|
74
|
+
@param checkoutProvider The instance of `OPPCheckoutProvider` that is calling delegate method.
|
|
75
|
+
@param contact The contact information needed for shipping.
|
|
76
|
+
@param completion The completion block you should call to update the shipping address.
|
|
77
|
+
*/
|
|
78
|
+
- (void)checkoutProvider:(OPPCheckoutProvider *)checkoutProvider applePayDidSelectShippingContact:(PKContact *)contact handler:(void (^)(OPPApplePayRequestShippingContactUpdate *update))completion;
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
Called when the payment request was authorized.
|
|
83
|
+
The delegate must invoke the completion block with an appropriate authorization status.
|
|
84
|
+
@param checkoutProvider The instance of `OPPCheckoutProvider` that is calling delegate method.
|
|
85
|
+
@param payment The result of authorizing a payment request and contains payment information, encrypted in the payment token.
|
|
86
|
+
@param completion The completion block you should call with an appropriate authorization status.
|
|
87
|
+
*/
|
|
88
|
+
- (void)checkoutProvider:(OPPCheckoutProvider *)checkoutProvider applePayDidAuthorizePayment:(PKPayment *)payment handler:(void (^)(OPPApplePayRequestAuthorizationResult *result))completion;
|
|
89
|
+
|
|
90
|
+
@end
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
Abstract class for displaying an in-App payment page.
|
|
95
|
+
*/
|
|
96
|
+
@interface OPPCheckoutProvider : NSObject
|
|
97
|
+
|
|
98
|
+
/// @name Properties
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
Checkout provider delegate.
|
|
102
|
+
*/
|
|
103
|
+
@property (nonatomic, weak) id<OPPCheckoutProviderDelegate> delegate;
|
|
104
|
+
|
|
105
|
+
/// @name Initialization
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
Factory method to generate an `OPPCheckoutProvider` used for displaying an in-App payment pages.
|
|
109
|
+
@param provider The OPPPaymentProvider which is used for performing the transaction once all the data from the user is collected.
|
|
110
|
+
@param checkoutID The checkout Id of the transaction. Must be not `nil` or empty.
|
|
111
|
+
@param settings The `OPPCheckoutSettings` used for these payment pages. These settings are provided to customize the appearance and functionality of the payment pages. If `nil`, default settings will be created.
|
|
112
|
+
|
|
113
|
+
@return Returns an `OPPCheckoutProvider` for displaying in-App payment pages. Returns `nil` if `provider` or `checkoutID` are not set.
|
|
114
|
+
*/
|
|
115
|
+
+ (nullable instancetype)checkoutProviderWithPaymentProvider:(OPPPaymentProvider *)provider checkoutID:(NSString *)checkoutID settings:(nullable OPPCheckoutSettings *)settings;
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
Designated initializer method to generate an `OPPCheckoutProvider` used for displaying an in-App payment pages.
|
|
119
|
+
@param provider The OPPPaymentProvider which is used for performing the transaction once all the data from the user is collected.
|
|
120
|
+
@param checkoutID The checkout Id of the transaction. Must be not `nil` or empty.
|
|
121
|
+
@param settings The `OPPCheckoutSettings` used for these payment pages. These settings are provided to customize the appearance and functionality of the payment pages. If `nil`, default settings will be created.
|
|
122
|
+
@return Returns an `OPPCheckoutProvider` for displaying in-App payment pages. Returns `nil` if `provider` or `checkoutID` are not set.
|
|
123
|
+
*/
|
|
124
|
+
- (nullable instancetype)initWithPaymentProvider:(OPPPaymentProvider *)provider checkoutID:(NSString *)checkoutID settings:(nullable OPPCheckoutSettings *)settings;
|
|
125
|
+
|
|
126
|
+
/// @name Presenting checkout
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
Opens an in-App payment page for collecting user input and submitting a transaction. First the list of payment methods from the checkout settings will be displayed.
|
|
130
|
+
@param completionHandler A block executed when the transaction is completed. You need to send the request to your server to get the transaction status.
|
|
131
|
+
@param cancelHandler A block executed if the user closes the payment page prematurely.
|
|
132
|
+
*/
|
|
133
|
+
- (void)presentCheckoutForSubmittingTransactionCompletionHandler:(void (^)(OPPTransaction * _Nullable transaction, NSError * _Nullable error))completionHandler
|
|
134
|
+
cancelHandler:(void (^ _Nullable )(void))cancelHandler;
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
Opens an in-App payment page for collecting user input and submitting a transaction.
|
|
138
|
+
Payment form for the choosen payment method will be opened. If no user input is required in app (e.g. PayPal), shopper will be redirected directly to the issuer web page.
|
|
139
|
+
@param paymentBrand The payment brand for transaction.
|
|
140
|
+
@param loadingHandler A block executed whenever SDK sends request to the server or receives the response. You can start or stop loading animation based on `inProgress` parameter.
|
|
141
|
+
@param completionHandler A block executed when the transaction is completed. You need to send the request to your server to get the transaction status.
|
|
142
|
+
@param cancelHandler A block executed if the user closes the payment page prematurely.
|
|
143
|
+
*/
|
|
144
|
+
- (void)presentCheckoutWithPaymentBrand:(NSString *)paymentBrand
|
|
145
|
+
loadingHandler:(void (^ _Nullable )(BOOL inProgress))loadingHandler
|
|
146
|
+
completionHandler:(void (^)(OPPTransaction * _Nullable transaction, NSError * _Nullable error))completionHandler
|
|
147
|
+
cancelHandler:(void (^ _Nullable )(void))cancelHandler;
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
Closes the in-App payment page. The delegate is not informed if this method is being called.
|
|
151
|
+
@param animated Specifies whether the payment page should be dismissed using an animation or immediately without an animation.
|
|
152
|
+
@param completion The completion handler, if provided, will be invoked after the checkout screen will be dismissed.
|
|
153
|
+
*/
|
|
154
|
+
- (void)dismissCheckoutAnimated:(BOOL)animated completion: (void (^ __nullable)(void))completion;
|
|
155
|
+
|
|
156
|
+
@end
|
|
157
|
+
|
|
158
|
+
/// Deprecated methods
|
|
159
|
+
@interface OPPCheckoutProvider (Deprecated)
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
Opens an in-App payment page for collecting user input and submitting a transaction. First the list of payment methods from the checkout settings will be displayed.
|
|
163
|
+
@param completionHandler A block executed when the transaction is completed. You need to send the request to your server to get the transaction status.
|
|
164
|
+
@param paymentBrandSelectedHandler A block executed when the shopper selected payment brand. You need to obtain a new checkout Id if the selected payment brand requires another payment type and return the value to SDK or `nil` in case of error using completion block.
|
|
165
|
+
@param cancelHandler A block executed if the user closes the payment page prematurely.
|
|
166
|
+
@warning **Deprecated:** Use `-presentCheckoutForSubmittingTransactionCompletionHandler:cancelHandler:` instead. Use `-[OPPCheckoutProviderDelegate checkoutProvider:continueSubmitting:completion:]` instead of implementing `paymentBrandSelectedHandler`.
|
|
167
|
+
*/
|
|
168
|
+
- (void)presentCheckoutForSubmittingTransactionCompletionHandler:(void (^)(OPPTransaction * _Nullable transaction, NSError * _Nullable error))completionHandler
|
|
169
|
+
paymentBrandSelectedHandler:(void (^ _Nullable )(NSString * _Nonnull paymentBrand, void (^completion)(NSString * _Nullable checkoutID)))paymentBrandSelectedHandler
|
|
170
|
+
cancelHandler:(void (^ _Nullable )(void))cancelHandler DEPRECATED_MSG_ATTRIBUTE("- Use -presentCheckoutForSubmittingTransactionCompletionHandler:cancelHandler: instead.");
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
Opens an in-App payment page for collecting user input and submitting a transaction. First the list of payment methods from the checkout settings will be displayed.
|
|
174
|
+
@param completionHandler A block executed when the transaction is completed. You need to send the request to your server to get the transaction status.
|
|
175
|
+
@param paymentMethodSelectedHandler A block executed when the shopper selected payment brand. You need to obtain a new checkout Id if the selected payment brand requires another payment type and return the value to SDK or `nil` in case of error using completion block.
|
|
176
|
+
@param cancelHandler A block executed if the user closes the payment page prematurely.
|
|
177
|
+
@warning **Deprecated:** Use `-presentCheckoutForSubmittingTransactionCompletionHandler:paymentBrandSelectedHandler:cancelHandler:` instead
|
|
178
|
+
*/
|
|
179
|
+
- (void)presentCheckoutForSubmittingTransactionCompletionHandler:(void (^)(OPPTransaction * _Nullable transaction, NSError * _Nullable error))completionHandler
|
|
180
|
+
paymentMethodSelectedHandler:(void (^ _Nullable )(OPPCheckoutPaymentMethod paymentMethod, void (^completion)(NSString * _Nullable checkoutID)))paymentMethodSelectedHandler
|
|
181
|
+
cancelHandler:(void (^ _Nullable )(void))cancelHandler DEPRECATED_MSG_ATTRIBUTE("- Use -presentCheckoutForSubmittingTransactionCompletionHandler:paymentBrandSelectedHandler:cancelHandler: instead.");
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
Opens an in-App payment page for collecting user input and submitting a transaction.
|
|
185
|
+
Payment form for the choosen payment method will be opened. If no user input is required in app (e.g. PayPal), shopper will be redirected directly to the issuer web page.
|
|
186
|
+
@param paymentMethod The payment method for transaction.
|
|
187
|
+
@param loadingHandler A block executed whenever SDK sends request to the server or receives the response. You can start or stop loading animation based on inProgress parameter.
|
|
188
|
+
@param completionHandler A block executed when the transaction is completed. You need to send the request to your server to get the transaction status.
|
|
189
|
+
@param cancelHandler A block executed if the user closes the payment page prematurely.
|
|
190
|
+
@warning **Deprecated:** Use `-presentCheckoutWithPaymentBrand:loadingHandler:completionHandler:cancelHandler:` instead
|
|
191
|
+
*/
|
|
192
|
+
- (void)presentCheckoutWithPaymentMethod:(OPPCheckoutPaymentMethod)paymentMethod
|
|
193
|
+
loadingHandler:(void (^ _Nullable )(BOOL inProgress))loadingHandler
|
|
194
|
+
completionHandler:(void (^)(OPPTransaction * _Nullable transaction, NSError * _Nullable error))completionHandler
|
|
195
|
+
cancelHandler:(void (^ _Nullable )(void))cancelHandler DEPRECATED_MSG_ATTRIBUTE("- Use -presentCheckoutWithPaymentBrand:loadingHandler:completionHandler:cancelHandler: instead.");
|
|
196
|
+
@end
|
|
197
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,185 @@
|
|
|
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 "OPPCheckoutPaymentMethod.h"
|
|
14
|
+
#import <PassKit/PassKit.h>
|
|
15
|
+
@class OPPCheckoutTheme;
|
|
16
|
+
@class OPPSecurityPolicy;
|
|
17
|
+
|
|
18
|
+
/// An enumeration for the possible store payment details modes.
|
|
19
|
+
typedef NS_ENUM(NSInteger, OPPCheckoutStorePaymentDetailsMode) {
|
|
20
|
+
/// Always store payment details for future use.
|
|
21
|
+
OPPCheckoutStorePaymentDetailsModeAlways,
|
|
22
|
+
/// Display the option to prompt the user permissions to store payment details for future use.
|
|
23
|
+
OPPCheckoutStorePaymentDetailsModePrompt,
|
|
24
|
+
/// Never store payment details.
|
|
25
|
+
OPPCheckoutStorePaymentDetailsModeNever
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
/// An enumeration for the possible modes to skip CVV check.
|
|
29
|
+
typedef NS_ENUM(NSInteger, OPPCheckoutSkipCVVMode) {
|
|
30
|
+
/// Always request CVV for card payments.
|
|
31
|
+
OPPCheckoutSkipCVVModeNever,
|
|
32
|
+
/// Skip CVV check only for payments by stored cards.
|
|
33
|
+
OPPCheckoutSkipCVVModeForStoredCards,
|
|
34
|
+
/// Always skip CVV check. CVV field won't be displayed in card payment forms.
|
|
35
|
+
OPPCheckoutSkipCVVModeAlways
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
/// An enumeration for the possible display modes of card brands on payment method selection screen.
|
|
39
|
+
typedef NS_ENUM(NSInteger, OPPCheckoutCardBrandsDisplayMode) {
|
|
40
|
+
/// Display card brands in the list along with other payment methods.
|
|
41
|
+
OPPCheckoutCardBrandsDisplayModeSeparate,
|
|
42
|
+
/// Display all card brands grouped in one row. This mode allows shopper to skip choosing concrete card brand, the brand will be detected automatically based on card number.
|
|
43
|
+
OPPCheckoutCardBrandsDisplayModeGrouped
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
/// An enumeration for the possible ways of automatic card brand detection
|
|
47
|
+
typedef NS_ENUM(NSInteger, OPPCheckoutBrandDetectionType) {
|
|
48
|
+
/// Uses regular expressions to analyze card number (supports a limited number of brands)
|
|
49
|
+
OPPCheckoutBrandDetectionTypeRegex,
|
|
50
|
+
/// Searches card bin in the bin list (more precise)
|
|
51
|
+
OPPCheckoutBrandDetectionTypeBinList
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
Class which encapsulates settings for the built-in in-App payment page. Use this to customize both the visual elements of the payment pages as well as functionality. This includes changing colors and texts, defining payment methods.
|
|
56
|
+
*/
|
|
57
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
58
|
+
@interface OPPCheckoutSettings : NSObject
|
|
59
|
+
|
|
60
|
+
/// @name Properties
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
The custom theme for the payment forms. Default is `OPPCheckoutThemeStyleLight`.
|
|
64
|
+
@see `OPPCheckoutThemeStyle`
|
|
65
|
+
*/
|
|
66
|
+
@property (nonatomic, readonly) OPPCheckoutTheme *theme;
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
This URL will receive the result of an asynchronous payment. Must be sent URL encoded.
|
|
70
|
+
*/
|
|
71
|
+
@property (nonatomic, copy, nullable) NSString *shopperResultURL;
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
The list of payment brands to be shown.
|
|
75
|
+
*/
|
|
76
|
+
@property (nonatomic, copy) NSArray<NSString *> *paymentBrands;
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
A constant that specifies the store payment details mode. Default is `OPPCheckoutStorePaymentDetailsModeNever`.
|
|
80
|
+
*/
|
|
81
|
+
@property (nonatomic) OPPCheckoutStorePaymentDetailsMode storePaymentDetails;
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
A constant that specifies whether request CVV or not. Default is `OPPCheckoutSkipCVVModeNever`.
|
|
85
|
+
*/
|
|
86
|
+
@property (nonatomic) OPPCheckoutSkipCVVMode skipCVV;
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
A flag that specifies whether show card holder name in the card detail view or not. Default is `YES`.
|
|
90
|
+
*/
|
|
91
|
+
@property (nonatomic, getter=isCardHolderVisible) BOOL cardHolderVisible;
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
List of possible numbers of installments.
|
|
95
|
+
*/
|
|
96
|
+
@property (nonatomic, copy) NSArray<NSNumber *> *installmentOptions;
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
A flag that specifies whether payment should be split into installments.
|
|
100
|
+
*/
|
|
101
|
+
@property (nonatomic, getter=isInstallmentEnabled) BOOL installmentEnabled;
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
Set of security policies to confirm payment.
|
|
105
|
+
Increase security for tokens or specific payment methods with Touch ID/Face ID or passcode.
|
|
106
|
+
*/
|
|
107
|
+
@property (nonatomic, copy, nullable) NSArray<OPPSecurityPolicy *> *securityPolicies;
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
The language used for language specific labels in ISO 639-1 language identifier.
|
|
111
|
+
If the language is not supported English will be used.
|
|
112
|
+
If language is `nil`, app wil use the first supported language from language settings.
|
|
113
|
+
*/
|
|
114
|
+
@property (nonatomic, copy, nullable) NSString *language;
|
|
115
|
+
|
|
116
|
+
/** Encapsulates a request for payment, including information about payment processing capabilities and the payment amount. */
|
|
117
|
+
@property (nonatomic, nullable) PKPaymentRequest *applePayPaymentRequest;
|
|
118
|
+
|
|
119
|
+
/** Sets the country to be used for Klarna checkout in ISO 3166-1 alpha-2 country identifier. By default, uses `countryCode` from device locale if supported. Otherwise, use `DE`. */
|
|
120
|
+
@property (nonatomic, copy, nullable) NSString *klarnaCountry;
|
|
121
|
+
|
|
122
|
+
/** Sets the fee to be used for the "Billing agreement" link during a Klarna Invoice checkout. */
|
|
123
|
+
@property (nonatomic, nullable) NSDecimalNumber *klarnaInvoiceFee;
|
|
124
|
+
|
|
125
|
+
/** Sets the fee to be used for the "Read more" link during a Klarna Installments checkout. */
|
|
126
|
+
@property (nonatomic, nullable) NSDecimalNumber *klarnaInstallmentsFee;
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
A flag that specifies whether show IBAN field on the Giropay payment form or not. Default is `NO`.
|
|
130
|
+
*/
|
|
131
|
+
@property (nonatomic, getter=isIBANRequired) BOOL IBANRequired;
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
A mode that specifies how to display card brands on payment method selection screen.
|
|
135
|
+
Default is `OPPCheckoutCardBrandsDisplayModeGrouped`.
|
|
136
|
+
*/
|
|
137
|
+
@property (nonatomic) OPPCheckoutCardBrandsDisplayMode cardBrandsDisplayMode;
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
A flag that specifies whether show total amount in the checkout or not.
|
|
141
|
+
If `YES`, amount is shown on the payment method selection screen and in the 'Pay' buttons.
|
|
142
|
+
Default is `NO`.
|
|
143
|
+
*/
|
|
144
|
+
@property (nonatomic) BOOL displayTotalAmount;
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
Type of automatic card brand detection to be used.
|
|
148
|
+
Default is `OPPCheckoutBrandDetectionTypeRegex`.
|
|
149
|
+
*/
|
|
150
|
+
@property (nonatomic) OPPCheckoutBrandDetectionType brandDetectionType;
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
Sets the preferred order of the detected card brands to be shown under the card number text field.
|
|
154
|
+
By default order from `paymentBrands` is used.
|
|
155
|
+
*/
|
|
156
|
+
@property (nonatomic, copy) NSArray<NSString *> *brandDetectionPriority;
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
A flag that specifies whether show multiple detected brands under card number text field or keep them hidden by default.
|
|
160
|
+
Default is `YES`.
|
|
161
|
+
*/
|
|
162
|
+
@property (nonatomic) BOOL showDetectedBrands;
|
|
163
|
+
|
|
164
|
+
/// @name Deprecated
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
The custom URL scheme for your app. This must be configured if your app integrates a payment option that may switch to either Mobile Safari or to another app to finish the payment authorization workflow.
|
|
168
|
+
@warning **Deprecated**. The property is no longer used.
|
|
169
|
+
*/
|
|
170
|
+
@property (nonatomic, copy) NSString *schemeURL DEPRECATED_ATTRIBUTE;
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
The description to show on the payment page above the total amount.
|
|
174
|
+
@warning **Deprecated**. The property is no longer used.
|
|
175
|
+
*/
|
|
176
|
+
@property (nonatomic, copy, nullable) NSString *paymentTitle DEPRECATED_ATTRIBUTE;
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
The payment methods to be shown. Expected an `NSArray` of `NSNumbers` representing different `OPPCheckoutPaymentMethod` enums.
|
|
180
|
+
@warning **Deprecated**. Use `paymentBrands` instead.
|
|
181
|
+
*/
|
|
182
|
+
@property (nonatomic, copy) NSArray<NSNumber *> *paymentMethods DEPRECATED_ATTRIBUTE;
|
|
183
|
+
|
|
184
|
+
@end
|
|
185
|
+
NS_ASSUME_NONNULL_END
|