-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #105 from krokedil/main
Version 1.9.0
- Loading branch information
Showing
18 changed files
with
19,776 additions
and
395 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
/** | ||
* File for HPP class. | ||
* | ||
* @package Ledyer | ||
*/ | ||
|
||
namespace Ledyer; | ||
|
||
defined( 'ABSPATH' ) || exit(); | ||
|
||
/** | ||
* Class HPP | ||
* | ||
* @package Ledyer | ||
*/ | ||
class HPP { | ||
/** | ||
* Creates the HPP URL. | ||
* | ||
* @param string $session_id The Ledyer Checkout session to use for the HPP request. | ||
* @return string The HPP URL. | ||
*/ | ||
public function create_hpp_url( $session_id ) { | ||
$mode = 'yes' === ledyer()->get_setting( 'testmode' ) ? 'sandbox' : 'live'; | ||
return "https://pos.{$mode}.ledyer.com/?sessionId={$session_id}"; | ||
} | ||
} |
Oops, something went wrong.