• Resolved 5lions

    (@5lions)


    REALLY need to be able to redirect to a custom page after someone makes a successful payment so I can give them information on how to AVOID scams and give them a big THANK YOU.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Greg Winiarski

    (@gwin)

    What payment method are you using? The default Payments Module or WooCommerce integration? and if you are using Payments Module then what Payment Gateway are you using (Stripe, PayPal or Bank Transfer)?

    Thread Starter 5lions

    (@5lions)

    Payment module with paypal.

    Plugin Author Greg Winiarski

    (@gwin)

    Ok, so if i understand correctly, then after a successful payment, you would like to select to which page PayPal should redirect the user?

    If so then right now i am afraid the only option to do that is to open a file wpadverts-paypal-standard/wpadverts-paypal-standard.php go to line about 233 and change the line

    
    $return_url = add_query_arg( array('adverts-notify-id'=>$data["payment_id"]), get_permalink( $data["page_id" ]));
    

    to your selected URL for example

    
    $return_url = "https://example.com/my/success/page/";
    

    Note that the changes you will make in this file will be overwritten on WPAdverts PayPal update.

    That being said in the next release i will add some filter or option which will allow changing the success page without modifying original files.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘REDIRECT after successful payment’ is closed to new replies.