File tree 3 files changed +27
-4
lines changed
3 files changed +27
-4
lines changed Original file line number Diff line number Diff line change 5
5
6
6
function renderPaypal ( ) {
7
7
paypal . Buttons ( {
8
+
9
+
10
+ onInit : function ( data , actions ) {
11
+ // Set up the buttons.
12
+ if ( form . valid ( ) ) {
13
+ actions . enable ( )
14
+ }
15
+ else {
16
+ actions . disable ( ) ;
17
+ }
18
+
19
+ form . on ( 'blur keyup change' , 'input' , function ( event ) {
20
+ if ( form . valid ( ) ) {
21
+ actions . enable ( )
22
+ }
23
+ else {
24
+ actions . disable ( ) ;
25
+ }
26
+ } ) ;
27
+ } ,
28
+
8
29
createBillingAgreement : function ( data , actions ) {
9
30
10
31
var frequencyInterval = $ ( '#frequency_interval' ) . val ( ) || 1 ;
65
86
}
66
87
67
88
var paypalScriptURL = 'https://www.paypal.com/sdk/js?client-id=' + CRM . vars . omnipay . client_id + '¤cy=' + CRM . vars . omnipay . currency + '&commit=false&vault=true' ;
68
- CRM . loadScript ( paypalScriptURL , false )
69
- . done ( renderPaypal ) ;
89
+ CRM . loadScript ( paypalScriptURL , false ) . done ( renderPaypal ) ;
90
+
70
91
71
92
} ) ( CRM . $ ) ;
Original file line number Diff line number Diff line change 15
15
<url desc =" Licensing" >http://civicrm.org/licensing</url >
16
16
</urls >
17
17
<releaseDate >2019-07-07</releaseDate >
18
- <version >3.6 </version >
18
+ <version >3.7 </version >
19
19
<develStage >stable</develStage >
20
20
<compatibility >
21
- <ver >5.13 </ver >
21
+ <ver >5.17 </ver >
22
22
</compatibility >
23
23
<comments >This module integrates the omnipay library with CiviCRM. This release is for Omnipay 3.x and requires php 7.1. All new development will be here but 2.x series will continue to work.</comments >
24
24
<civix >
Original file line number Diff line number Diff line change @@ -101,6 +101,8 @@ function omnipaymultiprocessor_civicrm_alterSettingsFolders(&$metaDataFolders) {
101
101
102
102
function omnipaymultiprocessor_civicrm_preProcess ($ formName , &$ form ) {
103
103
if ($ formName === 'CRM_Contribute_Form_Contribution_Main ' ) {
104
+ $ form ->assign ('isJsValidate ' , TRUE );
105
+ CRM_Core_Resources::singleton ()->addVars ('form ' , ['suppressAlerts ' => 1 ]);
104
106
if (!empty ($ form ->_values ['is_recur ' ])) {
105
107
$ recurOptions = [
106
108
'is_recur_interval ' => $ form ->_values ['is_recur_interval ' ],
You can’t perform that action at this time.
0 commit comments