Bug Report: Missing Stripe Account data throws PHP Notice
-
Again, back with another minor bug report:
Shouldn’t
process_invoice_payment_succeeded_event()
includedo_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, maybegiveStripeAddDonationStripeAccount()
should also be hooked intogive_recurring_add_subscription_payment
but that would require reworkinggiveStripeAddDonationStripeAccount()
to work with the subscription object and not only the $donationData array. Food for thought.
- The topic ‘Bug Report: Missing Stripe Account data throws PHP Notice’ is closed to new replies.