0

When staff attempt to use the Civi backend option:

'Contact > Events > Submit Credit Card Event Registration'

Entering a credit card into the embedded Stripe field and clicking 'Save' results in the error:

$Fatal Error Details = array:3 [ "message" => "Property 'currency' has not been set." "code" => null "exception" => BadMethodCallException {#1883 #message: "Property 'currency' has not been set."

  • Full error log is below.

  • Frontend event registration payments for these same events function correctly, no errors. Issue is isolated to backend Stripe payments for events.

  • Issue is isolated to backend Event Registration payments only. Using 'Contact > Contributions > New C/C Contribution' for a donation works correctly, no errors.

  • Option for 'Send Confirmation and Receipt' is un-checked/disabled.

  • In Stripe, an "Uncaptured" payment is created.

  • No Contribution record of any Status is created in Civi.

  • 'Civi > Admin > Localization' has 'Default Currency' set to 'USD'

  • 'Individual Event config > Fees' has 'Currency' set to 'USD'

  • These events all have available participant capacity.

Site details:

  • CiviCRM 5.69.2
  • Stripe Payment Processor 6.10.2
  • Payment Shared 1.2.20
  • Joomla 4.4.2 Stable

Full error log:

2024-02-07 08:49:20-0800 [error] $Fatal Error Details = array:3 [ "message" => "Property 'currency' has not been set." "code" => null "exception" => BadMethodCallException {#1883 #message: "Property 'currency' has not been set." #code: 0 #file: "/home/USER/public_html/administrator/components/com_civicrm/civicrm/Civi/Payment/PropertyBag.php" #line: 322 trace: { /home/USER/public_html/administrator/components/com_civicrm/civicrm/Civi/Payment/PropertyBag.php:322 { Civi\Payment\PropertyBag->get($prop, $label) › } › throw new \BadMethodCallException("Property '$prop' has not been set."); › } } /home/USER/public_html/administrator/components/com_civicrm/civicrm/Civi/Payment/PropertyBag.php:796 { …} /home/USER/public_html/media/civicrm/ext/stripe/CRM/Core/Payment/Stripe.php:259 { …} /home/USER/public_html/media/civicrm/ext/stripe/CRM/Core/Payment/Stripe.php:613 { …} /home/USER/public_html/administrator/components/com_civicrm/civicrm/CRM/Event/Form/Participant.php:953 { …} /home/USER/public_html/administrator/components/com_civicrm/civicrm/CRM/Event/Form/Participant.php:808 { …} /home/USER/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/Form.php:625 { …} /home/USER/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/QuickForm/Action/Upload.php:153 { …} /home/USER/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/QuickForm/Action/Upload.php:120 { …} /home/USER/public_html/administrator/components/com_civicrm/civicrm/packages/HTML/QuickForm/Controller.php:203 { …} /home/USER/public_html/administrator/components/com_civicrm/civicrm/packages/HTML/QuickForm/Page.php:103 { …} /home/USER/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/Controller.php:355 { …} /home/USER/public_html/administrator/components/com_civicrm/civicrm/CRM/Event/Page/Tab.php:100 { …} /home/USER/public_html/administrator/components/com_civicrm/civicrm/CRM/Event/Page/Tab.php:158 { …} /home/USER/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/Invoke.php:322 { …} /home/USER/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/Invoke.php:69 { …} /home/USER/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/Invoke.php:36 { …} /home/USER/public_html/administrator/components/com_civicrm/civicrm.php:121 { …} /home/USER/public_html/administrator/components/com_civicrm/civicrm.php:40 { …} /home/USER/public_html/libraries/src/Dispatcher/LegacyComponentDispatcher.php:71 { …} /home/USER/public_html/libraries/src/Dispatcher/LegacyComponentDispatcher.php:73 { …} /home/USER/public_html/libraries/src/Component/ComponentHelper.php:361 { …} /home/USER/public_html/libraries/src/Application/AdministratorApplication.php:143 { …} /home/USER/public_html/libraries/src/Application/AdministratorApplication.php:186 { …} /home/USER/public_html/libraries/src/Application/CMSApplication.php:293 { …} /home/USER/public_html/administrator/includes/app.php:61 { …} /home/USER/public_html/administrator/index.php:32 { …} } } ]

1 Answer 1

0

A proposed fix has just been written. Can you please check and give feedback on https://github.com/civicrm/civicrm-core/pull/29313

1
  • We have tested this PR on our Civi 5.69.2 and unfortunately we are getting the exact same error logged. Apologies for the delayed response. Thank you for the suggested fix though, we will keep digging!
    – MattEMBA
    Feb 15 at 19:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.