pmc-service
pmc-service is a JavaScript library for creating login into PMC e-basket as well as to use cordova plugins
The pmc-service
package contains only the functionality necessary to login and custom plugin usage. It is typically used to achieve login process expose for client the component.The pmc-service
includes three enviroment for login namely QA,Pre-Production and Production
Note:
Install
npm i @pmcretail/pmc-service
Example Usage
import { PMCEnvironment, PMCLogin } from '@pmcretail/pmc-service';
PMCLogin("username","password","organizationCode",PMCEnvironment.qa)
.then(function(value)
{
// Handle success full response
})
.catch(function(error)
{
//Handle error
})