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

Added dynamic webhook #407

Merged
merged 27 commits into from
Oct 16, 2023
Merged

Conversation

aashishgurung
Copy link
Contributor

1. Objective

Add a setting to enable dynamic webhook. If enabled, the webhook will be sent in the request body of charge.

2. Description of change

  • Added a setting to enable dynamic webhook
  • Updated charge() to pass webhook only if dynamic webhook option is selected.
  • Refactored some files.
  • Added tests.
Screenshot 2566-10-12 at 09 13 38

3. Quality assurance

Added a test and did manual testing

🔧 Environments:

Specify the details of your test environments, including, for each, the platform version (on which the plugin was run), the Omise plugin version, and the versions of your system software such as PHP or Ruby.

i.e.

  • WooCommerce: v4.3.0
  • WordPress: v5.4.2
  • PHP version: 7.3.3
  • Omise plugin version: Omise-WooCommerce 4.3 (optional, in case of submitting a new issue)

✏️ Details:

Explain how to manually test this feature.
For example if changes were made in the UI or in the API, explain where and if any specific access is needed.

4. Impact of the change

List the steps that must be taken for this PR to work.
E.g.: rake yak:shave, Add "yak_key" to environment variables, ...

Be sure to include all systems that needs to be changed or which system is affected by the change
(Ex: Requires Elastic search to be installed and configured in secrets.yml).

Note: Please provide a screenshot if your changed impact to UI.

5. Priority of change

Normal, High or Immediate.

6. Additional Notes

Any further information that you would like to add.

@aashishgurung aashishgurung requested review from danfowler and a team October 12, 2023 02:18
@aashishgurung aashishgurung requested a review from a team October 12, 2023 05:07
ajzkk
ajzkk previously approved these changes Oct 16, 2023
tests/unit/includes/class-omise-setting-test.php Outdated Show resolved Hide resolved
@aashishgurung aashishgurung requested a review from a team October 16, 2023 02:26
@aashishgurung aashishgurung merged commit 3cbd9d5 into develop Oct 16, 2023
3 checks passed
@aashishgurung aashishgurung deleted the feature/MIT-1894-dynamic-webhook branch October 16, 2023 03:01
@aashishgurung aashishgurung mentioned this pull request Oct 17, 2023
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.

None yet

3 participants