{"id":20721327,"url":"https://github.com/dr-lab1/labyrinthe-payment","last_synced_at":"2026-02-19T00:34:33.653Z","repository":{"id":234770501,"uuid":"777659882","full_name":"Dr-Lab1/Labyrinthe-Payment","owner":"Dr-Lab1","description":"A package facilitating the integration of payment modules from several payment aggregators","archived":false,"fork":false,"pushed_at":"2024-08-03T11:40:46.000Z","size":342,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-27T20:36:15.255Z","etag":null,"topics":["api","api-rest","composer","package","package-manager","packagist","payment","payment-gateway","payment-integration"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Dr-Lab1.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-03-26T09:23:25.000Z","updated_at":"2025-02-20T10:51:32.000Z","dependencies_parsed_at":"2024-04-20T18:44:59.033Z","dependency_job_id":"92ed2326-65c1-43a5-a71d-86e36fb1603c","html_url":"https://github.com/Dr-Lab1/Labyrinthe-Payment","commit_stats":null,"previous_names":["dr-lab1/labyrinthe-payment"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Dr-Lab1/Labyrinthe-Payment","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dr-Lab1%2FLabyrinthe-Payment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dr-Lab1%2FLabyrinthe-Payment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dr-Lab1%2FLabyrinthe-Payment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dr-Lab1%2FLabyrinthe-Payment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Dr-Lab1","download_url":"https://codeload.github.com/Dr-Lab1/Labyrinthe-Payment/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dr-Lab1%2FLabyrinthe-Payment/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29599383,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-18T22:25:43.180Z","status":"ssl_error","status_checked_at":"2026-02-18T22:25:42.766Z","response_time":162,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","api-rest","composer","package","package-manager","packagist","payment","payment-gateway","payment-integration"],"created_at":"2024-11-17T03:27:02.856Z","updated_at":"2026-02-19T00:34:33.617Z","avatar_url":"https://github.com/Dr-Lab1.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Labyrinthe - Payment : Documentation\n  \n## Plan\n- \u003ca href=\"#package-description\" \u003e Package description \u003ca/\u003e\n- \u003ca href=\"#install-the-labyrinthepayment-package\" \u003e Install the Labyrinthe/Payment package \u003ca/\u003e\n  - \u003ca href=\"#using-composer\" \u003e Using Composer \u003ca/\u003e\n  - \u003ca href=\"#using-github\" \u003e Using GitHub \u003ca/\u003e\n\n- \u003ca href=\"#how-to-use-labyrinthepayment\" \u003e How to use Labyrinthe\\Payment \u003ca/\u003e\n  - \u003ca href=\"#global\" \u003e Global \u003ca/\u003e\n  - \u003ca href=\"#labyrinthe-api\" \u003e Labyrinthe API \u003ca/\u003e\n    - \u003ca href=\"#labyrinthe-mobile-service\" \u003e Labyrinthe mobile service \u003ca/\u003e\n      - \u003ca href=\"#labyrinthe-sandbox\" \u003e Labyrinthe sandbox \u003ca/\u003e\n    - \u003ca href=\"#labyrinthe-check-transaction\" \u003e Labyrinthe check transaction \u003ca/\u003e\n  - \u003ca href=\"#flexpay\" \u003e Flexpay \u003ca/\u003e\n    - \u003ca href=\"#flexpay-mobile-service\" \u003e Flexpay mobile service \u003ca/\u003e\n      - \u003ca href=\"#flexpay-mobile-payment\" \u003e Flexpay mobile payment \u003ca/\u003e\n      - \u003ca href=\"#flexpay-mobile-payment\" \u003e Flexpay mobile payment \u003ca/\u003e\n      - \u003ca href=\"#flexpay-check-mobile-results\" \u003e Flexpay check mobile results \u003ca/\u003e\n    - \u003ca href=\"#flexpay-card-service\" \u003e Flexpay card service \u003ca/\u003e\n      - \u003ca href=\"#flexpay-check-card-results\" \u003e Flexpay check card results \u003ca/\u003e\n    - \u003ca href=\"#flexpay-check-transaction\" \u003e Flexpay check transaction \u003ca/\u003e\n  \n\n# Package description\n\nIn programming, a package (or module, depending on the language) is a collection of various code elements, such as classes, functions, variables and constants. It's a crucial organizational tool that enables code to be structured in a modular and coherent way, making it easier to read, maintain and reuse.\n\nThe main aim of our package is to make available classes and functions that facilitate the integration of various payment aggregators such as Labyrinthe, Flexpay, Stripe,... Instead of coding the logic from scratch, you'll save time by using this package. In some cases, a single line of code will suffice to execute complex functions.\n\n# Install the Labyrinthe/Payment package\n\nOur package can be installed in a number of ways, including composer and github.\n\n## Using Composer\n\nIf you haven't composed yet, it's time to install it. After all, it's the main installer of PHP dependencies.\n\u003ca href=\"https://getcomposer.org/download/\"\u003e Click here to install composer\u003c/a\u003e.\n\nAfter installation, go to the root of your project and issue this command :\n\n    composer require labyrinthe/payment\n\n## Using GitHub\n\nWith installation via github, there are two ways out. Either by git clone or by downloading the package zip file. \n\n1. Git clone\n\n        git clone https://github.com/Dr-Lab1/Labyrinthe-Payment\n   \n3. Get the link and download\n\n        https://github.com/Dr-Lab1/Labyrinthe-Payment\n\n# How to use Labyrinthe\\Payment ? \n\n## Global\n\nUsing only static methods to simplify its use, the package is easy to understand and practical to use. For example, to make a mobile payment from an X aggregator, the code to call the methods for this operation will be fairly straightforward.\n\nExample:\n\n      // array of params\n      $array = [];\n      $mobile_payment = AggregatorServiceProvider::mobile($array);\n\nResponses from package methods and classes all have the same format. In other words, you don't have to go into the details of the response to understand its nature.\n\n\u003ctable\u003e\n    \u003cthead\u003e\n      \u003ctr\u003e\n        \u003cth colspan=\"4\"\u003eResponse\u003c/th\u003e\n      \u003c/tr\u003e\n    \u003c/thead\u003e\n    \u003ctbody\u003e   \n      \u003ctr\u003e\n        \u003cth width=\"20%\"\u003eParams\u003c/th\u003e\n        \u003cth width=\"40%\"\u003eDescritption\u003c/th\u003e\n        \u003cth width=\"40%\"\u003eExample\u003c/th\u003e\n      \u003c/tr\u003e\n      \u003ctr\u003e\n        \u003ctd\u003esuccess\u003c/td\u003e\n        \u003ctd\u003eThis is the status of the request. Returns 'true' if everything works and 'false' if it fails.\u003c/td\u003e\n        \u003ctd\u003etrue or false\u003c/td\u003e\n      \u003c/tr\u003e\n      \u003ctr\u003e\n        \u003ctd\u003emessage\u003c/td\u003e\n        \u003ctd\u003eThis is the message that accompanies the response to give it greater meaning\u003c/td\u003e\n        \u003ctd\u003e\"Process failed\"\u003c/td\u003e\n      \u003c/tr\u003e\n      \u003ctr\u003e\n        \u003ctd\u003edata\u003c/td\u003e\n        \u003ctd\u003eThis is an array containing the set of data returned by the query\u003c/td\u003e\n        \u003ctd\u003e\n            [code] =\u003e 0 \u003cbr\u003e\n            [message] =\u003e Transaction envoyée avec succès. \u003cbr\u003e\n            [orderNumber] =\u003e sjXMRrf98ISP243896699032 \u003cbr\u003e\n        \u003c/td\u003e\n      \u003c/tr\u003e\n      \u003ctr\u003e\n        \u003ctd\u003eerrors\u003c/td\u003e\n        \u003ctd\u003eA table listing all the errors encountered in the request\u003c/td\u003e\n        \u003ctd\u003e[errors] =\u003e Could not resolve host: beta-backend\u003c/td\u003e\n      \u003c/tr\u003e\n    \u003c/tbody\u003e\n\u003c/table\u003e\n\nThe default response format is JSON. Why is this? Because it's easy to access. To access the JSON key 'success', for example, all you need to do is :\n\n    $mobile_payment-\u003esuccess\n    // we can print it\n    echo $mobile_payment-\u003esuccess;\n\nSome people are more comfortable with arrays than JSON in PHP, so they'll pass an array \u003ccode\u003e$options\u003c/code\u003e as a parameter to render the results as an array.\n\n    $options = [\n      \"JSON\" =\u003e false\n    ];\n\nNow you can pass your parameters to the desired method to retrieve your data in the format in which you feel most comfortable.\n\n    $mobile_payment = AggregatorServiceProvider::mobile($array, $options);\n\n\n## Labyrinthe API\n\nLabyrinthe-API is a service like many others covered by Labyrinthe-RDC (a digital-based company).\n\nThe APIs collection offered by Labyrinthe is scalable and comprehensive. It supports a wide range of payment methods available only from us.\nFrom mobile payment methods to banking and soon cryptocurrencies, integrate payment solutions with ease.\n\n### Labyrinthe mobile service\n\nIn the mobile section, we'll be looking at all the services related to mobile payment. In other words, making a payment and checking the results of different payments. We also offer a sandbox for different payment tests before going premium. Easy to integrate.\n\n#### Labyrinthe sandbox\n\nAs mentioned in the introduction, this section deals with transactions. Perhaps the most difficult part of this section will be understanding the various parameters to be passed in the method (function). But relax, it's all explained in this section, and we'll start with. \n\n\u003ctable\u003e\n    \u003cthead\u003e\n      \u003ctr\u003e\n        \u003cth colspan=\"4\"\u003eSandBox\u003c/th\u003e\n      \u003c/tr\u003e\n    \u003c/thead\u003e\n    \u003ctbody\u003e   \n      \u003ctr\u003e\n        \u003cth width=\"20%\"\u003eParams\u003c/th\u003e\n        \u003cth width=\"40%\"\u003eDescritption\u003c/th\u003e\n        \u003cth width=\"20%\"\u003eExample\u003c/th\u003e\n        \u003cth width=\"20%\"\u003eRequired\u003c/th\u003e\n      \u003c/tr\u003e\n      \u003ctr\u003e\n        \u003ctd\u003etoken\u003c/td\u003e\n        \u003ctd\u003eThis is the token given by Labyrinthe\u003c/td\u003e\n        \u003ctd\u003exxxx xxxxx\u003c/td\u003e\n        \u003ctd\u003eYES\u003c/td\u003e\n      \u003c/tr\u003e\n      \u003ctr\u003e\n        \u003ctd\u003ereference\u003c/td\u003e\n        \u003ctd\u003eThis is the transaction reference. In other words, the data that will enable the transaction to be traced on your side. \u003c/td\u003e\n        \u003ctd\u003exxxxxxxxxx\u003c/td\u003e\n        \u003ctd\u003eYES\u003c/td\u003e\n      \u003c/tr\u003e\n      \u003ctr\u003e\n        \u003ctd\u003ephone\u003c/td\u003e\n        \u003ctd\u003eThe telephone number involved in the transaction\u003c/td\u003e\n        \u003ctd\u003e0896699032\u003c/td\u003e\n        \u003ctd\u003eYES\u003c/td\u003e\n      \u003c/tr\u003e\n      \u003ctr\u003e\n        \u003ctd\u003egateway\u003c/td\u003e\n        \u003ctd\u003eThis is the URL that labyrinthe gave you to carry out these mobile transactions\u003c/td\u003e\n        \u003ctd\u003ehttps://payment.labyrinthe-rdc.com/ \u003c/td\u003e\n        \u003ctd\u003eYES\u003c/td\u003e\n      \u003c/tr\u003e\n    \u003c/tbody\u003e\n\u003c/table\u003e\n \nHere is a code snippet showing how to fill its parameters :\n\n    $array = [\n      \"token\" =\u003e \"$2y$12$ngaXsXGwkrxpTAA.ubLXietv/Pdadfbx3OziwIH88inGU4sGi6ivm\",\n      \"reference\" =\u003e \"First_TX\",\n      \"phone\" =\u003e \"0896699032\",\n      \"gateway\" =\u003e \"https://payment.labyrinthe-rdc.com/\",\n    ];\n    \nAfter filling in the table with the correct information provided by Flexpay, please copy the following code portion: \n\n    $labyrinthe = LabyrintheServiceProvider::sandbox($array);\n\nNow run your code from your controller and process the information as required. All the information is returned in the variable \u003ccode\u003e$labyrinthe\u003c/code\u003e.\n\n\n### Labyrinthe check transaction\n\nTransaction verification is an action aimed at checking the status of a transaction and/or extracting certain details from it. This exercise concerns both mobile and card transactions in the system.\n\nThere are a few parameters to enter:\n\n\u003ctable\u003e\n    \u003cthead\u003e\n      \u003ctr\u003e\n        \u003cth colspan=\"4\"\u003emobile \u0026 card\u003c/th\u003e\n      \u003c/tr\u003e\n    \u003c/thead\u003e\n    \u003ctbody\u003e   \n      \u003ctr\u003e\n        \u003cth width=\"20%\"\u003eParams\u003c/th\u003e\n        \u003cth width=\"40%\"\u003eDescritption\u003c/th\u003e\n        \u003cth width=\"20%\"\u003eExample\u003c/th\u003e\n        \u003cth width=\"20%\"\u003eRequired\u003c/th\u003e\n      \u003c/tr\u003e\n      \u003ctr\u003e\n        \u003ctd\u003etoken\u003c/td\u003e\n        \u003ctd\u003eThis is the token given by Labyrinthe\u003c/td\u003e\n        \u003ctd\u003exxxxxxxxxxxxxx\u003c/td\u003e\n        \u003ctd\u003eYES\u003c/td\u003e\n      \u003c/tr\u003e\n      \u003ctr\u003e\n        \u003ctd\u003eorderNumber\u003c/td\u003e\n        \u003ctd\u003eThis is the transaction orderNumber In other words, the data that will enable the transaction to be traced on your side. \u003c/td\u003e\n        \u003ctd\u003exxxxxxxxxx\u003c/td\u003e\n        \u003ctd\u003eYES\u003c/td\u003e\n      \u003c/tr\u003e\n      \u003ctr\u003e\n        \u003ctd\u003egateway\u003c/td\u003e\n        \u003ctd\u003eThis is the URL that flexpay gave you to carry out these transactions\u003c/td\u003e\n        \u003ctd\u003ehttps://xyz.com\u003c/td\u003e\n        \u003ctd\u003eYES\u003c/td\u003e\n      \u003c/tr\u003e\n    \u003c/tbody\u003e\n\u003c/table\u003e\n\n\nHere is a code snippet showing how to fill its parameters :\n\n    $array = [\n      \"token\" =\u003e \"xxxxxxxxxxxxxxxxxxxxxxxxxxx\",\n      \"gateway\" =\u003e \"https://xyz.cd/check/\",\n      \"orderNumber\" =\u003e \"azertyytreza\",\n    ];\n    \nAfter filling in the table with the correct information provided by Flexpay, please copy the following code portion: \n\n    $labyrinthe = LabyrintheServiceProvider::checkTransaction($array);\n\nNow run your code from your controller and process the information as required. All the information is returned in the variable \u003ccode\u003e$labyrinthe\u003c/code\u003e.\n\n\n## Flexpay\n\nFlexPaie is the electronic payments application that supports all electronic payment methods, with all operators and bank cards. It's the ideal solution for all merchants and customers. You no longer need to have an electronic account for each network - a single application operational with : Visa, Mastercard, Afrimoney, Orange Money, Airtel Money, M-Pesa etc.\n\n### Flexpay mobile service\n\nIn the mobile section, we'll be looking at all the services related to mobile payment. In other words, making a payment and checking the results of different payments. \n\n#### Flexpay mobile payment\n\nAs mentioned in the introduction, this section deals with transactions. Perhaps the most difficult part of this section will be understanding the various parameters to be passed in the method (function). But relax, it's all explained in this section, and we'll start with.\n\n\u003ctable\u003e\n    \u003cthead\u003e\n      \u003ctr\u003e\n        \u003cth colspan=\"4\"\u003emobile\u003c/th\u003e\n      \u003c/tr\u003e\n    \u003c/thead\u003e\n    \u003ctbody\u003e   \n      \u003ctr\u003e\n        \u003cth width=\"20%\"\u003eParams\u003c/th\u003e\n        \u003cth width=\"40%\"\u003eDescritption\u003c/th\u003e\n        \u003cth width=\"20%\"\u003eExample\u003c/th\u003e\n        \u003cth width=\"20%\"\u003eRequired\u003c/th\u003e\n      \u003c/tr\u003e\n      \u003ctr\u003e\n        \u003ctd\u003eauthorization\u003c/td\u003e\n        \u003ctd\u003eThis is the Bearer token sent by Flexpay\u003c/td\u003e\n        \u003ctd\u003eBearer xxxxx\u003c/td\u003e\n        \u003ctd\u003eYES\u003c/td\u003e\n      \u003c/tr\u003e\n      \u003ctr\u003e\n        \u003ctd\u003emerchant\u003c/td\u003e\n        \u003ctd\u003eThe merchant code is the one provided by flexpay\u003c/td\u003e\n        \u003ctd\u003e\"Orange\"\u003c/td\u003e\n        \u003ctd\u003eYES\u003c/td\u003e\n      \u003c/tr\u003e\n      \u003ctr\u003e\n        \u003ctd\u003etype\u003c/td\u003e\n        \u003ctd\u003eThis is the type of transaction you want to carry out. In our case it's mobile. So the type will be \"1\".\u003c/td\u003e\n        \u003ctd\u003e1\u003c/td\u003e\n        \u003ctd\u003eYES\u003c/td\u003e\n      \u003c/tr\u003e\n      \u003ctr\u003e\n        \u003ctd\u003etype\u003c/td\u003e\n        \u003ctd\u003eThis is the type of transaction you want to carry out. In our case it's mobile. So the type will be \"1\".\u003c/td\u003e\n        \u003ctd\u003e1\u003c/td\u003e\n        \u003ctd\u003eYES\u003c/td\u003e\n      \u003c/tr\u003e\n      \u003ctr\u003e\n        \u003ctd\u003ereference\u003c/td\u003e\n        \u003ctd\u003eThis is the transaction reference. In other words, the data that will enable the transaction to be traced on your side. \u003c/td\u003e\n        \u003ctd\u003exxxxxxxxxx\u003c/td\u003e\n        \u003ctd\u003eYES\u003c/td\u003e\n      \u003c/tr\u003e\n      \u003ctr\u003e\n        \u003ctd\u003ephone\u003c/td\u003e\n        \u003ctd\u003eThe telephone number involved in the transaction\u003c/td\u003e\n        \u003ctd\u003e243896699032\u003c/td\u003e\n        \u003ctd\u003eYES\u003c/td\u003e\n      \u003c/tr\u003e\n      \u003ctr\u003e\n        \u003ctd\u003eamount\u003c/td\u003e\n        \u003ctd\u003eThe amount of the transaction \u003c/td\u003e\n        \u003ctd\u003e100\u003c/td\u003e\n        \u003ctd\u003eYES\u003c/td\u003e\n      \u003c/tr\u003e\n      \u003ctr\u003e\n        \u003ctd\u003ecurrency\u003c/td\u003e\n        \u003ctd\u003eThis is the currency to be used in the transaction\u003c/td\u003e\n        \u003ctd\u003eUSD\u003c/td\u003e\n        \u003ctd\u003eYES\u003c/td\u003e\n      \u003c/tr\u003e\n      \u003ctr\u003e\n        \u003ctd\u003ecallbackUrl\u003c/td\u003e\n        \u003ctd\u003eThis is the route by which the response (the final information about the transaction) will be returned.\u003c/td\u003e\n        \u003ctd\u003eabcdef.com\u003c/td\u003e\n        \u003ctd\u003eYES\u003c/td\u003e\n      \u003c/tr\u003e\n      \u003ctr\u003e\n        \u003ctd\u003egateway\u003c/td\u003e\n        \u003ctd\u003eThis is the URL that flexpay gave you to carry out these mobile transactions\u003c/td\u003e\n        \u003ctd\u003eflexpay.cd\u003c/td\u003e\n        \u003ctd\u003eYES\u003c/td\u003e\n      \u003c/tr\u003e\n    \u003c/tbody\u003e\n\u003c/table\u003e\n\nHere is a code snippet showing how to fill its parameters :\n\n    $array = [\n      \"authorization\" =\u003e \"Orange\",\n      \"merchant\" =\u003e \"orange\",\n      \"type\" =\u003e 1,\n      // Continue with other params...\n    ];\n    \nAfter filling in the table with the correct information provided by Flexpay, please copy the following code portion: \n\n    $flexpay = FlexpayServiceProvider::mobile($array);\n\nNow run your code from your controller and process the information as required. All the information is returned in the variable \u003ccode\u003e$flexpay\u003c/code\u003e.\n\n#### Flexpay check mobile results\n\nIn each transaction, you've sent a callbackUrl, which is the url to which the result of the transaction will be sent by the aggregator. \nBut this sending of data needs to be checked to ensure that the right information is being processed (stored in the database, for example). \n\nIn your action whose endpoint is your callbackUrl, you will call this static function :\n\n    $flexpay = FlexpayServiceProvider::phoneResults($array);\n\nThis function will automatically check the result and return the transaction code status. If all is well, it will return \u003ccode\u003etrue\u003c/code\u003e to the \u003ccode\u003esuccess\u003c/code\u003e variable and \u003ccode\u003efalse\u003c/code\u003e otherwise.\nThe processing of information coming from the aggregator will depend on the result of the function. You can either save to the database, or perform calculations,...\n\n### Flexpay card\n\nIn this section, we focus on banking transactions. It will cover much more about checking and checking results.\n\n#### Flexpay check card results\n\nIn each transaction, you've sent a callbackUrl, which is the url to which the result of the transaction will be sent by the aggregator. \nBut this sending of data needs to be checked to ensure that the right information is being processed (stored in the database, for example). \n\nIn your action whose endpoint is your callbackUrl, you will call this static function :\n\n    $flexpay = FlexpayServiceProvider::cardResults($array);\n\nThis function will automatically check the result and return the transaction code status. If all is well, it will return \u003ccode\u003etrue\u003c/code\u003e to the \u003ccode\u003esuccess\u003c/code\u003e variable and \u003ccode\u003efalse\u003c/code\u003e otherwise.\nThe processing of information coming from the aggregator will depend on the result of the function. You can either save to the database, or perform calculations,...\n\n### Flexpay check transaction\n\nTransaction verification is an action aimed at checking the status of a transaction and/or extracting certain details from it. This exercise concerns both mobile and card transactions in the system.\n\nThere are a few parameters to enter:\n\n\u003ctable\u003e\n    \u003cthead\u003e\n      \u003ctr\u003e\n        \u003cth colspan=\"4\"\u003emobile \u0026 card\u003c/th\u003e\n      \u003c/tr\u003e\n    \u003c/thead\u003e\n    \u003ctbody\u003e   \n      \u003ctr\u003e\n        \u003cth width=\"20%\"\u003eParams\u003c/th\u003e\n        \u003cth width=\"40%\"\u003eDescritption\u003c/th\u003e\n        \u003cth width=\"20%\"\u003eExample\u003c/th\u003e\n        \u003cth width=\"20%\"\u003eRequired\u003c/th\u003e\n      \u003c/tr\u003e\n      \u003ctr\u003e\n        \u003ctd\u003eauthorization\u003c/td\u003e\n        \u003ctd\u003eThis is the Bearer token sent by Flexpay\u003c/td\u003e\n        \u003ctd\u003eBearer xxxxx\u003c/td\u003e\n        \u003ctd\u003eYES\u003c/td\u003e\n      \u003c/tr\u003e\n      \u003ctr\u003e\n        \u003ctd\u003eorderNumber\u003c/td\u003e\n        \u003ctd\u003eThis is the transaction orderNumber In other words, the data that will enable the transaction to be traced on your side. \u003c/td\u003e\n        \u003ctd\u003exxxxxxxxxx\u003c/td\u003e\n        \u003ctd\u003eYES\u003c/td\u003e\n      \u003c/tr\u003e\n      \u003ctr\u003e\n        \u003ctd\u003egateway\u003c/td\u003e\n        \u003ctd\u003eThis is the URL that flexpay gave you to carry out these transactions\u003c/td\u003e\n        \u003ctd\u003eflexpay.cd\u003c/td\u003e\n        \u003ctd\u003eYES\u003c/td\u003e\n      \u003c/tr\u003e\n    \u003c/tbody\u003e\n\u003c/table\u003e\n\n\nHere is a code snippet showing how to fill its parameters :\n\n    $array = [\n      \"authorization\" =\u003e \"Orange\",\n      \"gateway\" =\u003e \"https://xyz.cd/check/\",\n      \"orderNumber\" =\u003e \"azertyytreza\",\n    ];\n    \nAfter filling in the table with the correct information provided by Flexpay, please copy the following code portion: \n\n    $flexpay = FlexpayServiceProvider::checkTransaction($array);\n\nNow run your code from your controller and process the information as required. All the information is returned in the variable \u003ccode\u003e$flexpay\u003c/code\u003e.\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdr-lab1%2Flabyrinthe-payment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdr-lab1%2Flabyrinthe-payment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdr-lab1%2Flabyrinthe-payment/lists"}