Skip to content
This repository has been archived by the owner on Oct 16, 2023. It is now read-only.

Feature: Add Payment Gateways block and make section act normal #53

Merged
merged 5 commits into from
Aug 17, 2022

Conversation

JasonTheAdams
Copy link
Contributor

Description

Up to this point the "payment details" section was special. It didn't actually conform to what the Form Builder did, as it was uniquely identified and rendered in the form code. In part, this was because there was no Payment Gateway block.

This PR introduces the Payment Gateway block and template, and normalizes how the section functions. Very likely we'll want to adjust how the template works in the future, as it currently relies on hooks that make it hard to override, but this is good enough for now. It's more important to get the section working normally so there isn't a disconnect between itself and the Form Builder.

We are still adding a couple hidden fields to that section. We'll want to move these at some point and determine where/how we'd like to add those critical fields.

Lastly, I took a moment to clean up some Classic template styles and make the Donation Summary look more like the original design.

Affects

The payment details section as a whole, really. Also, stylistically, I tweaked all sections for the Classic template to improve spacing between fields.

Visuals

image

Testing Instructions

Check that adding fields to the payments section now works, as well as moving things around.

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

@JasonTheAdams JasonTheAdams requested a review from kjohnson August 17, 2022 18:07
@JasonTheAdams JasonTheAdams self-assigned this Aug 17, 2022
Copy link
Contributor

@kjohnson kjohnson left a comment

Choose a reason for hiding this comment

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

Functionality looks good. Just a couple of changes to the Fields API node definition.

@github-actions
Copy link

A build of this branch is available at https://impress-org.github.io/givewp-next-gen/feature/improve-payments-section

@kjohnson kjohnson merged commit f2af02a into develop Aug 17, 2022
@JasonTheAdams JasonTheAdams deleted the feature/improve-payments-section branch August 17, 2022 19:36
@github-actions
Copy link

A build of this branch is available at https://impress-org.github.io/givewp-next-gen/develop

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants