Last active
July 26, 2021 08:31
-
-
Save mgmgpyaesonewin/9268d660dc3cbc5756f65119b6f8de7b to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| $data = [ | |
| // string - Merchant Name for Payment Screen | |
| 'merchant_name' => "Wave Merchant", | |
| // string - Merchant id provided by Wave Money | |
| 'merchant_id' => "wavemerchant", | |
| // unsigned integer - Time to live for Transaction (seconds) | |
| 'timeToLiveSeconds' => 300, | |
| // unsigned integer - Order id provided Merchant | |
| 'order_id' => rand(1000000, 9999999), | |
| // unsigned integer - Total Amount of transaction | |
| 'amount' => 50, | |
| // string - mendatory backend url for Payment Service | |
| 'backend_result_url' => "https://wave-merchant.com/backend-callback", | |
| // string - mendatory frontend url for Payment Service | |
| 'frontend_result_url' => "https://wave-merchant.com", | |
| // string - Unique Merchant Reference ID for Transaction | |
| 'merchant_reference_id' => "wavemerchant-" . rand(1000000, 9999999), | |
| // string - Payment Description for Payment Screen from Merchant | |
| 'payment_description' => "Buying things from Wave Merchant" | |
| ]; | |
| // Secret Key provided by Wave Money | |
| $secret_key = "w2u"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment