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

Add Omise Setting page (separate between general settings and payment method settings) #61

Merged
merged 6 commits into from Sep 8, 2017

Conversation

guzzilar
Copy link
Contributor

@guzzilar guzzilar commented Sep 7, 2017

1. Objective

Previously, Omise configs were located under the WooCommerce > Checkout > Omise Credit / Debit Card page, which is in fact, these configs will be used for other payment methods as well.
Without having its own separated page could confusing user on the setting (i.e. user sets pkey/skey at Credit Card payment method but can also use for IB and Alipay).

Also, Webhook feature is coming. Means we need to have some place to have a webhook url setting and it shouldn't be under the WooCommerce > Checkout > Omise Credit / Debit Card or other payment method pages.

Related information:
Related issue(s): 🙅

2. Description of change

  1. Setting page under the Omise menu at WordPress admin page.
    screencapture-127-0-0-1-wp-admin-admin-php-1504799768907

  2. Removed Payment Settings section from WooCommerce > Checkout > Omise Credit / Debit Card page.
    screencapture-127-0-0-1-wp-admin-admin-php-1504800149487

3. Quality assurance

🔧 Environments:

  • WordPress: 3.8.1
  • WooCommerce: 3.1.2.
  • PHP: 5.6.30

✏️ Details:

  1. Make sure that this implementation won't cause any trouble with the current settings that has been set at the previous setting page.

    1.1 Assume that a user already installed Omise and config his public/ secret keys at his store (if not, then install Omise-WooComemrce v3.0 and setup first).

    1.2. Deploy this PR.

    1.3. Then go to Omise new setting page, your current settings should be displayed there properly.

  2. Make sure that your store can perform checkout with credit card and other payment methods properly

    2.1 Continue from [1]. Without any extra steps, your store should still work as normal.

  3. Make sure that user can setup new Omise-WooCommerce plugin and able to config his Omise settings properly.

    3.1 Assume that user just about to installs Omise for the first time (if not, then re-install WordPree & WooCommerce & Omise from scratch).

    3.2 Test config public / secret keys and enable test mode.

    3.3 Your config should be persisted there.

  4. Make sure that you can use your keys from step [3] to make charge with any payment methods (Credit / Debit Card, Alipay, Internet Banking).

4. Impact of the change

No

5. Priority of change

Normal

6. Additional Notes

No

Why? Because previously, these configs were located under the 'WooCommerce > Checkout > Omise Credit / Debit Card' page, which is in fact, these configs will be used for other payment methods as well.
Without having its own separated page could confusing user on the setting (i.e. user sets pkey/skey at Credit Card payment method but can also use for IB and Alipay).

Also, Webhook feature is coming. Means we need to have some place to have a webhook url setting and it shouldn't be 'WooCommerce > Checkout > Omise Credit / Debit Card' nor other payment method pages.
…it Card' setting page.

For the reason, please read the previous commit message.
@guzzilar
Copy link
Contributor Author

guzzilar commented Sep 8, 2017

👍

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.

None yet

1 participant