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

Refactor: add support to the gateway webhook events API #67

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

glaubersilva
Copy link
Contributor

@glaubersilva glaubersilva commented Jan 10, 2025

Depends on impress-org/givewp#7664

Description

This PR refactors the OffSiteGateway sample to use the new gateway webhook events API to handle webhook notifications.

For better context check this PR description: impress-org/givewp#7664

Affects

The OffSiteGateway sample.

Visuals

image

image

Testing Instructions

  1. Pull this branch;
  2. Create a few test donations and on the Off-site Checkout Page Simulation click on the Send Webhook Notification To Change Donation Status To Complete ⭷ link;
  3. The Webhook Notification Handler page should be displayed and after clicking on the link there you should see the event for the webhook notification test created in the Action Scheduler list table.

Pre-review Checklist

  • Acceptance criteria satisfied and marked in related issue
  • Relevant @unreleased tags included in DocBlocks
  • Includes unit tests
  • Reviewed by the designer (if follows a design)
  • Self Review of code and UX completed

@glaubersilva glaubersilva marked this pull request as ready for review January 15, 2025 20:13
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.

1 participant