• Resolved David Bee

    (@davidbawiec)


    Again, back with another minor bug report:

    Shouldn’t process_invoice_payment_succeeded_event() include do_action( 'give_insert_payment', $payment->ID, $payment_data );? Currently, since it doesn’t, giveStripeAddDonationStripeAccount() doesn’t run and the donation Stripe account doesn’t get attached. As such, PHP throws a Notice on donation pages: Undefined index: type in /wp-content/plugins/give/includes/gateways/stripe/includes/admin/admin-actions.php on line 570.
    Alternately, maybe giveStripeAddDonationStripeAccount() should also be hooked into give_recurring_add_subscription_payment but that would require reworking giveStripeAddDonationStripeAccount() to work with the subscription object and not only the $donationData array. Food for thought.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Bug Report: Missing Stripe Account data throws PHP Notice’ is closed to new replies.