Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author educatorteam

    (@educatorteam)

    Hi,

    You should be able to process Paypal postback using the following action hook:

    function my_process_edr_paypal_ipn() {
    // do something.
    }
    add_action( 'ib_educator_request_paypalipn', 'my_process_edr_paypal_ipn' );

    For the stripe payment method:

    function my_process_edr_stripe_token() {
    // do something.
    }
    add_action( 'ib_educator_request_stripe_token', 'my_process_edr_stripe_token' );
    Thread Starter vinnylinux

    (@vinnylinux)

    I mean, postback for changing status of the payment. Receiving a post from a payment processor and change the status later.

    Plugin Author educatorteam

    (@educatorteam)

    May I kindly ask you to provide more details as to what you’d like to accomplish? Currently, the plugin’s payment methods process replies from Paypal (IPN) and Stripe automatically. The payment status is automatically updated based on whether the payment was processed successfully or not.

    Thread Starter vinnylinux

    (@vinnylinux)

    I am using a payment method that sometimes delay payment processing. Then, it sends a post to a URL defined by me. I want to process this post and update the customer’s payment status.

    Where i could be do it?

    Plugin Author educatorteam

    (@educatorteam)

    Hi,

    In order to create a URL where the payment system should send a post, you could do the following:

    $postback_url = ib_edu_request_url( 'mypaymentslug' );

    To process the post response from the payment system:

    function my_process_payment_response() {
        if ( isset( $_POST['some-key'] ) ) {
            // do something.
        }
    }
    add_action( 'ib_educator_request_mypaymentslug', 'my_process_payment_response' );
    Thread Starter vinnylinux

    (@vinnylinux)

    thank you give me a way.

    i’ll do it

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Postback payment method’ is closed to new replies.