Skip to content

Intermittent failure to create GiveWP records via PayPal Donations Gateway #8245

Description

@peal333

Title: Intermittent Failure: PayPal Donations Gateway fails to create GiveWP donation records.

User Story
As a donor, I expect to receive an automated email receipt immediately following a successful PayPal transaction.

Problem Statement
A subset of successful PayPal transactions are failing to trigger the GiveWP database entry creation. Because no record is created in the wp_give_forms (or relevant) tables, no automated emails are dispatched, requiring manual CSV imports to rectify.

Observed Behavior

  • Transaction Status: Successful in PayPal Dashboard.
  • GiveWP Status: No record created (not even in 'Pending' state).
  • Email Status: Not sent.
  • Frequency: Estimated at 5% of total transactions.

Technical Observations & Hypotheses

  • Data Integrity: The issue is not a failure of the email service, but a possible failure of the PayPal Donations Gateway integration. I checked all database tables and no tables are corrupted. Website is hosted on Siteground with cron setup to run every 15 minutes so reachability should not be an issue.
  • Nonce Expiration: Investigated potential nonce expiration due to session timeouts but the issue persists.
  • Environment: Potential correlation with mobile browser redirects, though not yet confirmed via logs.

Steps to Reproduce
Currently non-reproducible in a staging environment.

Requested Investigation

  1. Why donation records are not being created at all even when a PayPal donation is successfully made.

Attachments

  • [Attached Code: Nonce fix attempt]

givewp-nonce-checker.php

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugExisting functionality is broken

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions