@enriquejros
How are you generating your straight to gateway links?
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!
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?
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.