mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 14:57:26 +08:00
move integration date into constant
This commit is contained in:
parent
d865b4f8fc
commit
63f223c69d
2 changed files with 3 additions and 2 deletions
|
@ -693,8 +693,7 @@ class SmartButton implements SmartButtonInterface {
|
||||||
'client-id' => $this->client_id,
|
'client-id' => $this->client_id,
|
||||||
'currency' => get_woocommerce_currency(),
|
'currency' => get_woocommerce_currency(),
|
||||||
'locale' => get_user_locale(),
|
'locale' => get_user_locale(),
|
||||||
// ToDo: Update date on releases.
|
'integration-date' => PAYPAL_INTEGRATION_DATE,
|
||||||
'integration-date' => gmdate( 'Y-m-d' ),
|
|
||||||
'components' => implode( ',', $this->components() ),
|
'components' => implode( ',', $this->components() ),
|
||||||
'vault' => $this->can_save_vault_token() ?
|
'vault' => $this->can_save_vault_token() ?
|
||||||
'true' : 'false',
|
'true' : 'false',
|
||||||
|
|
|
@ -24,6 +24,8 @@ use Dhii\Modular\Module\ModuleInterface;
|
||||||
|
|
||||||
define( 'PAYPAL_API_URL', 'https://api.paypal.com' );
|
define( 'PAYPAL_API_URL', 'https://api.paypal.com' );
|
||||||
define( 'PAYPAL_SANDBOX_API_URL', 'https://api.sandbox.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.
|
// @ToDo: Real connect.woocommerce.com production link.
|
||||||
define( 'CONNECT_WOO_URL', 'http://connect-woo.wpcust.com/ppc' );
|
define( 'CONNECT_WOO_URL', 'http://connect-woo.wpcust.com/ppc' );
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue