• Resolved Enrique J. Ros

    (@enriquejros)


    Hi there

    After updating to 3.1.2 links ?edd_action=straight_to_gateway don’t work, they reload the page. Rolling back to 3.1.1.4.2 fixes the issue.

    Regards.

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

    (@cklosows)

    @enriquejros

    How are you generating your straight to gateway links?

    Thread Starter Enrique J. Ros

    (@enriquejros)

    Plugin Contributor Robin Cornett

    (@littlerchicken)

    Hi Enrique, thank you for the report. I’ve confirmed the behavior and we will have this sorted in the next release.

    In the meantime, if you are comfortable editing a file in EDD, you can update to 3.1.2 again and edit the edd_process_straight_to_gateway function (in includes/process-purchase.php, beginning at line 1311) to remove the early return that’s causing this behavior, either by deleting these lines:

    	if ( empty( $data['edd_straight_to_gateway'] ) || ! wp_verify_nonce( $data['edd_straight_to_gateway'], 'edd_straight_to_gateway' ) ) {
    		return;
    	}

    Or you can just comment out that return; and the function will work as you expect. (Please make sure you have backups before editing files, just to be on the safe side.)

    Thank you again!

    Thread Starter Enrique J. Ros

    (@enriquejros)

    That solved the issue, thank you! Anyway, some time ago the link straight_to_gateway used to get the customer straight to the payment gateway (PayPal in my case); now (I don’t know since when) the customer is taken to the checkout process. Is there a way to take the customer to PayPal without having to check out?

    Plugin Support Mihai Joldis

    (@misulicus)

    The only option would be to use the Buy Now behaviour on your Downloads. To use that you need to have a payment gateway active that supports that (Stripe/PayPal).

    When you edit your downloads, the Button Behaviour setting can be then changed to Buy Now instead of Add to Cart.

    Thread Starter Enrique J. Ros

    (@enriquejros)

    Thank you

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Straight to download not working in 3.1.2’ is closed to new replies.