-
Notifications
You must be signed in to change notification settings - Fork 3
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 #25 from remotemerge/migration
Migration
- Loading branch information
Showing
11 changed files
with
177 additions
and
50 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,23 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace RemoteMerge\Esewa; | ||
|
||
interface ClientInterface | ||
{ | ||
/** | ||
* Client constructor. | ||
*/ | ||
public function __construct(array $configs = []); | ||
|
||
/** | ||
* This method creates the form in runtime and post the data to eSewa server. | ||
*/ | ||
public function payment(string $productId, float $amount, float $taxAmount, float $serviceAmount = 0.0, float $deliveryAmount = 0.0): void; | ||
|
||
/** | ||
* This method verifies the payment using the reference ID. | ||
*/ | ||
public function verifyPayment(string $referenceId, string $productId, float $amount): bool; | ||
} |
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,33 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace RemoteMerge\Esewa; | ||
|
||
interface ConfigInterface | ||
{ | ||
/** | ||
* Config constructor. | ||
*/ | ||
public function __construct(array $configs = []); | ||
|
||
/** | ||
* Get the merchant code | ||
*/ | ||
public function getMerchantCode(): string; | ||
|
||
/** | ||
* Get the API URL | ||
*/ | ||
public function getApiUrl(): string; | ||
|
||
/** | ||
* Get the URL to redirect after successful payment | ||
*/ | ||
public function getSuccessUrl(): string; | ||
|
||
/** | ||
* Get the URL to redirect after failed payment | ||
*/ | ||
public function getFailureUrl(): string; | ||
} |
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
Oops, something went wrong.