├── items ├── CONTRIBUTING.md ├── Test ├── .gitignore └── Unit │ └── bootstrap.php ├── view ├── base │ └── web │ │ └── images │ │ └── cc │ │ ├── Amex.png │ │ ├── Aura.png │ │ ├── Elo.png │ │ ├── JCB2.png │ │ ├── Mais.png │ │ ├── VR.png │ │ ├── Visa.png │ │ ├── sm.png │ │ ├── so.png │ │ ├── Alelo.png │ │ ├── Banese.png │ │ ├── Cabal.png │ │ ├── Credz.png │ │ ├── Diners.png │ │ ├── Havan.png │ │ ├── Senff.png │ │ ├── Sodexo.png │ │ ├── AndarAki.png │ │ ├── CasaShow.png │ │ ├── Discover.png │ │ ├── HiperCard.png │ │ ├── Hipercard.png │ │ ├── HugCard.png │ │ ├── Paqueta.png │ │ ├── no-brand.png │ │ ├── LeaderCard.png │ │ ├── Mastercard.png │ │ ├── RennerCard.png │ │ ├── SodexoGift.png │ │ ├── Pernambucanas.png │ │ ├── SodexoCultura.png │ │ ├── SodexoPremium.png │ │ ├── SodexoRefeicao.png │ │ ├── SodexoAlimentacao.png │ │ └── SodexoCombustivel.png ├── frontend │ ├── web │ │ ├── template │ │ │ └── payment │ │ │ │ ├── boleto.html │ │ │ │ ├── debit.html │ │ │ │ ├── voucher.html │ │ │ │ ├── creditcard.html │ │ │ │ ├── pix.html │ │ │ │ ├── twocreditcards.html │ │ │ │ ├── boletocreditcard.html │ │ │ │ ├── boleto-form.html │ │ │ │ └── pix-form.html │ │ ├── js │ │ │ ├── core │ │ │ │ ├── checkout │ │ │ │ │ ├── PlatformPlaceOrder.js │ │ │ │ │ ├── Installments.js │ │ │ │ │ └── CreditCardToken.js │ │ │ │ └── validators │ │ │ │ │ ├── CustomerValidator.js │ │ │ │ │ └── VoucherCardValidator.js │ │ │ ├── action │ │ │ │ ├── installments.js │ │ │ │ ├── installmentsByBrand.js │ │ │ │ ├── installmentsByBrandAndAmount.js │ │ │ │ ├── redirect-after-placeorder.js │ │ │ │ └── creditcard │ │ │ │ │ ├── customer-create.js │ │ │ │ │ └── create-card-id.js │ │ │ ├── mixin │ │ │ │ └── billing-address-mixin.js │ │ │ └── helper │ │ │ │ └── address-helper.js │ │ └── css │ │ │ └── mundipagg_style.css │ ├── requirejs-config.js │ ├── templates │ │ ├── info │ │ │ ├── billet.phtml │ │ │ ├── creditCard.phtml │ │ │ ├── pix.phtml │ │ │ ├── billetCreditCard.phtml │ │ │ └── twoCreditCard.phtml │ │ ├── payment │ │ │ └── billet.phtml │ │ └── customer │ │ │ └── cards.phtml │ └── layout │ │ ├── mundipagg_customer_cards.xml │ │ ├── mundipagg_customer_invoice.xml │ │ ├── mundipagg_customer_subscription.xml │ │ ├── checkout_onepage_success.xml │ │ └── customer_account.xml └── adminhtml │ ├── layout │ ├── mundipagg_mundipagg_plans_index.xml │ ├── mundipagg_mundipagg_charges_index.xml │ ├── mundipagg_mundipagg_subscriptions_index.xml │ ├── mundipagg_mundipagg_invoices_index.xml │ ├── mundipagg_mundipagg_recurrenceproducts_index.xml │ ├── mundipagg_mundipagg_cards_index.xml │ ├── mundipagg_mundipagg_subscriptions_details.xml │ ├── mundipagg_mundipagg_plans_create.xml │ ├── mundipagg_mundipagg_recurrenceproducts_create.xml │ ├── sales_order_create_load_block_billing_method.xml │ ├── sales_order_create_index.xml │ └── sales_order_view.xml │ ├── templates │ ├── info │ │ ├── creditCard.phtml │ │ ├── pix.phtml │ │ └── billet.phtml │ ├── payment │ │ └── info │ │ │ └── billet.phtml │ └── customer │ │ └── cards.phtml │ └── web │ ├── js │ └── core │ │ └── checkout │ │ └── CreditCardToken.js │ └── css │ └── mundipagg_style.css ├── .circleci └── data │ ├── Dockerfile │ └── wait-for-mysql.sh ├── Block ├── Payment │ └── Info │ │ ├── Debit.php │ │ └── Voucher.php ├── Adminhtml │ ├── System │ │ └── Config │ │ │ └── Fieldset │ │ │ ├── CycleDiscount.php │ │ │ └── Group.php │ └── Form │ │ └── Field │ │ └── ModuleVersion.php └── Form.php ├── .idea ├── codeStyles │ └── codeStyleConfig.xml ├── vcs.xml ├── modules.xml └── MundiPagg.iml ├── Api ├── ObjectMapper │ ├── ProductSubscription │ │ ├── RepetitionInterface.php │ │ └── ProductSubscriptionMapperInterface.php │ └── ProductPlan │ │ ├── SubProduct.php │ │ └── ProductPlanMapperInterface.php ├── MaintenanceInterface.php ├── ChargeApiInterface.php ├── ProductPlanInterface.php ├── InstallmentsByBrandManagementInterface.php ├── BulkApiInterface.php ├── ProductSubscriptionInterface.php ├── WebhookManagementInterface.php ├── InstallmentsByBrandAndAmountManagementInterface.php ├── BulkSingleResponseInterface.php ├── InvoiceApiInterface.php ├── InstallmentsManagementInterface.php ├── Data │ ├── CardsSearchResultsInterface.php │ └── ChargesSearchResultsInterface.php ├── SubscriptionApiInterface.php ├── CartItemRequestDataProviderInterface.php ├── PixRequestDataProviderInterface.php └── BilletRequestDataProviderInterface.php ├── Model ├── Product │ ├── Recurrence.php │ ├── OnlyPlanItem.php │ └── ProductPlan │ │ ├── Cart │ │ └── Configuration │ │ │ └── Plugin │ │ │ └── Plan.php │ │ └── Type │ │ └── Plugin.php ├── Enum │ ├── BankEnum.php │ ├── DocumentTypeEnum.php │ ├── PersonTypeEnum.php │ ├── CreditCardBrandEnum.php │ ├── CountryEnum.php │ └── CreditCardOperationEnum.php ├── Source │ ├── Status │ │ ├── Review.php │ │ └── NewPending.php │ ├── Debittype.php │ ├── Vouchertype.php │ ├── PixTypes.php │ ├── Interval.php │ ├── PaymentMethods.php │ ├── Billing.php │ ├── BilletTypes.php │ ├── PaymentAction.php │ ├── Sequence.php │ ├── SequenceCriteria.php │ ├── Cctype.php │ ├── EavBillingType.php │ ├── EavInterval.php │ └── EavPaymentMethods.php ├── ResourceModel │ ├── Cards.php │ ├── Charges.php │ ├── Invoices.php │ ├── ProductsPlan.php │ ├── Cards │ │ └── Collection.php │ ├── Subscriptions.php │ ├── Charges │ │ └── Collection.php │ ├── ProductsSubscription.php │ ├── ProductsPlan │ │ └── Collection.php │ ├── ProductsSubscription │ │ └── Collection.php │ └── Subscriptions │ │ └── Collection.php ├── Api │ ├── ResponseMessage.php │ ├── BulkSingleResponse.php │ ├── Charge.php │ └── Invoice.php ├── Invoices.php ├── ProductsPlan.php ├── Subscriptions.php ├── Ui │ ├── CreditCard │ │ └── InstallmentsConfigProvider.php │ ├── TwoCreditCard │ │ └── InstallmentsConfigProvider.php │ ├── BilletCreditCard │ │ └── InstallmentsConfigProvider.php │ └── Pix │ │ └── ConfigProvider.php ├── ProductsSubscription.php ├── Maintenance.php └── Sales │ └── AdminOrder │ └── Product │ └── Quote │ └── Plugin │ └── Initializer.php ├── etc ├── adminhtml │ ├── routes.xml │ └── system │ │ ├── customer.xml │ │ ├── transaction │ │ ├── debit │ │ │ └── types.xml │ │ ├── creditcard │ │ │ ├── types.xml │ │ │ └── antifraud.xml │ │ ├── voucher │ │ │ └── types.xml │ │ ├── multibuyer.xml │ │ ├── multipleactionstwocreditcard.xml │ │ └── multipleactionscreditcardbillet.xml │ │ ├── transaction.xml │ │ └── antifraud.xml ├── frontend │ └── routes.xml ├── _product_types.xml ├── module.xml └── acl.xml ├── .github ├── RELEASE-NOTES-TEMPLATE.md ├── PULL_REQUEST_TEMPLATE.md └── ISSUE-TEMPLATE.md ├── registration.php ├── Controller ├── Adminhtml │ ├── Plans │ │ ├── Index.php │ │ ├── Delete.php │ │ └── Create.php │ ├── Invoices │ │ └── Index.php │ ├── Cards │ │ └── Index.php │ ├── Charges │ │ ├── Index.php │ │ ├── Capture.php │ │ └── Cancel.php │ ├── Subscriptions │ │ └── Index.php │ └── RecurrenceProducts │ │ └── Index.php └── Customer │ ├── Subscription.php │ ├── Cards.php │ └── Invoice.php ├── phpcs.xml.dist ├── phpunit.xml.dist ├── Helper ├── AbstractHelper.php ├── CustomerAddress.php ├── CustomerAddressInterface.php └── ProductHelper.php ├── Gateway └── Transaction │ ├── CreditCard │ ├── Command │ │ ├── CaptureCommand.php │ │ ├── RefundCommand.php │ │ └── AuthorizeCommand.php │ └── ResourceGateway │ │ ├── Refund │ │ └── Response │ │ │ └── Validator.php │ │ ├── Capture │ │ └── Response │ │ │ └── Validator.php │ │ └── Create │ │ └── Response │ │ └── Validator.php │ ├── TwoCreditCard │ ├── Command │ │ ├── CaptureCommand.php │ │ ├── RefundCommand.php │ │ └── AuthorizeCommand.php │ └── ResourceGateway │ │ ├── Capture │ │ └── Response │ │ │ └── Validator.php │ │ ├── Create │ │ └── Response │ │ │ └── Validator.php │ │ └── Refund │ │ └── Response │ │ └── Validator.php │ ├── BilletCreditCard │ ├── Command │ │ ├── CaptureCommand.php │ │ ├── AuthorizeCommand.php │ │ └── RefundCommand.php │ └── ResourceGateway │ │ ├── Capture │ │ └── Response │ │ │ └── Validator.php │ │ ├── Create │ │ └── Response │ │ │ └── Validator.php │ │ └── Refund │ │ └── Response │ │ └── Validator.php │ ├── Billet │ ├── Command │ │ └── AuthorizeCommand.php │ └── ResourceGateway │ │ └── Create │ │ └── Response │ │ └── Validator.php │ └── Base │ ├── ResourceGateway │ └── Response │ │ └── AbstractHandler.php │ └── Config │ └── AbstractConfig.php ├── Setup └── InstallData.php ├── patches └── 0001-issues-18195.patch ├── Factories └── BulkSingleResponseFactory.php ├── LICENSE ├── Ui └── Component │ ├── Listing │ └── Column │ │ ├── BrazilCurrency.php │ │ └── Translate.php │ └── Recurrence │ └── Column │ ├── CreatedAt.php │ ├── ProductRecurrenceName.php │ ├── TotalCyclesByProduct.php │ └── Interval.php ├── .phpcs.xml ├── Plugin └── Webapi │ └── RestResponse │ └── JsonPlugin.php ├── phpmd.xml.dist ├── composer.json └── Observer └── OrderPlaceBeforeObserver.php /items: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | ## Coming soon -------------------------------------------------------------------------------- /Test/.gitignore: -------------------------------------------------------------------------------- 1 | /output/ 2 | /scripts/ 3 | /Test/log/ 4 | /Test/clover.xml -------------------------------------------------------------------------------- /view/base/web/images/cc/Amex.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mundipagg/magento2/HEAD/view/base/web/images/cc/Amex.png -------------------------------------------------------------------------------- /view/base/web/images/cc/Aura.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mundipagg/magento2/HEAD/view/base/web/images/cc/Aura.png -------------------------------------------------------------------------------- /view/base/web/images/cc/Elo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mundipagg/magento2/HEAD/view/base/web/images/cc/Elo.png -------------------------------------------------------------------------------- /view/base/web/images/cc/JCB2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mundipagg/magento2/HEAD/view/base/web/images/cc/JCB2.png -------------------------------------------------------------------------------- /view/base/web/images/cc/Mais.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mundipagg/magento2/HEAD/view/base/web/images/cc/Mais.png -------------------------------------------------------------------------------- /view/base/web/images/cc/VR.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mundipagg/magento2/HEAD/view/base/web/images/cc/VR.png -------------------------------------------------------------------------------- /view/base/web/images/cc/Visa.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mundipagg/magento2/HEAD/view/base/web/images/cc/Visa.png -------------------------------------------------------------------------------- /view/base/web/images/cc/sm.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mundipagg/magento2/HEAD/view/base/web/images/cc/sm.png -------------------------------------------------------------------------------- /view/base/web/images/cc/so.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mundipagg/magento2/HEAD/view/base/web/images/cc/so.png -------------------------------------------------------------------------------- /view/base/web/images/cc/Alelo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mundipagg/magento2/HEAD/view/base/web/images/cc/Alelo.png -------------------------------------------------------------------------------- /view/base/web/images/cc/Banese.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mundipagg/magento2/HEAD/view/base/web/images/cc/Banese.png -------------------------------------------------------------------------------- /view/base/web/images/cc/Cabal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mundipagg/magento2/HEAD/view/base/web/images/cc/Cabal.png -------------------------------------------------------------------------------- /view/base/web/images/cc/Credz.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mundipagg/magento2/HEAD/view/base/web/images/cc/Credz.png -------------------------------------------------------------------------------- /view/base/web/images/cc/Diners.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mundipagg/magento2/HEAD/view/base/web/images/cc/Diners.png -------------------------------------------------------------------------------- /view/base/web/images/cc/Havan.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mundipagg/magento2/HEAD/view/base/web/images/cc/Havan.png -------------------------------------------------------------------------------- /view/base/web/images/cc/Senff.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mundipagg/magento2/HEAD/view/base/web/images/cc/Senff.png -------------------------------------------------------------------------------- /view/base/web/images/cc/Sodexo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mundipagg/magento2/HEAD/view/base/web/images/cc/Sodexo.png -------------------------------------------------------------------------------- /view/base/web/images/cc/AndarAki.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mundipagg/magento2/HEAD/view/base/web/images/cc/AndarAki.png -------------------------------------------------------------------------------- /view/base/web/images/cc/CasaShow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mundipagg/magento2/HEAD/view/base/web/images/cc/CasaShow.png -------------------------------------------------------------------------------- /view/base/web/images/cc/Discover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mundipagg/magento2/HEAD/view/base/web/images/cc/Discover.png -------------------------------------------------------------------------------- /view/base/web/images/cc/HiperCard.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mundipagg/magento2/HEAD/view/base/web/images/cc/HiperCard.png -------------------------------------------------------------------------------- /view/base/web/images/cc/Hipercard.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mundipagg/magento2/HEAD/view/base/web/images/cc/Hipercard.png -------------------------------------------------------------------------------- /view/base/web/images/cc/HugCard.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mundipagg/magento2/HEAD/view/base/web/images/cc/HugCard.png -------------------------------------------------------------------------------- /view/base/web/images/cc/Paqueta.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mundipagg/magento2/HEAD/view/base/web/images/cc/Paqueta.png -------------------------------------------------------------------------------- /view/base/web/images/cc/no-brand.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mundipagg/magento2/HEAD/view/base/web/images/cc/no-brand.png -------------------------------------------------------------------------------- /view/base/web/images/cc/LeaderCard.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mundipagg/magento2/HEAD/view/base/web/images/cc/LeaderCard.png -------------------------------------------------------------------------------- /view/base/web/images/cc/Mastercard.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mundipagg/magento2/HEAD/view/base/web/images/cc/Mastercard.png -------------------------------------------------------------------------------- /view/base/web/images/cc/RennerCard.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mundipagg/magento2/HEAD/view/base/web/images/cc/RennerCard.png -------------------------------------------------------------------------------- /view/base/web/images/cc/SodexoGift.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mundipagg/magento2/HEAD/view/base/web/images/cc/SodexoGift.png -------------------------------------------------------------------------------- /view/base/web/images/cc/Pernambucanas.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mundipagg/magento2/HEAD/view/base/web/images/cc/Pernambucanas.png -------------------------------------------------------------------------------- /view/base/web/images/cc/SodexoCultura.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mundipagg/magento2/HEAD/view/base/web/images/cc/SodexoCultura.png -------------------------------------------------------------------------------- /view/base/web/images/cc/SodexoPremium.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mundipagg/magento2/HEAD/view/base/web/images/cc/SodexoPremium.png -------------------------------------------------------------------------------- /view/base/web/images/cc/SodexoRefeicao.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mundipagg/magento2/HEAD/view/base/web/images/cc/SodexoRefeicao.png -------------------------------------------------------------------------------- /view/base/web/images/cc/SodexoAlimentacao.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mundipagg/magento2/HEAD/view/base/web/images/cc/SodexoAlimentacao.png -------------------------------------------------------------------------------- /view/base/web/images/cc/SodexoCombustivel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mundipagg/magento2/HEAD/view/base/web/images/cc/SodexoCombustivel.png -------------------------------------------------------------------------------- /.circleci/data/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM thiagobarradas/magento2:2.2.0-php7.1 2 | MAINTAINER Embeddables Team 3 | 4 | WORKDIR /app 5 | -------------------------------------------------------------------------------- /.circleci/data/wait-for-mysql.sh: -------------------------------------------------------------------------------- 1 | while ! /etc/init.d/mysql status | grep -m1 'is running'; do 2 | sleep 1 3 | echo "Waiting for mysql service..." 4 | done -------------------------------------------------------------------------------- /Block/Payment/Info/Debit.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /Block/Payment/Info/Voucher.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Api/ObjectMapper/ProductSubscription/RepetitionInterface.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /view/frontend/web/template/payment/debit.html: -------------------------------------------------------------------------------- 1 |
2 | 3 |
4 |
-------------------------------------------------------------------------------- /view/frontend/web/template/payment/voucher.html: -------------------------------------------------------------------------------- 1 |
2 | 3 |
4 |
-------------------------------------------------------------------------------- /Api/ObjectMapper/ProductPlan/SubProduct.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /Api/ChargeApiInterface.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Api/ProductPlanInterface.php: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 |
-------------------------------------------------------------------------------- /Api/ProductSubscriptionInterface.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /view/frontend/web/js/core/checkout/PlatformPlaceOrder.js: -------------------------------------------------------------------------------- 1 | const PlatformPlaceOrder = function (platformObject, data, event) { 2 | this.platformObject = platformObject; 3 | this.data = data; 4 | this.event = event; 5 | } 6 | 7 | PlatformPlaceOrder.prototype.placeOrder = function() { 8 | return this.platformObject.placeOrder( 9 | this.data, 10 | this.event 11 | ); 12 | } -------------------------------------------------------------------------------- /Model/Enum/PersonTypeEnum.php: -------------------------------------------------------------------------------- 1 | _init('mundipagg_mundipagg_cards', 'id'); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Api/BulkSingleResponseInterface.php: -------------------------------------------------------------------------------- 1 | _init('mundipagg_module_core_charge', 'id'); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Model/Source/Status/NewPending.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /view/adminhtml/layout/mundipagg_mundipagg_charges_index.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /view/adminhtml/layout/mundipagg_mundipagg_subscriptions_index.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /view/adminhtml/layout/mundipagg_mundipagg_invoices_index.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /.idea/MundiPagg.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /view/frontend/templates/info/billet.phtml: -------------------------------------------------------------------------------- 1 | getBilletUrl() && $this->getInfo()->getOrder()->getStatus() == 'pending'): ?> 2 | getTitle()) ?> 3 |
4 | 5 | 6 | getTitle()) ?> 7 | 8 | -------------------------------------------------------------------------------- /Model/Api/ResponseMessage.php: -------------------------------------------------------------------------------- 1 | message = $message; 13 | } 14 | 15 | /** 16 | * @return string 17 | */ 18 | public function getMessage() 19 | { 20 | return $this->message; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /etc/frontend/routes.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Api/InvoiceApiInterface.php: -------------------------------------------------------------------------------- 1 | 4 | * @copyright 2017 MundiPagg (http://www.mundipagg.com) 5 | * @license http://www.mundipagg.com Copyright 6 | * 7 | * @link http://www.mundipagg.com 8 | */ 9 | \Magento\Framework\Component\ComponentRegistrar::register( 10 | \Magento\Framework\Component\ComponentRegistrar::MODULE, 11 | 'MundiPagg_MundiPagg', 12 | __DIR__ 13 | ); 14 | -------------------------------------------------------------------------------- /view/adminhtml/layout/mundipagg_mundipagg_recurrenceproducts_index.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Api/ObjectMapper/ProductPlan/ProductPlanMapperInterface.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Model/ResourceModel/Invoices.php: -------------------------------------------------------------------------------- 1 | _init('mundipagg_module_core_recurrence_charge', 'id'); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /Model/ResourceModel/ProductsPlan.php: -------------------------------------------------------------------------------- 1 | _init('mundipagg_module_core_products_plan', 'id'); 18 | } 19 | } -------------------------------------------------------------------------------- /view/frontend/web/template/payment/twocreditcards.html: -------------------------------------------------------------------------------- 1 |
2 | 3 | 4 |
5 |
6 | 7 | 8 |
9 | -------------------------------------------------------------------------------- /Api/InstallmentsManagementInterface.php: -------------------------------------------------------------------------------- 1 | 6 | * @copyright 2017 MundiPagg (http://www.mundipagg.com) 7 | * @license http://www.mundipagg.com Copyright 8 | * 9 | * @link http://www.mundipagg.com 10 | */ 11 | 12 | namespace MundiPagg\MundiPagg\Api; 13 | 14 | 15 | interface InstallmentsManagementInterface 16 | { 17 | /** 18 | * @return mixed 19 | */ 20 | public function getInstallments(); 21 | } 22 | -------------------------------------------------------------------------------- /Model/ResourceModel/Cards/Collection.php: -------------------------------------------------------------------------------- 1 | _init( 17 | 'MundiPagg\MundiPagg\Model\Cards', 18 | 'MundiPagg\MundiPagg\Model\ResourceModel\Cards' 19 | ); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /Model/ResourceModel/Subscriptions.php: -------------------------------------------------------------------------------- 1 | _init('mundipagg_module_core_recurrence_subscription', 'id'); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /Model/ResourceModel/Charges/Collection.php: -------------------------------------------------------------------------------- 1 | _init( 17 | 'MundiPagg\MundiPagg\Model\Charges', 18 | 'MundiPagg\MundiPagg\Model\ResourceModel\Charges' 19 | ); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /Model/ResourceModel/ProductsSubscription.php: -------------------------------------------------------------------------------- 1 | _init('mundipagg_module_core_products_subscription', 'id'); 18 | } 19 | } -------------------------------------------------------------------------------- /view/frontend/web/css/mundipagg_style.css: -------------------------------------------------------------------------------- 1 | .payment-full{ 2 | width: 100%; 3 | display: flex; 4 | justify-content: space-between; 5 | } 6 | .form-creditcard-one, .form-creditcard-two { 7 | padding-right: 30px; 8 | box-sizing: border-box; 9 | } 10 | 11 | .checkout-payment-method .payment-method-content { 12 | padding: 0; 13 | } 14 | .checkout-payment-method .checkout-billing-address { 15 | margin: 20px 0; 16 | } 17 | .actions-toolbar { 18 | margin-bottom: 10px; 19 | } 20 | 21 | .multibuyer { 22 | width: 335px; 23 | display: none; 24 | } -------------------------------------------------------------------------------- /Api/Data/CardsSearchResultsInterface.php: -------------------------------------------------------------------------------- 1 | resultPageFactory->create(); 17 | $resultPage->getConfig()->getTitle()->prepend(__("Plans")); 18 | 19 | return $resultPage; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /view/frontend/web/js/core/checkout/Installments.js: -------------------------------------------------------------------------------- 1 | var Installments = function () { 2 | } 3 | 4 | Installments.prototype.init = function () { 5 | }; 6 | 7 | Installments.prototype.addOptions = function (element, installments) { 8 | 9 | if (installments != undefined) { 10 | jQuery(element).find('option').remove(); 11 | 12 | installments.forEach(function (value) { 13 | opt = new Option(value.label, value.id); 14 | jQuery(opt).attr("interest", value.interest); 15 | jQuery(element).append(opt); 16 | }); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Model/Enum/CreditCardBrandEnum.php: -------------------------------------------------------------------------------- 1 | 6 | * @copyright 2017 MundiPagg (http://www.mundipagg.com) 7 | * @license http://www.mundipagg.com Copyright 8 | * 9 | * @link http://www.mundipagg.com 10 | */ 11 | ?> 12 | 13 | getBilletUrl()): ?> 14 |
15 | 16 | 17 | -------------------------------------------------------------------------------- /view/frontend/web/template/payment/boletocreditcard.html: -------------------------------------------------------------------------------- 1 |
2 | 3 | 4 |
5 |
6 | 7 | 8 | 9 |
10 |
-------------------------------------------------------------------------------- /Api/Data/ChargesSearchResultsInterface.php: -------------------------------------------------------------------------------- 1 | _init('MundiPagg\MundiPagg\Model\ResourceModel\Invoices'); 13 | } 14 | 15 | /** 16 | * Return unique ID(s) for each object in system 17 | * 18 | * @return string[] 19 | */ 20 | public function getIdentities() 21 | { 22 | return $this->getId(); 23 | } 24 | } -------------------------------------------------------------------------------- /Model/ProductsPlan.php: -------------------------------------------------------------------------------- 1 | _init('MundiPagg\MundiPagg\Model\ResourceModel\ProductsPlan'); 13 | } 14 | 15 | /** 16 | * Return unique ID(s) for each object in system 17 | * 18 | * @return string[] 19 | */ 20 | public function getIdentities() 21 | { 22 | return $this->getId(); 23 | } 24 | } -------------------------------------------------------------------------------- /Model/Subscriptions.php: -------------------------------------------------------------------------------- 1 | _init('MundiPagg\MundiPagg\Model\ResourceModel\Subscriptions'); 13 | } 14 | 15 | /** 16 | * Return unique ID(s) for each object in system 17 | * 18 | * @return string[] 19 | */ 20 | public function getIdentities() 21 | { 22 | return $this->getId(); 23 | } 24 | } -------------------------------------------------------------------------------- /Model/ResourceModel/ProductsPlan/Collection.php: -------------------------------------------------------------------------------- 1 | _init( 19 | 'MundiPagg\MundiPagg\Model\ProductsPlan', 20 | 'MundiPagg\MundiPagg\Model\ResourceModel\ProductsPlan' 21 | ); 22 | } 23 | } -------------------------------------------------------------------------------- /Model/Ui/CreditCard/InstallmentsConfigProvider.php: -------------------------------------------------------------------------------- 1 | 6 | * @copyright 2017 MundiPagg (http://www.mundipagg.com) 7 | * @license http://www.mundipagg.com Copyright 8 | * 9 | * @link http://www.mundipagg.com 10 | */ 11 | 12 | namespace MundiPagg\MundiPagg\Model\Ui\CreditCard; 13 | 14 | 15 | use MundiPagg\MundiPagg\Model\Ui\Base\GenericInstallmentsConfigProvider; 16 | 17 | class InstallmentsConfigProvider extends GenericInstallmentsConfigProvider 18 | { 19 | const CODE = 'mundipagg_creditcard'; 20 | } 21 | -------------------------------------------------------------------------------- /Model/ProductsSubscription.php: -------------------------------------------------------------------------------- 1 | _init('MundiPagg\MundiPagg\Model\ResourceModel\ProductsSubscription'); 13 | } 14 | 15 | /** 16 | * Return unique ID(s) for each object in system 17 | * 18 | * @return string[] 19 | */ 20 | public function getIdentities() 21 | { 22 | return $this->getId(); 23 | } 24 | } -------------------------------------------------------------------------------- /Model/Ui/TwoCreditCard/InstallmentsConfigProvider.php: -------------------------------------------------------------------------------- 1 | 6 | * @copyright 2017 MundiPagg (http://www.mundipagg.com) 7 | * @license http://www.mundipagg.com Copyright 8 | * 9 | * @link http://www.mundipagg.com 10 | */ 11 | 12 | namespace MundiPagg\MundiPagg\Model\Ui\TwoCreditCard; 13 | 14 | 15 | use MundiPagg\MundiPagg\Model\Ui\Base\GenericInstallmentsConfigProvider; 16 | 17 | class InstallmentsConfigProvider extends GenericInstallmentsConfigProvider 18 | { 19 | const CODE = 'mundipagg_two_creditcard'; 20 | } 21 | -------------------------------------------------------------------------------- /Model/Ui/BilletCreditCard/InstallmentsConfigProvider.php: -------------------------------------------------------------------------------- 1 | 6 | * @copyright 2017 MundiPagg (http://www.mundipagg.com) 7 | * @license http://www.mundipagg.com Copyright 8 | * 9 | * @link http://www.mundipagg.com 10 | */ 11 | 12 | namespace MundiPagg\MundiPagg\Model\Ui\BilletCreditCard; 13 | 14 | 15 | use MundiPagg\MundiPagg\Model\Ui\Base\GenericInstallmentsConfigProvider; 16 | 17 | class InstallmentsConfigProvider extends GenericInstallmentsConfigProvider 18 | { 19 | const CODE = 'mundipagg_billet_creditcard'; 20 | } 21 | -------------------------------------------------------------------------------- /phpcs.xml.dist: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | MundiPagg coding standards 13 | 14 | 15 | 16 | 17 | */Test/* 18 | */vendor/* 19 | -------------------------------------------------------------------------------- /Model/ResourceModel/ProductsSubscription/Collection.php: -------------------------------------------------------------------------------- 1 | _init( 19 | 'MundiPagg\MundiPagg\Model\ProductsSubscription', 20 | 'MundiPagg\MundiPagg\Model\ResourceModel\ProductsSubscription' 21 | ); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Api/SubscriptionApiInterface.php: -------------------------------------------------------------------------------- 1 | 9 | * @copyright 2017 MundiPagg (http://www.mundipagg.com) 10 | * @license http://www.mundipagg.com Copyright 11 | * 12 | * @link http://www.mundipagg.com 13 | */ 14 | 15 | class Debittype extends \Magento\Payment\Model\Source\Cctype 16 | { 17 | /** 18 | * @return array 19 | */ 20 | public function getAllowedTypes() 21 | { 22 | return [ 23 | 'Visa', 24 | 'Mastercard', 25 | 'Elo' 26 | ]; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Model/Source/Vouchertype.php: -------------------------------------------------------------------------------- 1 | 9 | * @copyright 2017 MundiPagg (http://www.mundipagg.com) 10 | * @license http://www.mundipagg.com Copyright 11 | * 12 | * @link http://www.mundipagg.com 13 | */ 14 | 15 | class Vouchertype extends \Magento\Payment\Model\Source\Cctype 16 | { 17 | /** 18 | * @return array 19 | */ 20 | public function getAllowedTypes() 21 | { 22 | return [ 23 | 'VR', 24 | 'Alelo', 25 | 'Sodexo' 26 | ]; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /etc/_product_types.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Model/Source/PixTypes.php: -------------------------------------------------------------------------------- 1 | 4 | * @copyright 2017 MundiPagg (http://www.mundipagg.com) 5 | * @license http://www.mundipagg.com Copyright 6 | * 7 | * @link http://www.mundipagg.com 8 | * 9 | */ 10 | 11 | namespace MundiPagg\MundiPagg\Model\Source; 12 | 13 | use Magento\Framework\Option\ArrayInterface; 14 | 15 | class PixTypes implements ArrayInterface 16 | { 17 | public function toOptionArray() 18 | { 19 | return [ 20 | [ 21 | 'value' => 'pagarme', 22 | 'label' => __('Pagar.me'), 23 | ] 24 | ]; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /Block/Adminhtml/System/Config/Fieldset/CycleDiscount.php: -------------------------------------------------------------------------------- 1 | addColumn('cycle', ['label' => __('Cycle')]); 19 | $this->addColumn('discount', ['label' => __('(%)')]); 20 | $this->_addAfter = false; 21 | $this->_addButtonLabel = __('+'); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Model/Source/Interval.php: -------------------------------------------------------------------------------- 1 | 6 | * @copyright 2017 MundiPagg (http://www.mundipagg.com) 7 | * @license http://www.mundipagg.com Copyright 8 | * 9 | * @link http://www.mundipagg.com 10 | */ 11 | 12 | namespace MundiPagg\MundiPagg\Model\Source; 13 | 14 | use Magento\Framework\Option\ArrayInterface; 15 | use MundiPagg\MundiPagg\Model\Source\EavInterval; 16 | 17 | class Interval implements ArrayInterface 18 | { 19 | 20 | public function toOptionArray() { 21 | $eav = new EavInterval(); 22 | return $eav->getAllOptions(); 23 | } 24 | 25 | } 26 | -------------------------------------------------------------------------------- /Test/Unit/bootstrap.php: -------------------------------------------------------------------------------- 1 | 4 | * @copyright 2017 MundiPagg (http://www.mundipagg.com) 5 | * @license http://www.mundipagg.com Copyright 6 | * 7 | * @link http://www.mundipagg.com 8 | */ 9 | // @codingStandardsIgnoreFile 10 | require_once realpath(__DIR__.'/../../vendor/autoload.php'); 11 | /** 12 | * @SuppressWarnings(PHPMD.ShortMethodName) 13 | */ 14 | function __() 15 | { 16 | $argc = func_get_args(); 17 | 18 | $text = array_shift($argc); 19 | if (!empty($argc) && is_array($argc[0])) { 20 | $argc = $argc[0]; 21 | } 22 | 23 | return new \Magento\Framework\Phrase($text, $argc); 24 | } 25 | -------------------------------------------------------------------------------- /view/adminhtml/layout/mundipagg_mundipagg_subscriptions_details.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /view/frontend/web/js/action/installments.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @author MundiPagg Embeddables Team 3 | * @copyright 2017 MundiPagg (http://www.mundipagg.com) 4 | * @license http://www.mundipagg.com Copyright 5 | * 6 | * @link http://www.mundipagg.com 7 | */ 8 | /*browser:true*/ 9 | /*global define*/ 10 | define( 11 | [ 12 | 'mage/storage', 13 | 'Magento_Checkout/js/model/url-builder' 14 | ], 15 | function ( 16 | storage, 17 | urlBuilder 18 | ) { 19 | return function () { 20 | var serviceUrl; 21 | return urlBuilder.createUrl('/mundipagg/creditcard/installments/', {}); 22 | }; 23 | } 24 | ); 25 | -------------------------------------------------------------------------------- /view/adminhtml/layout/mundipagg_mundipagg_plans_create.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 |