Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Franky

    (@liedekef)

    Look at the hook eme_ipn_action: https://www.e-dynamics.be/wordpress/?cat=41

    Thread Starter jewseboy

    (@jewseboy)

    Thanks for the rely Frankie.

    I follow the concept. I want to send a an email to admin once the user had paid by paypal.

    add_action(’eme_insert_rsvp_action’,’paid_email_to_admin’);
    function paid_email_to_admin($booking) {

    }

    Is there an off the shelf solution or php code available to send an email to admin after user pays?

    Im not a programmer so if not Im going to have to try and outsource this to someone.

    Plugin Author Franky

    (@liedekef)

    Well, $booking is an array. See at the top of eme_rsvp.php for the array elements there are (function eme_new_booking).
    A simple example in your function would be:

    function paid_email_to_admin($booking) {
       $message=$booking['booking_id'];
       $subject="Booking payed";
       $to="[email protected]";
       mail($to,$subject,$message);
    }

    If you also want the event related:

    $event = eme_get_event($booking['event_id']);

    And then you can use e.g. $event[‘name’] in your $message too

    Thread Starter jewseboy

    (@jewseboy)

    Hi Franky

    Would you be able to implement this for me if I pay you as Im not a coder? or recommmend someone who knows your plugin who would complete this task for payment

    The time it would take me to try and explain this to a php coder on Upwork and then for them to implement it for the work needed would not be cost efficient.

    Plugin Author Franky

    (@liedekef)

    Sure I could. Mail me in private with what you want the mail to say.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Email admin after Paypal paymetn received?’ is closed to new replies.