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

Incorrect Payment Details Displayed in PDF Invoice for WordCamp Ahmedabad 2025 Booking #1427

Open
tirth-doshi-techno opened this issue Nov 13, 2024 · 1 comment

Comments

@tirth-doshi-techno
Copy link

Describe the bug

During the ticket booking process for WordCamp Ahmedabad 2025, when ABC completes the payment through Google Pay, the confirmation email is incorrectly sent to the secondary user listed on the booking. Additionally, the attached PDF invoice displays the secondary user’s name as the payer, despite ABC being the one who completed the payment. This misrepresentation causes confusion about the payer’s identity in the official record.

To reproduce

  1. Start the booking process for WordCamp Ahmedabad 2025.
  2. Enter Payer's name as the primary attendee.
  3. Add a secondary attendee under the same booking.
  4. Complete the payment via Google Pay, with same name as the Primary name.
  5. Review the confirmation email sent after the transaction.

Expected behavior

The confirmation email and PDF invoice should be sent to Payer's name as the primary attendee and payer. The PDF should correctly display Payer's name as the payer, irrespective of additional attendees in the booking.

Screenshots

Confirmation Message on WordCamp website
Image

Payment Details Displaying Secondary User’s Name
Image

Website URL

WordCamp Ahmedabad 2025

@dd32
Copy link
Member

dd32 commented Nov 28, 2024

This is caused by the Instamojo code looping over the attendees and using the last attendee as the one on record:

foreach ( $attendees as $attendee ) {
$tix_id = get_post( get_post_meta( $attendee->ID, 'tix_ticket_id', true ) );
$attendee_questions = get_post_meta( $attendee->ID, 'tix_questions', true ); // Array of Attendee Questons
$email = $attendee->tix_email;
$name = $attendee->tix_first_name . ' ' . $attendee->tix_last_name;
}

'buyer_name' => $name,
'redirect_url' => $return_url,
'send_email' => false,
'webhook' => $notify_url,
'send_sms' => false,
'email' => $email,

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

No branches or pull requests

2 participants