move integration date into constant

This commit is contained in:
David Remer 2020-10-08 07:28:43 +03:00
parent d865b4f8fc
commit 63f223c69d
2 changed files with 3 additions and 2 deletions

View file

@ -693,8 +693,7 @@ class SmartButton implements SmartButtonInterface {
'client-id' => $this->client_id,
'currency' => get_woocommerce_currency(),
'locale' => get_user_locale(),
// ToDo: Update date on releases.
'integration-date' => gmdate( 'Y-m-d' ),
'integration-date' => PAYPAL_INTEGRATION_DATE,
'components' => implode( ',', $this->components() ),
'vault' => $this->can_save_vault_token() ?
'true' : 'false',

View file

@ -24,6 +24,8 @@ use Dhii\Modular\Module\ModuleInterface;
define( 'PAYPAL_API_URL', 'https://api.paypal.com' );
define( 'PAYPAL_SANDBOX_API_URL', 'https://api.sandbox.paypal.com' );
// @ToDo: Update date on releases.
define( 'PAYPAL_INTEGRATION_DATE', gmdate( 'Y-m-d' ));
// @ToDo: Real connect.woocommerce.com production link.
define( 'CONNECT_WOO_URL', 'http://connect-woo.wpcust.com/ppc' );