how can one create a return url directing to different

how can one create a return url directing to different page, that is, after payment and the confirm button is clicked.

plugin - Pay Per View

Thanks in advance

  • PC

    Hey there,

    Thanks for posting on the forums.

    Pay Per View is designed to charge the users on a per view basis and returns the buyer to the page where he started from so that if he is buying on per view, he can view the post he purchased.

    If you are using PayPal express, you can edit the below file and look for the code below :

    File : pay-per-view/includes/paypal-express.php

    $this->returnURL = get_permalink($post_id) . "?ppw_confirm=1";
    		$this->cancelURL = get_permalink($post_id) . "?cancel=1";

    That will allow you to change the URL to whatever you want.

    I hope that helps. Please feel free to ask if you have more questions.

    Cheers, PC

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.