Skip to content
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

Fix for unable to select some installment terms #195

Merged
merged 3 commits into from
May 13, 2019

Conversation

jacstn
Copy link
Contributor

@jacstn jacstn commented May 13, 2019

1. Objective

This PR fix issue that the user cannot select some terms.

Currently selectable is the only number of installments (terms) that exists in each of Installment options.
For instance, 5 installments are available only Krungthai Card option so they are not selectable.
10 installments are available in each option so they are selectable for a user.

2. Description of change

This PR separates observables for terms of each installment option.
Each installment brand has own terms observable.
It used to be single observable for all brand's terms.

3. Quality assurance

  • Platform version: Magento CE 2.2.3.
  • Omise plugin version: Omise-Magento 2.8-dev.
  • PHP version: 7.0.19.

✏️ Details:

To manually test that PR you need to make payment with installment number that is not available in all options (ie. 5 installments using KTC) and make payment using terms available in all options (ie. 10 installments in BAY)

4. Impact of the change

N/A

5. Priority of change

Normal

@jacstn jacstn requested review from jonrandy and guzzilar May 13, 2019 05:56
@jacstn jacstn changed the title Fix for unable to select some number of installments Fix for unable to select some installment terms May 13, 2019
@jacstn jacstn force-pushed the 2-cant-select-interests-fix branch 2 times, most recently from 74844b4 to 11145f9 Compare May 13, 2019 06:03
@jacstn jacstn force-pushed the 2-cant-select-interests-fix branch from 11145f9 to c1f249e Compare May 13, 2019 07:24
@jacstn jacstn merged commit 56fc441 into master May 13, 2019
@jacstn jacstn deleted the 2-cant-select-interests-fix branch May 13, 2019 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants