Guidelines for Updating SDK to Use PhonePe with Payment & SMS Gateway Addon #
In this release of the Payment & SMS Gateway Addon, we have updated the SDK for PhonePe. However, the current system does not support this new SDK version yet. Full compatibility will be provided in upcoming releases for all projects.
Until then, if you wish to install this addon and use PhonePe, you will need to manually update your system’s SDK. Please follow the steps below to update the SDK.
Step 01: Update composer.json
Add the following configuration to your composer.json file:
"minimum-stability": "stable",
"prefer-stable": true,
"repositories": [
{
"type": "package",
"package": [
{
"dist": {
"type": "zip",
"url": "https://phonepe.mycloudrepo.io/public/repositories/phonepe-pg-php-sdk/phonepe-pg-php-sdk.zip"
},
"name": "phonepe/phonepe-pg-php-sdk",
"version": "1.0.0",
"autoload": {
"classmap": ["/"]
}
}
]
}
]
Step 02: Update Composer
Run the following command to update your dependencies:
composer update
Step 03: Require the PhonePe SDK
Run the following command to include the PhonePe SDK in your project:
composer require --prefer-source phonepe/phonepe-pg-php-sdk