├── Block └── Info.php ├── Gateway ├── Http │ ├── Client │ │ └── ClientMock.php │ └── TransferFactory.php ├── Request │ ├── AuthorizationRequest.php │ ├── CaptureRequest.php │ ├── MockDataRequest.php │ └── VoidRequest.php ├── Response │ ├── FraudHandler.php │ └── TxnIdHandler.php └── Validator │ └── ResponseCodeValidator.php ├── Model ├── Adminhtml │ └── Source │ │ └── PaymentAction.php └── Ui │ └── ConfigProvider.php ├── Observer └── DataAssignObserver.php ├── README.md ├── Test └── Unit │ ├── Block │ └── InfoTest.php │ ├── Gateway │ ├── Http │ │ ├── Client │ │ │ └── ClientMockTest.php │ │ └── TransferFactoryTest.php │ ├── Request │ │ ├── AuthorizeRequestTest.php │ │ ├── CaptureRequestTest.php │ │ ├── MockDataRequestTest.php │ │ └── VoidRequestTest.php │ ├── Response │ │ ├── FraudHandlerTest.php │ │ └── TxnIdHandlerTest.php │ └── Validator │ │ └── ResponseCodeValidatorTest.php │ ├── Model │ ├── Adminhtml │ │ └── Source │ │ │ └── PaymentActionTest.php │ └── Ui │ │ └── ConfigProviderTest.php │ └── Observer │ └── DataAssignObserverTest.php ├── composer.json ├── etc ├── adminhtml │ ├── di.xml │ └── system.xml ├── config.xml ├── di.xml ├── events.xml ├── frontend │ └── di.xml └── module.xml ├── i18n └── en_US.csv ├── registration.php └── view └── frontend ├── layout └── checkout_index_index.xml └── web ├── js └── view │ └── payment │ ├── method-renderer │ └── sample_gateway.js │ └── sample_gateway.js └── template └── payment └── form.html /Block/Info.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mageplaza/magento-2-sample-payment-method/HEAD/Block/Info.php -------------------------------------------------------------------------------- /Gateway/Http/Client/ClientMock.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mageplaza/magento-2-sample-payment-method/HEAD/Gateway/Http/Client/ClientMock.php -------------------------------------------------------------------------------- /Gateway/Http/TransferFactory.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mageplaza/magento-2-sample-payment-method/HEAD/Gateway/Http/TransferFactory.php -------------------------------------------------------------------------------- /Gateway/Request/AuthorizationRequest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mageplaza/magento-2-sample-payment-method/HEAD/Gateway/Request/AuthorizationRequest.php -------------------------------------------------------------------------------- /Gateway/Request/CaptureRequest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mageplaza/magento-2-sample-payment-method/HEAD/Gateway/Request/CaptureRequest.php -------------------------------------------------------------------------------- /Gateway/Request/MockDataRequest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mageplaza/magento-2-sample-payment-method/HEAD/Gateway/Request/MockDataRequest.php -------------------------------------------------------------------------------- /Gateway/Request/VoidRequest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mageplaza/magento-2-sample-payment-method/HEAD/Gateway/Request/VoidRequest.php -------------------------------------------------------------------------------- /Gateway/Response/FraudHandler.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mageplaza/magento-2-sample-payment-method/HEAD/Gateway/Response/FraudHandler.php -------------------------------------------------------------------------------- /Gateway/Response/TxnIdHandler.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mageplaza/magento-2-sample-payment-method/HEAD/Gateway/Response/TxnIdHandler.php -------------------------------------------------------------------------------- /Gateway/Validator/ResponseCodeValidator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mageplaza/magento-2-sample-payment-method/HEAD/Gateway/Validator/ResponseCodeValidator.php -------------------------------------------------------------------------------- /Model/Adminhtml/Source/PaymentAction.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mageplaza/magento-2-sample-payment-method/HEAD/Model/Adminhtml/Source/PaymentAction.php -------------------------------------------------------------------------------- /Model/Ui/ConfigProvider.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mageplaza/magento-2-sample-payment-method/HEAD/Model/Ui/ConfigProvider.php -------------------------------------------------------------------------------- /Observer/DataAssignObserver.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mageplaza/magento-2-sample-payment-method/HEAD/Observer/DataAssignObserver.php -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mageplaza/magento-2-sample-payment-method/HEAD/README.md -------------------------------------------------------------------------------- /Test/Unit/Block/InfoTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mageplaza/magento-2-sample-payment-method/HEAD/Test/Unit/Block/InfoTest.php -------------------------------------------------------------------------------- /Test/Unit/Gateway/Http/Client/ClientMockTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mageplaza/magento-2-sample-payment-method/HEAD/Test/Unit/Gateway/Http/Client/ClientMockTest.php -------------------------------------------------------------------------------- /Test/Unit/Gateway/Http/TransferFactoryTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mageplaza/magento-2-sample-payment-method/HEAD/Test/Unit/Gateway/Http/TransferFactoryTest.php -------------------------------------------------------------------------------- /Test/Unit/Gateway/Request/AuthorizeRequestTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mageplaza/magento-2-sample-payment-method/HEAD/Test/Unit/Gateway/Request/AuthorizeRequestTest.php -------------------------------------------------------------------------------- /Test/Unit/Gateway/Request/CaptureRequestTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mageplaza/magento-2-sample-payment-method/HEAD/Test/Unit/Gateway/Request/CaptureRequestTest.php -------------------------------------------------------------------------------- /Test/Unit/Gateway/Request/MockDataRequestTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mageplaza/magento-2-sample-payment-method/HEAD/Test/Unit/Gateway/Request/MockDataRequestTest.php -------------------------------------------------------------------------------- /Test/Unit/Gateway/Request/VoidRequestTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mageplaza/magento-2-sample-payment-method/HEAD/Test/Unit/Gateway/Request/VoidRequestTest.php -------------------------------------------------------------------------------- /Test/Unit/Gateway/Response/FraudHandlerTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mageplaza/magento-2-sample-payment-method/HEAD/Test/Unit/Gateway/Response/FraudHandlerTest.php -------------------------------------------------------------------------------- /Test/Unit/Gateway/Response/TxnIdHandlerTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mageplaza/magento-2-sample-payment-method/HEAD/Test/Unit/Gateway/Response/TxnIdHandlerTest.php -------------------------------------------------------------------------------- /Test/Unit/Gateway/Validator/ResponseCodeValidatorTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mageplaza/magento-2-sample-payment-method/HEAD/Test/Unit/Gateway/Validator/ResponseCodeValidatorTest.php -------------------------------------------------------------------------------- /Test/Unit/Model/Adminhtml/Source/PaymentActionTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mageplaza/magento-2-sample-payment-method/HEAD/Test/Unit/Model/Adminhtml/Source/PaymentActionTest.php -------------------------------------------------------------------------------- /Test/Unit/Model/Ui/ConfigProviderTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mageplaza/magento-2-sample-payment-method/HEAD/Test/Unit/Model/Ui/ConfigProviderTest.php -------------------------------------------------------------------------------- /Test/Unit/Observer/DataAssignObserverTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mageplaza/magento-2-sample-payment-method/HEAD/Test/Unit/Observer/DataAssignObserverTest.php -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mageplaza/magento-2-sample-payment-method/HEAD/composer.json -------------------------------------------------------------------------------- /etc/adminhtml/di.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mageplaza/magento-2-sample-payment-method/HEAD/etc/adminhtml/di.xml -------------------------------------------------------------------------------- /etc/adminhtml/system.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mageplaza/magento-2-sample-payment-method/HEAD/etc/adminhtml/system.xml -------------------------------------------------------------------------------- /etc/config.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mageplaza/magento-2-sample-payment-method/HEAD/etc/config.xml -------------------------------------------------------------------------------- /etc/di.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mageplaza/magento-2-sample-payment-method/HEAD/etc/di.xml -------------------------------------------------------------------------------- /etc/events.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mageplaza/magento-2-sample-payment-method/HEAD/etc/events.xml -------------------------------------------------------------------------------- /etc/frontend/di.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mageplaza/magento-2-sample-payment-method/HEAD/etc/frontend/di.xml -------------------------------------------------------------------------------- /etc/module.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mageplaza/magento-2-sample-payment-method/HEAD/etc/module.xml -------------------------------------------------------------------------------- /i18n/en_US.csv: -------------------------------------------------------------------------------- 1 | "FRAUD_MSG_LIST","Fraud Messages" 2 | -------------------------------------------------------------------------------- /registration.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mageplaza/magento-2-sample-payment-method/HEAD/registration.php -------------------------------------------------------------------------------- /view/frontend/layout/checkout_index_index.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mageplaza/magento-2-sample-payment-method/HEAD/view/frontend/layout/checkout_index_index.xml -------------------------------------------------------------------------------- /view/frontend/web/js/view/payment/method-renderer/sample_gateway.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mageplaza/magento-2-sample-payment-method/HEAD/view/frontend/web/js/view/payment/method-renderer/sample_gateway.js -------------------------------------------------------------------------------- /view/frontend/web/js/view/payment/sample_gateway.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mageplaza/magento-2-sample-payment-method/HEAD/view/frontend/web/js/view/payment/sample_gateway.js -------------------------------------------------------------------------------- /view/frontend/web/template/payment/form.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mageplaza/magento-2-sample-payment-method/HEAD/view/frontend/web/template/payment/form.html --------------------------------------------------------------------------------