Changeset 2262091
- Timestamp:
- 03/16/2020 11:15:03 PM (6 years ago)
- Location:
- woo-voguepay/trunk
- Files:
-
- 2 edited
-
assets/woo-voguepay.js (modified) (1 diff)
-
includes/class.voguepay.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
woo-voguepay/trunk/assets/woo-voguepay.js
r1909082 r2262091 2 2 var processed=0; 3 3 4 var functionobj=function ( ) {4 var functionobj=function (transaction_id) { 5 5 processed=1; 6 6 setTimeout(function(){ 7 window.location=rd_url; 8 },5000); 7 var f = document.createElement('form'); 8 f.action=rd_url; 9 f.method='POST'; 10 11 12 var i=document.createElement('input'); 13 i.type='hidden'; 14 i.name='transaction_id'; 15 i.value=transaction_id; 16 f.appendChild(i); 17 18 document.body.appendChild(f); 19 f.submit(); 20 21 },5000); 9 22 } 10 23 -
woo-voguepay/trunk/includes/class.voguepay.php
r2262083 r2262091 24 24 { 25 25 $res = wp_remote_post( $this->notify_url, ['body'=>$_POST] ); 26 if($res['body']=="OK") header("Refresh:0");26 if( !is_wp_error($res) && isset($res['body'])){ if($res['body']=="OK") header("Refresh:0");} 27 27 } 28 28
Note: See TracChangeset
for help on using the changeset viewer.