Skip to content

Change minimum amount for installment payments from 3000 to 2000 THB#210

Merged
kan98 merged 1 commit intoomise:masterfrom
som-m:master
Apr 19, 2021
Merged

Change minimum amount for installment payments from 3000 to 2000 THB#210
kan98 merged 1 commit intoomise:masterfrom
som-m:master

Conversation

@som-m
Copy link
Copy Markdown
Contributor

@som-m som-m commented Mar 23, 2021

0. To-Do

1. Objective

Change the display amount for installment payments from 3000 to 2000 THB WooCommerce.
Reference: https://www.omise.co/installment-payments#limits

Related information:
Related issue(s): #209
Related PR(s): #211
Internal task(s): CS-649

2. Description of change

Change the display amount for installment payments from 3000 to 2000 THB. This is shown installment is selected and the amount is less than 2000 THB.

3. Quality assurance

🔧 Environments:

  • WooCommerce: v5.1.0
  • WordPress: v5.6.1
  • PHP: v7.3.8
  • Omise PHP: v2.13.0
  • Omise WooCommerce: v4.7

✏️ Details:

  1. Enable installment payment on WordPress Admin.
  2. Go to storefront, order and checkout with amount >= 2000 THB.

Installment option should appear when the amount is at least 2000 THB. Otherwise, this message should be displayed:
There are no installment plans available for this purchase amount (minimum amount is 2,000 THB).

4. Impact of the change

The correct minimum amount is shown.

Chanapa 2021-04-12 at 11 32 42 AM

5. Priority of change

Normal

6. Additional Notes

n/a

@som-m som-m marked this pull request as ready for review April 8, 2021 06:47
@kan98 kan98 requested review from danfowler, kan98 and rezigned April 9, 2021 06:45
Copy link
Copy Markdown

@zentetsukenz zentetsukenz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Copy Markdown
Contributor

@kan98 kan98 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it might be beneficial to add a unit test to check we can create a 2,000 THB installment and a test that we can't create installments below that.

@kan98 kan98 merged commit 3eeb5b6 into omise:master Apr 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants