Version 5.0.0 beta 4
This commit is contained in:
1 parent
e86153356a
commit
2f24f9de48
276 files changed
+8614
-6044
No files matched your search
@@ -28,7 +28,7 @@ define('REPORT_EXCEPTIONS', TRUE);
|
||||
require_once '../../../../init.php';
|
||||
Front::i();
|
||||
|
||||
Output::i()->pageCaching = FALSE;
|
||||
Output::setCacheTime( false );
|
||||
|
||||
/**
|
||||
* PayPal Webhook Handler
|
||||
|
||||
@@ -27,7 +27,7 @@ define('REPORT_EXCEPTIONS', TRUE);
|
||||
require_once '../../../../init.php';
|
||||
Front::i();
|
||||
|
||||
Output::i()->pageCaching = FALSE;
|
||||
Output::setCacheTime( false );
|
||||
|
||||
/* Get the invoice */
|
||||
try
|
||||
|
||||
@@ -23,7 +23,7 @@ define('REPORT_EXCEPTIONS', TRUE);
|
||||
require_once '../../../../init.php';
|
||||
Front::i();
|
||||
|
||||
Output::i()->pageCaching = FALSE;
|
||||
Output::setCacheTime( false );
|
||||
|
||||
/* Little IN_DEV helper to prevent firing this until we've triggered the webhooks */
|
||||
if ( \IPS\IN_DEV and !isset( Request::i()->indevconfirm ) )
|
||||
|
||||
@@ -29,7 +29,7 @@ define('REPORT_EXCEPTIONS', TRUE);
|
||||
require_once '../../../../init.php';
|
||||
Front::i();
|
||||
|
||||
Output::i()->pageCaching = FALSE;
|
||||
Output::setCacheTime( false );
|
||||
|
||||
/**
|
||||
* Stripe Webhook Handler
|
||||
|
||||
@@ -47,7 +47,7 @@ class Api
|
||||
*/
|
||||
public function error( int $code, string $message ) : void
|
||||
{
|
||||
Output::i()->pageCaching = FALSE;
|
||||
Output::setCacheTime( false );
|
||||
Output::i()->sendOutput( json_encode( array( 'errorCode' => $code, 'errorMessage' => $message ) ), 400, 'application/json' );
|
||||
}
|
||||
|
||||
@@ -192,8 +192,8 @@ class Api
|
||||
$key->save();
|
||||
|
||||
Customer::load( $key->member )->log( 'lkey', array( 'type' => 'activated', 'key' => $key->key, 'ps_id' => $key->purchase->id ), FALSE );
|
||||
|
||||
Output::i()->pageCaching = FALSE;
|
||||
|
||||
Output::setCacheTime( false );
|
||||
Output::i()->sendOutput( json_encode( array( 'response' => 'OKAY', 'usage_id' => $k ) ), 200, 'application/json' );
|
||||
}
|
||||
|
||||
@@ -310,8 +310,8 @@ class Api
|
||||
$activateData[ Request::i()->usage_id ]['extra'] = isset( Request::i()->extra ) ? json_decode( Request::i()->extra ) : NULL;
|
||||
$key->activate_data = $activateData;
|
||||
$key->save();
|
||||
|
||||
Output::i()->pageCaching = FALSE;
|
||||
|
||||
Output::setCacheTime( false );
|
||||
Output::i()->sendOutput( json_encode( array( 'status' => 'OKAY' ) ), 200, 'application/json' );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user