mcspronko / liqpay-magento2 Goto Github PK
View Code? Open in Web Editor NEWLiqPay integration extension for Magento 2
License: MIT License
LiqPay integration extension for Magento 2
License: MIT License
What should be done:
The Pronko_LiqPayWidget extension represents a LiqPay Widget integration (see https://www.liqpay.ua/documentation/api/aquiring/widget/doc)
What should be included as part of this task:
see the checkout directory as an example:
Please add 'pronko_liqpay' into a constant of an interface inside the Pronko_LiqPayApi extension.
Change all occurrences of the string payment method code in the configuration files and PHP classes to use the new constant.
What should be done:
It should be created in the Pronko_LiqPayRedirect extension.
LiqPay Redirect payment method code should be pronko_liqpay_redirect
What should be done:
Similar to the PayRequestTest
Running below command is throwing Seld\JsonLint\ParsingException
php composer.phar config repositories.pronko-liqpay [email protected]:mcspronko/liqpay-magento2.git
What should be done:
The \Magento\Payment\Gateway\Command\GatewayCommand class should be used to configure Capture command virtual type.
Problem 1
- The requested package pronko/liqpay-magento2 could not be found in any version, there may be a typo in the package name.
The Pronko_LiqPayGateway extension is responsible for Gateway API classes and interfaces for sending a request, validating request and response and processing a response from LiqPay API.
What should be included as part of this task:
Allow having unique order id for testing with LiqPay as it requires us to send unique order_id each time.
This field should be concatenated with order id when sending all LiqPay transaction requests.
The "Order Prefix" and "Order Suffix" fields can be added inside Advanced Settings or Account Settings of the module.
The Config class from the gateway module should be adjusted
Currently, LiqPay only supports a capture transaction.
What should be done:
What should be done:
Documentation: https://www.liqpay.ua/documentation/en/api/aquiring/checkout/doc
Keys:
amount and currency
The di.xml file should be adjusted with the configuration for the redirect CommandPool virtual type.
Please check https://www.liqpay.ua/documentation/en/api/aquiring/pay/doc for year format.
[2019-08-30 06:05:51] main.DEBUG: array (
'request_raw' =>
array (
'data' =>
array (
'version' => 3,
'public_key' => '',
'action' => 'pay',
'description' => 'LiqPay for Magento 2',
'order_id' => '000000098',
'card' => '4000000000000002',
'card_cvv' => '111',
'card_exp_month' => '1',
'card_exp_year' => '2021',
'amount' => 53.71,
'currency' => 'USD',
'phone' => '(555) 229-3326',
),
'signature' => '',
),
) [] []
[2019-08-30 06:05:51] main.DEBUG: array (
'request_uri' => 'https://www.liqpay.ua/api/request',
'response' =>
array (
'result' => 'error',
'action' => 'pay',
'status' => 'failure',
'err_code' => 'err_wrong',
'err_description' => 'Invalid parameter card_date',
'version' => 3,
'type' => 'buy',
'public_key' => 'sandbox_i70710739841',
'liqpay_order_id' => '000000098',
'description' => 'LiqPay for Magento 2',
'amount' => 53.71,
'currency' => 'USD',
'is_3ds' => false,
'key' => 'card_date',
'code' => 'err_wrong',
),
) [] []
What should be done:
What should be done:
Maxs-MacBook-Pro:liqpay-magento2 pronko$ composer test-phpcs
vendor/bin/phpcs --standard=Magento2 ./checkout/ ./test/ ./admin/ ./card-gateway/ ./gateway/ ./redirect/ ./customer/ ./widget/ ./api/
See CardPaymentBuilder class, the amount value.
The Pronko_LiqPayRedirect extension represents the LiqPay Checkout integration (see https://www.liqpay.ua/documentation/api/aquiring/checkout/ page) which redirects a customer to a LiqPay server with a payment form.
What should be included as part of this task:
see the checkout directory as an example:
The Pronko_LiqPayAdmin extension is responsible for rendering configuration of the LiqPay payment method.
What should be included as part of this task:
What should be done:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.