Skip to content

Commit

Permalink
Merge pull request #172 from 202-ecommerce/release/x
Browse files Browse the repository at this point in the history
Release 5.7.5
  • Loading branch information
kgleizes authored Jan 25, 2023
2 parents 5cee41e + c058f43 commit aaa905c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion 202/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<property name="src-dir" value="${basedir}" />
<property name="TARGETNAME" value="paypal" />
<property name="TARGETBRANCH" value="${env.GIT_BRANCH}" />
<property name="TARGETVERSION" value="5.7.4" />
<property name="TARGETVERSION" value="5.7.5" />
<property name="PHPVERSION" value="5.6" />
<property name="PSVERSION" value="1.7.5.2" />

Expand Down
3 changes: 1 addition & 2 deletions classes/PUI/FraudNetForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@ protected function getFraudSessionId()

protected function getSourceId()
{
//todo: use format merchantId + page name
return '[use-client-id-here]-checkout-page';
return (new PsMerchantId($this->method))->get() . '-checkout-page';
}

protected function getUserData()
Expand Down
2 changes: 1 addition & 1 deletion classes/PUI/PsMerchantId.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,6 @@ public function __construct($method = null)

public function get()
{
return 'PrestaShop_' . md5($this->method->getClientId());
return 'PrestaShop_' . md5($this->method->getClientId($this->method->isSandbox()));
}
}
2 changes: 1 addition & 1 deletion views/templates/pui/fraudNetForm.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
{
"f":"{/literal}{$sessionId}{literal}",
"s":"{/literal}{$sourceId}{literal}",
"sandbox": {/literal}{$isSandbox}{literal}
"sandbox": {/literal}{if $isSandbox}true{else}false{/if}{literal}
}
</script>
{/literal}
Expand Down

0 comments on commit aaa905c

Please sign in to comment.