Skip to content

Commit 2355409

Browse files
authored
Merge pull request #3668 from woocommerce/PCP-5260-add-debug-mode-for-js-sdk
Add debug mode for JS SDK (PCP-5260)
2 parents 349f126 + e1f7e77 commit 2355409

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

modules/ppcp-button/src/Assets/SmartButton.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1471,6 +1471,10 @@ private function url_params(): array {
14711471
'intent' => $intent,
14721472
);
14731473

1474+
if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) {
1475+
$params['debug'] = true;
1476+
}
1477+
14741478
if (
14751479
$this->settings->has( 'subscriptions_mode' )
14761480
&& $this->settings->get( 'subscriptions_mode' ) === 'vaulting_api'

0 commit comments

Comments
 (0)