CiviContribute hangs on confirmation when using Stripe Payment Processor
Overview
I'm supporting a non-profit org that is using civicontribute pages and Stripe payment processor. When we connected the contribute page to an event and had paid events, things worked fine. This was on a previous version of civiCRM and Stripe.
After doing an upgrade of both civiCRM and Stripe, when someone goes directly to the contribute page, they get to the 'confirm contribution', and the site just hangs, eventually does a 504 timeout.
Reproduction steps
- Click on Test (or LIVE) link to Contribution as anonymous.
- Fill out contribution details with test (or LIVE) credit card.
- Click confirmation button.
- Page hangs and creates a 504. CiviContribute test record is created and Stripe transaction is processed and 'Completed'.
Current behaviour
Error messages that appear: https://www.evernote.com/l/AOzke96mWP5Jo5rGrQVzG2fEhFxyA9qQQTM
Similar to below:
Deprecated code: Unknown property 'billing_country-5'. We have merged this in for now as a custom property. Please rewrite your code to use PropertyBag->setCustomProperty if it is a genuinely custom property, or a standardised setter like PropertyBag->setContactID for standard properties
Expected behaviour
- Click on Test or LIVE link to Contribution as anonymous.
- Fill out contribution details with test or LIVE credit card.
- Click confirmation button.
- Taken to thank you page. CiviContribute test record is created and Stripe transaction is processed and 'Completed'.
Environment information
- Browser: Firefox 72.0.1
- CiviCRM: 5.21.0
- PHP: 7.2
- CMS: Drupal 7.69
- Database: MySQL-5.5.5-10.0.23-MariaDB
- Web Server: nginx/1.8.1
Comments
This can be reproduced here with a test credit card: https://dev-hsc-civi.pantheonsite.io/civicrm/contribute/transact?reset=1&action=preview&id=2
I've set CiviContribute to use a dummy processor and that does seem to work, as the confirmation shows. But when switching to Stripe, it hangs.