Plugin Directory

Changeset 2262091


Ignore:
Timestamp:
03/16/2020 11:15:03 PM (6 years ago)
Author:
kunlexzy
Message:

1.5.4

Location:
woo-voguepay/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • woo-voguepay/trunk/assets/woo-voguepay.js

    r1909082 r2262091  
    22var processed=0;
    33
    4 var functionobj=function () {
     4var functionobj=function (transaction_id) {
    55     processed=1;
    66      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);
    922  }
    1023
  • woo-voguepay/trunk/includes/class.voguepay.php

    r2262083 r2262091  
    2424        {
    2525           $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");}
    2727        }
    2828
Note: See TracChangeset for help on using the changeset viewer.