Easy-digital-downloads: White screen when completing a purchase

Created on 7 May 2019  路  12Comments  路  Source: easydigitaldownloads/easy-digital-downloads

This happens when no payment method is activated. It may not be a serious problem, but I believe that white screen is not a good way of presenting something that went wrong for a user

There should be a message saying that no method was selected or anything of the sort

Steps to reproduce the behavior

1.Disable all payment methods

  1. Choose a product
  2. fill in the form (Personal Info)
  3. click 2 or 3x consecutively on the button to finalize the purchase

PHP Version:
PHP 7.2
EDD Version (or branch):
EDD v 2.9.12
WordPress Version:
wp version 5.2
Any other relevant information:

component-checkout type-bug

All 12 comments

Sorry for my English. I am using the translator

Thanks for the report. I'll get something worked up.

We show a notice on the checkout if no gateways are defined, we should probably just hide the ability to complete the purchase if there isn't a gateway enabled.

@cklosowski Can't go through the purchase process with a 0.00 cart total on issue/7247. Free Downloads works, but the Complete Purchase button on checkout isn't present when Free Downloads is not in use, and the cart total is 0.00.

I think free payments should still work with no gateway enabled, if possible.

@SDavisMedia good find, fixing

@SDavisMedia actually....I'm not sure that'll work...you'd at least need the test gateway, otherwise it can't set a gateway on the purchase, but i'll see what I can do.

@cklosowski Is Free Downloads bypassing something to make it work? Not saying that's right, but the inconsistency would probably raise some eyebrows. This whole thing is rare anyway, I'm sure.

@SDavisMedia yeah it's hard setting the gateway when you use Free Downloads, since it creates the purchase record in the background.

@SDavisMedia it seemed to work, give it a try?

:+1: Appears to be working correctly for me as well. 0.00 carts work, Free Downloads works, carts with a total work, Recurring does not work with a free trial (good thing). I'm not seeing any weird behavior.

Thanks @SDavisMedia I'll get @pippinsplugins to review it since this affects checkout before we merge.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mindctrl picture mindctrl  路  4Comments

DrewAPicture picture DrewAPicture  路  5Comments

JeroenSormani picture JeroenSormani  路  5Comments

davidsherlock picture davidsherlock  路  4Comments

michaelbeil picture michaelbeil  路  5Comments