• playdiune

    (@playdiune)


    Hello,

    First of all, thanks for this wonderfull plugin. At momment i am using the free version and i am with a big problem.

    My situation:
    – I am using standart membership
    – with option paid membership
    – two payment gateways (paypal and manual payment)

    When a user subscribes this membership and choses manual payment, i can check the created invoice with (pending payment).
    When i confirm myself the payment and change the status of the invoice for “payed”, the user doesnt receive any email.

    When i manualy change the status of the invoice from pending to payed, the user should receive an email confirmating the account is now active.

    * I have Additional Automated Messages enabled and all automated emails are turned on and should work properly.

    Hope you understand me ??

    Sorry about my English….

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Imran – WPMU DEV Support

    (@wpmudev-support9)

    Hello @playdiune,

    Hope you’re doing well!

    Payment notification email is not send when manually changing the payment status from the admin end. This feature has not been added yet to Membership 2. It has been added to feature development list.

    In the meantime, would you please try this workaround. Add the code bellow to functions.php of your theme:

    add_action( 'ms_gateway_manual_purchase_info_content_before', 'my_manual_payment_handler' );
    
    // This function is called, when the Manual Payment instructions are displayed on the front-end.
    // In the payment workflow this happens when the user clicks on the Manual-Payment button on the checkout page.
    function my_manual_payment_handler() {
        $api = ms_api();
        $member = $api->get_current_member();
    
        // Exit, if we could not find a valid user.
        if ( ! $member->is_valid() ) { return false; }
    
        $membership = $api->detect_membership();
    
        // Exit, if we cannot determine which membership the user signed up to.
        if ( ! $membership ) { return false; }
    
        // Now send an email to the admin.
        $email_to = get_option( 'admin_email' );
        $subject = 'New invoice';
        $message = sprintf(
            'Awesome, a new member :) Please send an invoice to "%s" for membership "%s"!',
            $member->email,
            $membership->name . ' (' . $membership->price . ')'
        );
    
        $sent = wp_mail( $email_to, $subject, $message );
    }

    This should enable notification email with a manual payment gateway. I’ve tested it on my site and it;s working well!

    Let me know how it went!

    Cheers,
    Nastia

    Thread Starter playdiune

    (@playdiune)

    Sorry, but not working on my site. ( i tested with a new user and nothing happens)

    From what I’m seeing this function sends an email to administrator.

    In my opinion, (and thats what i would like), everytime an administrator confirms a manual payment and manually changes the invoice status form “pending” to “paied” the membership plugin should send an email to the subscriber, Something like this

    “Hello, just to inform you that your manual payment was confirmed and your subscription is now active! and wil expire at … bla bla bla”

    is this possible ?

    Plugin Support Imran – WPMU DEV Support

    (@wpmudev-support9)

    Hello @playdiune, I trust all is well!

    As it was mentioned above, this feature is out of the box with Membership 2 plugin.

    A member can receive Subscription – Completed with payment notification gateway when using manual payments.

    It is already added to the plugin’s development list, though I can’t provide an ETA here.

    I’ve asked one of our developers to have a look at the code above. Once there is an update, I will update this thread.

    Kind regards,
    Nastia

    Thread Starter playdiune

    (@playdiune)

    Thanks a lot, i will be waiting ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘email for manual payment membership’ is closed to new replies.