* @param array $formValues
*/
public function testSubmit(array $formValues): void {
+ $this->exportedValues = $formValues;
$this->setContextVariables($formValues);
$this->_memType = $formValues['membership_type_id'][1];
$this->_params = $formValues;
];
}
+ /**
+ * Get the currency in use.
+ *
+ * This just defaults to getting the default currency
+ * as other currencies are not supported on the membership
+ * forms at the moment.
+ *
+ * @param array $submittedValues
+ *
+ * @return string
+ */
+ public function getCurrency($submittedValues = []): string {
+ return CRM_Core_Config::singleton()->defaultCurrency;
+ }
+
}