-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Move the Payment booster view logic * Move the Payment booster view logic - update Life element options --------- Co-authored-by: pavel-bystritskyi <[email protected]> Co-authored-by: Pavel Bystritsky <[email protected]> Co-authored-by: MykolaMalovanets <[email protected]>
- Loading branch information
1 parent
b5fe2ce
commit af1156e
Showing
4 changed files
with
41 additions
and
3 deletions.
There are no files selected for viewing
32 changes: 32 additions & 0 deletions
32
Plugin/Checkout/Block/System/Config/Form/Field/Location/AddPayPalOptionPlugin.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?php | ||
declare(strict_types=1); | ||
|
||
namespace Bold\CheckoutFlowPaypal\Plugin\Checkout\Block\System\Config\Form\Field\Location; | ||
|
||
use Bold\Checkout\Block\System\Config\Form\Field\Location; | ||
|
||
/** | ||
* Add PayPal-specific Life element options. | ||
*/ | ||
class AddPayPalOptionPlugin | ||
{ | ||
/** | ||
* Add PayPal-specific Life element options. | ||
* | ||
* @param Location $subject | ||
* @param array $result | ||
* @return array | ||
*/ | ||
public function afterGetSourceOptions(Location $subject, array $result): array | ||
{ | ||
return array_merge( | ||
$result, | ||
[ | ||
[ | ||
'label' => '(PayPal Checkout Flow only) On the additional information page', | ||
'value' => 'paypal_additional_information', | ||
], | ||
] | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters