Skip to content
Snippets Groups Projects
Commit 23317a2f authored by mattwire's avatar mattwire Committed by Rich
Browse files

Use mjwshared function to get the configured form currency as it's different for events.

parent 700b07d6
Branches
No related tags found
No related merge requests found
......@@ -306,7 +306,7 @@ class CRM_Core_Payment_Stripe extends CRM_Core_Payment {
public function buildForm(&$form) {
$jsVars = [
'id' => $form->_paymentProcessor['id'],
'currency' => $form->_values['currency'],
'currency' => $this->getDefaultCurrencyForForm($form),
'billingAddressID' => CRM_Core_BAO_LocationType::getBilling(),
'publishableKey' => CRM_Core_Payment_Stripe::getPublicKeyById($form->_paymentProcessor['id']),
'jsDebug' => TRUE,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment