Skip to content

Commit

Permalink
MAG2-319 - Changed intent in javascript URL
Browse files Browse the repository at this point in the history
  • Loading branch information
FatchipRobert committed Oct 28, 2024
1 parent c666d46 commit f752ddd
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions Block/Paypal/ExpressButtonV2.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,13 +165,7 @@ protected function showBNPLButton()
*/
protected function getIntent()
{
$oMethodInstance = $this->getMethodInstance();

$sIntent = "authorize"; // authorize = preauthorize
if ($oMethodInstance && $oMethodInstance->getAuthorizationMode() == PayoneConfig::REQUEST_TYPE_AUTHORIZATION) {
$sIntent = "capture"; // capture = authorize
}
return $sIntent;
return "authorize"; // authorize = preauthorize // capture = authorize but Payone said to always use authorize
}

/**
Expand Down

0 comments on commit f752ddd

Please sign in to comment.