This repository has been archived by the owner on Jun 30, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
38 additions
and
3 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
|
||
/** | ||
* This custom class must be placed in the folder /AlloPass/Hipay/Helper | ||
* You have to personalize the method getCustomData and return an json of your choice. | ||
* | ||
*/ | ||
class Allopass_Hipay_Helper_CustomData extends Mage_Core_Helper_Abstract | ||
{ | ||
/** | ||
* Return yours customs datas in a array for gateway transaction request | ||
* | ||
* @param array $payment | ||
* @param float $amount | ||
* | ||
*/ | ||
public function getCustomData($payment,$amount) | ||
{ | ||
$customData = array(); | ||
|
||
// An example of adding custom data | ||
if ($payment) | ||
{ | ||
$customData['my_field_custom_1'] = $payment->getOrder()->getBaseCurrencyCode(); | ||
} | ||
|
||
return $customData; | ||
} | ||
} |
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