New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Modify Omise PrestaShop to work with PrestaShop 1.7 #47
Commits on Oct 13, 2017
-
Allow module can be installed on PrestaShop 1.7
If the module does not allow to be installed on PrestaShop 1.7, when install it on PrestaShop 1.7, the module installation is failed.
Configuration menu - View commit details
-
Copy full SHA for 59a00cd - Browse repository at this point
Copy the full SHA 59a00cdView commit details
Commits on Oct 14, 2017
-
Configuration menu - View commit details
-
Copy full SHA for dd99e93 - Browse repository at this point
Copy the full SHA dd99e93View commit details
Commits on Oct 19, 2017
-
Correct the image size of icon file (module logo)
The logo is the same. Only image size has been changed. The image size has been changed to 32x32. Both PrestaShop 1.6 and 1.7 require the same image size. References: - PrestaShop 1.6, http://doc.prestashop.com/display/PS16/Creating+a+first+module#Creatingafirstmodule-Theiconfile - PrestaShop 1.7, http://developers.prestashop.com/module/05-CreatingAPrestaShop17Module/02-CreatingAFirstModule.html#the-icon-file
Configuration menu - View commit details
-
Copy full SHA for bd88a06 - Browse repository at this point
Copy the full SHA bd88a06View commit details
Commits on Oct 20, 2017
-
Configuration menu - View commit details
-
Copy full SHA for 59dc670 - Browse repository at this point
Copy the full SHA 59dc670View commit details -
Configuration menu - View commit details
-
Copy full SHA for e56c146 - Browse repository at this point
Copy the full SHA e56c146View commit details
Commits on Oct 22, 2017
-
Display card payment form by reuse, displayPayment
Display card payment form by reuse the function displayPayment().
Configuration menu - View commit details
-
Copy full SHA for 40b18dd - Browse repository at this point
Copy the full SHA 40b18ddView commit details -
Remove 2 assigned variables that displayed form
Remove 2 assigned variables that used to display at card payment form. The removed variables are `action` and `title`. PrestaShop 1.7 has changed the mechanism to submit payment form. It will generated a submit button for all payment options. So, each payment option will be changed to override the action of the PrestaShop 1.7. instead of has it own action. The `title` at the top of the payment form has changed to be displayed at the payment option instead. So, display the title at the top of payment form is unnecessary and duplicated.
Configuration menu - View commit details
-
Copy full SHA for 5c8efbe - Browse repository at this point
Copy the full SHA 5c8efbeView commit details -
Remove submit payment button at card payment form
For PrestaShop 1.7, submit payment button is unnecessary. To submit payment, it will be changed to override the action of PrestaShop 1.7 instead.
Configuration menu - View commit details
-
Copy full SHA for e0b9e18 - Browse repository at this point
Copy the full SHA e0b9e18View commit details -
Configuration menu - View commit details
-
Copy full SHA for 75a7512 - Browse repository at this point
Copy the full SHA 75a7512View commit details -
Configuration menu - View commit details
-
Copy full SHA for 22cc4b8 - Browse repository at this point
Copy the full SHA 22cc4b8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8d4faa6 - Browse repository at this point
Copy the full SHA 8d4faa6View commit details
Commits on Oct 23, 2017
-
Configuration menu - View commit details
-
Copy full SHA for 7df1d25 - Browse repository at this point
Copy the full SHA 7df1d25View commit details -
Use the correct function to display payment form
The correct function of PrestaShop 1.7 new API that used to display card payment form is `setForm()`. It is not function, `setAdditionalInformation()`. References: - http://developers.prestashop.com/module/50-PaymentModules/index.html#paymentoption - https://github.com/PrestaShop/paymentexample/blob/master/paymentexample.php#L143
Configuration menu - View commit details
-
Copy full SHA for e65e8bf - Browse repository at this point
Copy the full SHA e65e8bfView commit details
Commits on Oct 24, 2017
-
Define a constant to identify card payment option
Define a constant to be the identifier for card payment option. This constant will be used at the front office, payment step, payment options.
Configuration menu - View commit details
-
Copy full SHA for a5f3d32 - Browse repository at this point
Copy the full SHA a5f3d32View commit details -
Modify JavaScript to create Omise card token
Modify JavaScript in card payment page to create Omise card token. The mechanism to submit payment for support PrestaShop 1.7 has been changed from the module has it own submit payment button to using the submit payment button that PrestaShop generated.
Configuration menu - View commit details
-
Copy full SHA for 0285c64 - Browse repository at this point
Copy the full SHA 0285c64View commit details
Commits on Oct 25, 2017
-
Configuration menu - View commit details
-
Copy full SHA for a83e627 - Browse repository at this point
Copy the full SHA a83e627View commit details -
Re-add missing condition, Is Omise.js accessible?
Re-add a missing JavaScript condition. This condition is lost during the modification of previous commit. This condition is check whether the external library, Omise.js, is accessible. If Omise.js is not accessible, the error message will be displayed. The reason that Omise.js is not accessible, may be from the slow connection or timeout. The Omise.js is an important library that used to create Omise card token at the client side. Without this condition, the customer (payer) can not clearly know the problem when submit payment with Omise card payment. The error will be not displayed visually. It will be displayed at the console of web browser. That is not easy for customer to know the problem.
Configuration menu - View commit details
-
Copy full SHA for 0b9b6f1 - Browse repository at this point
Copy the full SHA 0b9b6f1View commit details -
Remove an unnecessary <p> tag in the card payment page, payment.tpl. This <p> tag contains <div>, which it is improper and it causes an error when the debug mode has been activated. In normal mode, the error does not appear. The error has been displayed at the checkout step, full page. The debug mode can be activated by go to PrestaShop back office, from the left menu, CONFIGURE > Advanced Parameters > Performance > DEBUG MODE. Reference: - W3C <p> tag recommendation, https://www.w3.org/TR/html401/struct/text.html#h-9.3.1
Configuration menu - View commit details
-
Copy full SHA for 8d01904 - Browse repository at this point
Copy the full SHA 8d01904View commit details -
Configuration menu - View commit details
-
Copy full SHA for 993d8d5 - Browse repository at this point
Copy the full SHA 993d8d5View commit details -
Configuration menu - View commit details
-
Copy full SHA for d00c4ab - Browse repository at this point
Copy the full SHA d00c4abView commit details
Commits on Oct 26, 2017
-
Submit card token from client to create charge
Pass the action URL from server side to client side. At the client side, if the Omise card token has been successfully created, it will be submitted from client side to server side for create Omise charge at server side.
Configuration menu - View commit details
-
Copy full SHA for b78024f - Browse repository at this point
Copy the full SHA b78024fView commit details -
Change a parameter key from objOrder to order
PrestaShop 1.7 new payment API has changed the parameters passed to `hookDisplayOrderConfirmation()`. The impact is key that used to retrieved current order has been changed from `objOrder` to `order`. Without this commit, the system will crash, view can not be rendered. Reference: - http://build.prestashop.com/news/module-development-changes-in-17/#before
Configuration menu - View commit details
-
Copy full SHA for 3706c5c - Browse repository at this point
Copy the full SHA 3706c5cView commit details -
Change parameter for a function setTemplate()
PrestaShop 1.7 has changed the parameter syntax that passed to function `setTemplate()`.
Configuration menu - View commit details
-
Copy full SHA for 716827d - Browse repository at this point
Copy the full SHA 716827dView commit details -
Modify order confirmation template for PS 1.7
Modify order confirmation template. Make it consistent with PrestaShop 1.7.
Configuration menu - View commit details
-
Copy full SHA for dc69238 - Browse repository at this point
Copy the full SHA dc69238View commit details -
Modify order payment error template for PS 1.7
Make it consistent with PrestaShop 1.7.
Configuration menu - View commit details
-
Copy full SHA for ccb521d - Browse repository at this point
Copy the full SHA ccb521dView commit details -
Override the display of page_content_container
Override the display of `page_content_container` in order payment error template, payment-error.tpl. This override prevents the unnecessary display of blank content that come from page.tpl which this template, payment-error.tpl, has extended.
Configuration menu - View commit details
-
Copy full SHA for d340b36 - Browse repository at this point
Copy the full SHA d340b36View commit details -
Configuration menu - View commit details
-
Copy full SHA for 174a656 - Browse repository at this point
Copy the full SHA 174a656View commit details
Commits on Oct 27, 2017
-
Configuration menu - View commit details
-
Copy full SHA for 1a9f642 - Browse repository at this point
Copy the full SHA 1a9f642View commit details
Commits on Oct 28, 2017
-
Prevent error notice at setting page on debug mode
In the setting page, it has a variable, `confirmation`. This variable is used for display the confirmation message when the merchant saved the setting. If merchant enabled the debug mode and open the setting page, the system displays the error message popup, Undefined index: confirmation. This problem is occurred because at the time that merchant open the setting page and does not save the setting. The variable, `confirmation`, has not been assigned any value from server side to display any message. This problem is not occurred in normal mode.
Configuration menu - View commit details
-
Copy full SHA for ec295ba - Browse repository at this point
Copy the full SHA ec295baView commit details -
Merge pull request #36 from omise/prevent-error-notice-at-setting-pag…
…e-on-debug-mode
Configuration menu - View commit details
-
Copy full SHA for 80e38ab - Browse repository at this point
Copy the full SHA 80e38abView commit details -
Modify hookPaymentOptions() to display IB option
Modify a function, Omise.hookPaymentOptions(). to display internet banking payment option.
Configuration menu - View commit details
-
Copy full SHA for 357c360 - Browse repository at this point
Copy the full SHA 357c360View commit details -
Remove an unnecessary <p> tag at IB form
Remove an unnecessary <p> tag in the internet banking payment form. This <p> tag contains <div>, which it is improper and it causes an error when the debug mode has been activated. In normal mode, the error does not appear. Reference: - W3C <p> tag recommendation, https://www.w3.org/TR/html401/struct/text.html#h-9.3.1
Configuration menu - View commit details
-
Copy full SHA for 8e842a3 - Browse repository at this point
Copy the full SHA 8e842a3View commit details -
Format HTML code in IB form, correct indentation
Format HTML code in the internet banking payment form, correct the indentation.
Configuration menu - View commit details
-
Copy full SHA for 1ebed5d - Browse repository at this point
Copy the full SHA 1ebed5dView commit details -
Remove submit payment button in IB payment form
Remove a submit payment button in internet banking payment form. The mechanism to submit payment in PrestaShop 1.7 has been changed to PrestaShop 1.7 will automatically generated a submit payment button. The payment module need to use this generated button to submit payment.
Configuration menu - View commit details
-
Copy full SHA for 07d92d3 - Browse repository at this point
Copy the full SHA 07d92d3View commit details -
Remove a header in internet banking payment form
PrestaShop 1.7 has the payment option displayed the name of each payment module. So, the header at the top of internet banking payment form is duplicated and unnecessary.
Configuration menu - View commit details
-
Copy full SHA for a357c9c - Browse repository at this point
Copy the full SHA a357c9cView commit details -
Remove client-side script at IB form
Remove client-side script, JavaScript, at internet banking payment form. The script will be re-written to make it work with PrestaShop 1.7 in the next commit.
Configuration menu - View commit details
-
Copy full SHA for 0382f32 - Browse repository at this point
Copy the full SHA 0382f32View commit details -
Correct the image path that display bank logo
Correct the image path that display bank logo in internet banking payment form.
Configuration menu - View commit details
-
Copy full SHA for b58125a - Browse repository at this point
Copy the full SHA b58125aView commit details -
Configuration menu - View commit details
-
Copy full SHA for cbfa36d - Browse repository at this point
Copy the full SHA cbfa36dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 16a1fca - Browse repository at this point
Copy the full SHA 16a1fcaView commit details
Commits on Oct 30, 2017
-
Correct invalid HTML tag in inapplicable template
Correct invalid HTML tag in inapplicable payment template.
Configuration menu - View commit details
-
Copy full SHA for 4013bf3 - Browse repository at this point
Copy the full SHA 4013bf3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 66dd81e - Browse repository at this point
Copy the full SHA 66dd81eView commit details -
This function was using with PrestaShop 1.6 but it is not using with PrestaShop 1.7.
Configuration menu - View commit details
-
Copy full SHA for b722c74 - Browse repository at this point
Copy the full SHA b722c74View commit details -
Remove duplicated condition, check currency
Remove duplicated condition, current currency checking. This logic has been refactored and used in functions, generateCardPaymentOption() and generateInternetBankingPaymentOption().
Configuration menu - View commit details
-
Copy full SHA for 4b5b8f9 - Browse repository at this point
Copy the full SHA 4b5b8f9View commit details -
Remove inapplicable IB payment template
Remove a function, displayInapplicableInternetBankingPayment(), that displayed inapplicable internet banking payment template. This template is not used. According to the refactoring, the message in template has been shared and used by using function, displayInapplicablePayment();
Configuration menu - View commit details
-
Copy full SHA for 100c1c5 - Browse repository at this point
Copy the full SHA 100c1c5View commit details -
Refactor, change payment to card payment
Currently, Omise payment module has more than one payment option (payment method), card payment and internet banking payment. Using word, payment, that is general for the payment module that has only one payment option is understandable but for the payment module that has more than one payment method, using specific word for each payment option is more understandable.
Configuration menu - View commit details
-
Copy full SHA for 7fc7d3b - Browse repository at this point
Copy the full SHA 7fc7d3bView commit details -
Configuration menu - View commit details
-
Copy full SHA for a887fdc - Browse repository at this point
Copy the full SHA a887fdcView commit details
Commits on Oct 31, 2017
-
Develop client-side script to submit IB payment
Develop client-side script, JavaScript, to submit internet banking payment to server side. The script was developed to work with PrestaShop 1.7.
Configuration menu - View commit details
-
Copy full SHA for d27a513 - Browse repository at this point
Copy the full SHA d27a513View commit details -
Show popup message, if no any bank selected
Display popup warning message before submit internet banking payment, if no any bank on internet banking payment form has been selected.
Configuration menu - View commit details
-
Copy full SHA for 0006885 - Browse repository at this point
Copy the full SHA 0006885View commit details -
Unuse deprecated function, Order.getOrderByCartId
Unuse a PrestaShop deprecated function Order.getOrderByCartId(). Use function, Order.getIdByCartId(), instead.
Configuration menu - View commit details
-
Copy full SHA for 49a4afd - Browse repository at this point
Copy the full SHA 49a4afdView commit details
Commits on Nov 1, 2017
-
Change HTML ID in IB form, separate by hyphen (-)
Change the HTML ID of elements in internet banking payment form. The style has been changed from camel case to be separated with hyphen.
Configuration menu - View commit details
-
Copy full SHA for 4a8eabf - Browse repository at this point
Copy the full SHA 4a8eabfView commit details -
Remove an unused CSS class, no-uniform
Remove an unused CSS class, no-uniform, in internet banking payment form. For PrestaShop 1.6, it requires this CSS rule to make the display of internet banking form consistent. But for PrestaShop 1.7, this CSS class, no-uniform, is not required.
Configuration menu - View commit details
-
Copy full SHA for a27382a - Browse repository at this point
Copy the full SHA a27382aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5e5ac28 - Browse repository at this point
Copy the full SHA 5e5ac28View commit details -
Configuration menu - View commit details
-
Copy full SHA for c7d7905 - Browse repository at this point
Copy the full SHA c7d7905View commit details -
Move unit test files correspond to the actual file
Move unit test files that tested controller classes to under the directory, front, correspond to the actual file.
Configuration menu - View commit details
-
Copy full SHA for 0690313 - Browse repository at this point
Copy the full SHA 0690313View commit details -
3DS, unuse deprecated function, getOrderByCartId()
For the 3-D Secure payment, unuse a PrestaShop deprecated function Order.getOrderByCartId(). Use function, Order.getIdByCartId(), instead.
Configuration menu - View commit details
-
Copy full SHA for 9875a27 - Browse repository at this point
Copy the full SHA 9875a27View commit details -
Charge class, unuse deprecated, getOrderByCartId()
For a class, OmiseChargeClass, unuse a PrestaShop deprecated function Order.getOrderByCartId(). Use function, Order.getIdByCartId(), instead.
Configuration menu - View commit details
-
Copy full SHA for 0389866 - Browse repository at this point
Copy the full SHA 0389866View commit details
Commits on Nov 2, 2017
-
Configuration menu - View commit details
-
Copy full SHA for 968c658 - Browse repository at this point
Copy the full SHA 968c658View commit details
Commits on Nov 4, 2017
-
Configuration menu - View commit details
-
Copy full SHA for 4a524b3 - Browse repository at this point
Copy the full SHA 4a524b3View commit details
Commits on Nov 6, 2017
-
Partially add unit test for a controller class
Partially add unit test cases for a controller class, OmiseReturnModuleFrontController. The unit test for this class can not be additionally added because this class has a hard dependency (new keyword) with a class, Order, and access to many public properties of Order class (e.g. $this->order->reference). This condition makes the mocking public property for hard dependency difficult. Another solution is adding a setter for the $this->order but this solution needs to modify the actual code that it is not requires in this time.
Configuration menu - View commit details
-
Copy full SHA for f443c21 - Browse repository at this point
Copy the full SHA f443c21View commit details -
Unit test, add a mocked method for base controller
Modify unit tests. Add a mocked method, l, to all unit test that related with OmiseBasePaymentModuleFrontController class.
Configuration menu - View commit details
-
Copy full SHA for a3a6e1e - Browse repository at this point
Copy the full SHA a3a6e1eView commit details -
Unit test, add missing Mockery container clean up
Add a missing Mockery container clean up for a unit test class, OmiseInternetBankingPaymentModuleFrontControllerTest. Without this clean up, it will has an error when run all unit test. The error is "The mock named '\Order' has been already defined".
Configuration menu - View commit details
-
Copy full SHA for 0ca4dd2 - Browse repository at this point
Copy the full SHA 0ca4dd2View commit details -
Unit test, extend MockeryTestCase & unuse m::close
Modify all unit tests that using Mockery. 1. Change the extend class from PHPUnit_Framework_TestCase to Mockery\Adapter\Phpunit\MockeryTestCase. 2. Remove all m::close(), after changed to extends from MockeryTestCase, the close method is automatically called. Reference: - http://docs.mockery.io/en/latest/reference/phpunit_integration.html
Configuration menu - View commit details
-
Copy full SHA for 52b1b73 - Browse repository at this point
Copy the full SHA 52b1b73View commit details
Commits on Nov 7, 2017
-
Refactor, change a param name of PaymentOrder.save
Modify a name of parameter of a function, PaymentOrder.save(). Change a name of parameter from $order_state to $id_order_state. Make the name consistent with PrestaShop. An example from PrestaShop function is PaymentModule.validateOrder(). A parameter that PaymentOrder.save() required is ID of order status. Using $order_state (before change) can be confused that it is the instance of OrderState class.
Configuration menu - View commit details
-
Copy full SHA for f2ebc84 - Browse repository at this point
Copy the full SHA f2ebc84View commit details -
Refactor, PaymentOrder.save() required order state
Modify a parameter of a function, PaymentOrder.save(). The $id_order_state is required.
Configuration menu - View commit details
-
Copy full SHA for c92a638 - Browse repository at this point
Copy the full SHA c92a638View commit details -
Saving an order can be specified payment method
Change parameters of function, PaymentOrder.save() Add a parameter, $payment_method, to the second input parameter.
Configuration menu - View commit details
-
Copy full SHA for a92c0b5 - Browse repository at this point
Copy the full SHA a92c0b5View commit details -
Remove a function, PaymentOrder.saveAsProcessing()
Makes the module has only one function, gate or place to save an order. A function that used to save an order is PaymentOrder.save().
Configuration menu - View commit details
-
Copy full SHA for de58ae7 - Browse repository at this point
Copy the full SHA de58ae7View commit details -
Change IB payment, save order with payment method
Change internet banking payment. Make it save an order with its payment method name.
Configuration menu - View commit details
-
Copy full SHA for 9c45de3 - Browse repository at this point
Copy the full SHA 9c45de3View commit details -
Change card payment save order with payment method
Change card payment. Make it save an order with its payment method name.
Configuration menu - View commit details
-
Copy full SHA for e340572 - Browse repository at this point
Copy the full SHA e340572View commit details -
Change 3DS payment, save order with payment method
Change 3-D Secure payment. Make it save an order with its payment method name.
Configuration menu - View commit details
-
Copy full SHA for aa74c2d - Browse repository at this point
Copy the full SHA aa74c2dView commit details -
Check module of saved order when return from Omise
Check the module name of saved order when return from Omise API. According to the payment method of saved order has been dynamically saved follows the payment method that customer selected. Such as card payment or internet banking payment. Therefor, payment method of saved order (order->payment) is variable. It can not be used to check whether the order is the order that made payment with Omise. So, using module name of saved order (order->module) to check with Omise.MODULE_NAME is properly.
Configuration menu - View commit details
-
Copy full SHA for ce9ebd3 - Browse repository at this point
Copy the full SHA ce9ebd3View commit details -
Modify unit tests follow the actual source code
Reduced the duplicated mocking source code by move it to the autoload.php.
Configuration menu - View commit details
-
Copy full SHA for 9befecc - Browse repository at this point
Copy the full SHA 9befeccView commit details
Commits on Nov 8, 2017
-
Configuration menu - View commit details
-
Copy full SHA for f215d2d - Browse repository at this point
Copy the full SHA f215d2dView commit details
Commits on Nov 11, 2017
-
Configuration menu - View commit details
-
Copy full SHA for 10faecc - Browse repository at this point
Copy the full SHA 10faeccView commit details -
Attach order ID to metadata when create IB charge
Attach order ID to metadata when create Omise internet banking charge.
Configuration menu - View commit details
-
Copy full SHA for e42e47a - Browse repository at this point
Copy the full SHA e42e47aView commit details
Commits on Nov 13, 2017
-
Add order ID to charge metadata for card payment
Append PrestaShop order ID to Omise charge metadata when creating a card payment (normal card payment and 3DS payment).
Configuration menu - View commit details
-
Copy full SHA for de76143 - Browse repository at this point
Copy the full SHA de76143View commit details -
Change flow when creating payment by card
This commit affects normal card payment only. 3DS payment is not affected. The objective of this commit is to append PrestaShop order ID to the metadata of Omise charge. The flow has been changed to save an order as processing at the first step and uses that generated order ID to append to the metadata of Omise charge.
Configuration menu - View commit details
-
Copy full SHA for dc4a32e - Browse repository at this point
Copy the full SHA dc4a32eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 24e35ff - Browse repository at this point
Copy the full SHA 24e35ffView commit details -
Configuration menu - View commit details
-
Copy full SHA for e5e0bc1 - Browse repository at this point
Copy the full SHA e5e0bc1View commit details -
Configuration menu - View commit details
-
Copy full SHA for d93257d - Browse repository at this point
Copy the full SHA d93257dView commit details
Commits on Nov 16, 2017
-
Configuration menu - View commit details
-
Copy full SHA for 05b53b5 - Browse repository at this point
Copy the full SHA 05b53b5View commit details -
Configuration menu - View commit details
-
Copy full SHA for e2513eb - Browse repository at this point
Copy the full SHA e2513ebView commit details
Commits on Nov 17, 2017
-
Add an empty front module controller for webhooks
Add a front office controller that will be used to handle the webhooks request from Omise server. For this commit, the controller has no any logic. It does only display the empty page. The logic will be implemented in the next commits.
Configuration menu - View commit details
-
Copy full SHA for e8e9c00 - Browse repository at this point
Copy the full SHA e8e9c00View commit details -
Configuration menu - View commit details
-
Copy full SHA for ce98674 - Browse repository at this point
Copy the full SHA ce98674View commit details
Commits on Nov 19, 2017
-
Develop a new class, OmiseLogger, for write log
This class wrapped the PrestaShop logger class, Logger. The Logger class requires some parameters which they are not required or compatibled with module such as $object_id or $object_type. The data type of $object_id is int but the data type of Omise object id is string or $object_type is the internal PrestaShop object, etc. So, the wrapper class, OmiseLogger, has reduced the parameters that it is not used by provides the necessary parameters, $message and $severity. And $severity is optional the default value of $severify is info log level. The same log message can be added to database because OmiseLogger has set a parameter, $allow_duplicate, to be true. It has the intent that the same log message but differnt time can be added to database.
Configuration menu - View commit details
-
Copy full SHA for 24f5e76 - Browse repository at this point
Copy the full SHA 24f5e76View commit details -
Add constants of Omise charge, failed & successful
Theses constants will be used for webhooks in the step of checking the status of charge.
Configuration menu - View commit details
-
Copy full SHA for 47918fa - Browse repository at this point
Copy the full SHA 47918faView commit details -
Add a function to get PS order ID from transaction
Add a function OmiseTransactionModel.getIdOrder(), to retrieve a PrestaShop order ID from omise transaction table. This function is search by using Omise charge ID.
Configuration menu - View commit details
-
Copy full SHA for d75524a - Browse repository at this point
Copy the full SHA d75524aView commit details
Commits on Nov 20, 2017
-
Configuration menu - View commit details
-
Copy full SHA for 83bf51e - Browse repository at this point
Copy the full SHA 83bf51eView commit details -
Add a unit test for OmiseEventHandler
The unit test in this commit has only one test case because in actual class, OmiseEventHandler, in has a static class attribute dependency, OmiseEventChargeComplete::KEY, and a hard dependency (new Keyword), new OmiseEventChargeComplete(), with the same class. This situation is hard to create mock for unit testing. So, a unit test case in this commit that test class, OmiseEventHandler, is the test case that across the dependency that hard to mock.
Configuration menu - View commit details
-
Copy full SHA for e15d012 - Browse repository at this point
Copy the full SHA e15d012View commit details -
Configuration menu - View commit details
-
Copy full SHA for 314cc4d - Browse repository at this point
Copy the full SHA 314cc4dView commit details
Commits on Nov 21, 2017
-
Remain status, processing, if charge is not paid
Remains the PrestaShop order status to be Processing in progress, if Omise charge is not paid. This commit has an objective to solve the possible problem of offsite payment such as internet banking payment that the notification from bank server to Omise server is delayed and Omise can not knows or updates the charge status. For the internet banking payment, when the payer completed their payment on bank website and bank redirects payer back to PrestaShop site. In this step, it is possible that the notification from bank server to Omise server can be deplayed or slower than the redirection of payer. This situation causes the charge status is pending and charge is not paid because Omise does not know the status of payment. So, it is safer that if the charge is not paid the PrestaShop order status still Processing in progress. Note: The implementation of webhooks to prevent this problem by correctly synchronize the charge information between PrestaShop order and Omise charge has been completed in the previous commits.
Configuration menu - View commit details
-
Copy full SHA for a2fbefe - Browse repository at this point
Copy the full SHA a2fbefeView commit details
Commits on Nov 23, 2017
-
Configuration menu - View commit details
-
Copy full SHA for 07b02c8 - Browse repository at this point
Copy the full SHA 07b02c8View commit details
Commits on Nov 28, 2017
-
Correctly handle the Omise charge status of paid
When the payer has been redirected back to PrestaShop, the module, Omise PrestaShop, will checks the information of Omise charge by request the information via Omise API. Before change: If Omise charge is NOT paid, the empty error message on the order confirmation page will be displayed. This result is not correct and properly because in this step, the PrestaShop order is valid and Omise charge is not failed. The status of Omise charge is not paid. It does not mean that the payment is error. After change: The success order confirmation page is display normally. Regardless of Omise charge status is paid or unpaid. The main objective of before change and after change still the same. If the Omise charge is paid, the PrestaShop order status will be updated to be success (Payment accepted).
Configuration menu - View commit details
-
Copy full SHA for f23dc15 - Browse repository at this point
Copy the full SHA f23dc15View commit details -
Merge pull request #48 from omise/correctly-handle-omise-charge-when-…
…redirect-back-to-prestashop
Configuration menu - View commit details
-
Copy full SHA for e2d7b0e - Browse repository at this point
Copy the full SHA e2d7b0eView commit details
Commits on Nov 29, 2017
-
Remove a condition checking PS order status
Remove a condition that checking current PrestaShop order status, when redirect payer back to PrestaShop site. This commit has an objective to solve a problem of internet banking payment. The problem occurs in the situation that; the redirection of payer back to PrestaShop site is slower than the payment result notification from bank to Omise and Omise charge of this payment is failed. This situation causes the invalid result message on PrestaShop order confirmation page. Note: Due to the offsite payment that has the redirection flow such as internet banking payment, including the implementation of Omise webhooks, it is possible that; - Omise charge is failed. - The notification from bank to Omise was passed or forwarded to the PrestaShop site via Omise webhooks FASTER THAN the redirection of payer to PrestaShop. - Omise PrestaShop handles this webhooks event by change the PrestaShop order status to be Canceled. So, this condition or situation causes the invalid result message on PrestaShop order confirmation page.
Configuration menu - View commit details
-
Copy full SHA for 7a1af48 - Browse repository at this point
Copy the full SHA 7a1af48View commit details -
Merge pull request #49 from omise/remove-checking-of-order-status-whe…
…n-redirect-back-to-prestashop
Configuration menu - View commit details
-
Copy full SHA for 215ee12 - Browse repository at this point
Copy the full SHA 215ee12View commit details