Commit 41821f82 authored by mattwire's avatar mattwire
Browse files

Release 0.9.10. Add getBillingEmail/getBillingName

parent 6b0eef69
......@@ -9,6 +9,10 @@ Releases use the following numbering system:
* **[BC]**: Items marked with [BC] indicate a breaking change that will require updates to your code if you are using that code in your extension.
## Release 0.9.10
* Add `getBillingEmail()` and `getBillingName()` functions to CRM.payment library.
## Release 0.9.9
* Trap and log exceptions triggered when calling repeatcontribution.
......
......@@ -14,8 +14,8 @@
<url desc="Release Notes">https://lab.civicrm.org/extensions/mjwshared/-/blob/master/docs/releasenotes.md</url>
<url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url>
</urls>
<releaseDate>2020-12-07</releaseDate>
<version>0.9.9</version>
<releaseDate>2020-12-30</releaseDate>
<version>0.9.10</version>
<develStage>stable</develStage>
<compatibility>
<ver>5.28</ver>
......
......@@ -170,6 +170,26 @@
return isRecur;
},
/**
* Try and get the billing email(s) from the form
* @returns {string} separated by ;
*/
getBillingEmail: function() {
var billingEmail = '';
$(this.form).find('input.email').each(function() { billingEmail += $(this).val() + ';'; });
return billingEmail;
},
/**
* Try and get the billing contact name from the form
* @returns {string} separated by ;
*/
getBillingName: function() {
var billingName = '';
$(this.form).find('input#first_name,input#last_name').each(function() { billingName += $(this).val() + ';'; });
return billingName;
},
/**
* Is the AJAX request a payment form?
* @param {string} url
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment