Hook to execute an action on form completion, salesforce, and read only questions. Follow up with Amanda (111884) #6148
-
Hi Jason + GiveWP team!
Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I would probably suggest the See /**
* Fires while inserting payments.
*
* @since 1.0
*
* @param int $payment_id The payment ID.
* @param array $payment_data Arguments passed.
*/
do_action( 'give_insert_payment', $payment->ID, $payment_data ); As for programmatically creating donations, I would suggest the $paymentData = [
//
];
give_insert_payment( $paymentData ); |
Beta Was this translation helpful? Give feedback.
-
In regards to Salesforce we recently released an official Salesforce add-on for GiveWP. Otherwise, you could use the |
Beta Was this translation helpful? Give feedback.
I would probably suggest the
give_insert_payment
hook for custom code after a donation is created.See
give/includes/payments/functions.php
As for programmatically creating donations, I would suggest the
give_insert_payment( $paymentData )
function. There is not a provided REST API Endpoint for creating a payment, but the function is public access.