impress-org / givewp

GiveWP - The #1 Donation Plugin for WordPress. Easily accept donations and fundraise using your WordPress website.
https://givewp.com/
GNU General Public License v3.0
345 stars 191 forks source link

WordPress functions should return updated result for donation, form and donor #6516

Closed ravinderk closed 1 year ago

ravinderk commented 2 years ago

Details

PDF receipt add-on email tags stop working with the recent GiveWP version. The donor does not get the receipt pdf link in the donation completion email when donating with the Stripe credit card. I discovered that WordPress returns result from an object cache (if exists) for a given post type. WordPress maintains a post object cache only if the post is updated with WordPress functions. WordPress does not update object cache if we update donation, form, and donor with a direct SQL query. To prevent frequent issues about the inconsistent results from the WordPress function, either we have to flush the cache with clean_post_cache or update the cache with update_post_cache.

Expected Behavior

The WordPress get post functions should return live results.

Steps to Reproduce

  1. Activate the PDF receipt add-on and GiveWP
  2. Add {pdf_receipt} email tag in donor new donation email notification
  3. Donate with Stripe credit card payment method
  4. View the pdf recept link in the email notification.

Acceptance Criteria

canny[bot] commented 2 years ago

This issue has been linked to a Canny post: PDF Receipt download link isn't generating for Stripe Donations :tada:

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 14 additional days. Note, if this Issue is reporting a bug, please reach out to our support at https://givewp.com/support. If this is a feature request, please see our feedback board at feedback.givewp.com — that’s the best place to make feature requests, unless you’re providing a PR.

github-actions[bot] commented 1 year ago

This issue was closed because it has been stalled for an additional 14 days with no activity.