Purpose:
The purpose of the this document is to help the person to configure and deploy the POS payment through PhonePe with respect to different types of payment devices - UPI, QR-code and Click and Collect method. The complexities of configuring the various MOPs in different POS, gave birth to POS Plugin Manager, which allows centralized the configuration and synchronization process with respect to MOP (Mode of Payment). The aim is to make life easy for the people responsible to perform the POS billing by PhonePe. Using PhonePe payment device payment can be made in three ways - using the QR code or UPI or Click and Collect.
POS-Plugin Management
Following are the steps to be followed in sequence to manage the entire process for configuring the POS Plugin:
Step #A: Configuring Plug-in Manager in Ginesys ERP user interface
Step #B: MoP (Mode of Payment) configuration in Ginesys ERP user interface
Step #C: Data Synchronization based on site from ERP to POS
Step #D: Pulling/syncing down the required configuration from ERP via Data Exchange in the POS system
Step #E: Update the latest POS Plugin using the AutoUpdater
Step #F: Logout and login into the POS application
Step #G: Test whether payment is being possible from POS using the configured MOP
Assumption
The plugin will be installed in Ginesys POS Server.
Ginesys HO version availability (minimum v12.5.1). Recommendation is to have the latest available version.
POS version availability (minimum v2.5.1). Recommendation is to have the latest available version.
Any URL that PhonePe provides will be whitelisted.
Step #A: Configuring Plug-in Manager in Ginesys ERP user interface
Create the app.config file for DQR and Click and Collect from the samples given.
{
"SecurityParams": {
"MerchantId": "KALKIFASHIONMAHARASHTRA",
"SaltKey": "cde55b48-999d-47e5-b564-68eb12c618fe",
"SaltIndex": "1",
"XProviderId": "GINESYSPOS",
"PaymentProcess": 2
},
"APIParams": {
"DynamicQRCodeGenerationURL":"https://mercury-t2.phonepe.com/v3/qr/init",
"DynamicQRCodeCheckPaymentStatusURL":"https://mercury-t2.phonepe.com/v3/transaction",
"ClickAndCollectPaymentRequestURL":"https://mercury-t2.phonepe.com/v3/charge"
}
}
{
"SecurityParams": {
"MerchantId": "KALKIFASHIONMAHARASHTRA",
"SaltKey": "cde55b48-999d-47e5-b564-68eb12c618fe",
"SaltIndex": "1",
"XProviderId": "GINESYSPOS",
"PaymentProcess": 0
},
"APIParams": {
"DynamicQRCodeGenerationURL":"https://mercury-t2.phonepe.com/v3/qr/init",
"DynamicQRCodeCheckPaymentStatusURL":"https://mercury-t2.phonepe.com/v3/transaction",
"ClickAndCollectPaymentRequestURL":"https://mercury-t2.phonepe.com/v3/charge"
}
}
- Under the Setup tab, click on the Plugin Manager under Configure section.
- Click on Add to start configuring a new Plugin Manager.
Under the General tab enter the following for the required fields. The name of the Plugin Short Code is a sample name only. In real deployment, Plugin Short Code needs to be provided by Ginesys and the same needs to be set for the Plugin Short Code -
Values for various modes of PhonePe Plugin Short Code -
- PhonePe Plugin Short Code for DQR - PhnpeDQR32 (32 bit), PhnpeDQR64 (64 bit)
PhonePe Plugin Short Code for Click and Collect - PhnpeClt32 (32 bit), PhnpeClt64 (64 bit)
- Plugin Type - ProcessPOSPayment
- Plugin Assembly Name DQR and Click and Collect - GINESYSPhonepe
- Target Config File name - app
-
- Do the Hook Mapping.
-
- Move to the Config Files tab to specify the config file name.
- Click on the Add Row button to add a new row. By clicking on the Add Row button, multiple configuration files can be added one after another. However any one can be marked as “Is Default”.
- Scroll to the right to find the Browse button for the newly added row.
- Enable the Is Default option.
- Click on the Browse button.
- Select the config file called app.config
- Click on the Upload button and then click on the OK button.
- Assign the site in the Site Allocation tab. The process is similar to how the site has been moved from the list of Available Site to the list of Assigned Site section by clicking the right arrow.
- Click on the save and close button at the top to save the Plugin Manager configuration.
- The configured Plugin Manager will now appear in the list of configured plugin managers.
Step #B: MoP (Mode of Payment) configuration in Ginesys ERP user interface
- Select the module called POS Manager.
- Select “Setup” tab.
- Select “Mode of Payment” option under the “Configuration” section.
- To add the new MoP, click on the “Add” button.
- Mode of Payment is the selected tab by default. Specify the name of the MoP and it’s short code (maximum length: 5)
- Select mode as Credit Card.
- Select “PhonePe” as third party POS Plugin name.
- Move to the “Site Allocation” tab.
- Select a site from the list of Available Sites.
- Move the highlighted site from left to right by clicking the right (->) arrow.
- The selected site would now appear in the Assigned sites list.
- Now, scroll to the right, double click under the Ledger and select Credit Card from the list.
- Save the MoP.
- It will now try to save the configuration and displays the following while operation is in progress.
- Once the newly configured MoP is saved it would appear in the list of configured MoPs.
MoP configuration is now completed.
Step #D: Pulling/syncing down the required configuration from ERP via Data Exchange in the POS system
Step #E: Update the latest POS Plugin using the AutoUpdater
1.Login to the POS system using the valid user credential.
2. Open the AutoUpdate application.
3. The Auto Update screen will appear. Move to the Update Plugin tab.
4. Click on the Download button to download the latest updates in the POS system.
5. The latest POS Plugin is now downloaded successfully in the POS system and is visible in the list.
6. Click on the Close button to exit from the Auto Update application.
Step #F: Logout and login into the POS application
Verify the following:
Go to the folder where you have the POS application configuration file called NPOS.exe.config.
Open the file in notepad and check if it has the following section -
<runtime>
<loadFromRemoteSources enabled="true"/>
</runtime>
If it is already there, close the file. If it is not there, copy and paste the above <runtime</runtime> section after the </Startup> tag.
Logout and re-login
Step #G: Test whether payment is being possible from POS using the configured MOP
All the required configuration, data syncing and data exchanges are done by now. So, it’s time to test and verify whether the newly configured MoP called CC MoP is appearing while taking the payment using credit card in the POS counter.
- Open the POS application by double clicking on the following POS icon .
- Ginesys POS login screen will appear. Enter the login credential (username and password) and click on the Login button.
- On successful login, the GINESYS POS screen will appear. Click on the Application Control button.
- The following options will appear:
- Click on the POS button.
- The following screen will appear:
- Scan or Type the item-id. Enter a valid item barcode in the Scan field and press Enter. The item detail will appear in the right panel.
- It’s time to tag the customer now. Click on the Search Customer option under the POS Taskpad section in the left.
- The Search Customer dialog will appear. In the above Search Customer dialog do the following:
- For customer search enter membership number or mobile number or name.
- Click on the Search button.
- The searched customer will appear in the panel below. Tag the customer by clicking the Tag button in the button panel at the bottom.
- Hit the Payment button.
- The Accept Payments window will appear.
- Under the Payment Mode, all the different modes of payment will appear.
Scroll down to check if the configured MoP called PhonePe is there in this list.
- If it is appearing then the MOP configuration has been done correctly and the syncing has also been done in a proper way.
- Make sure that the payment device is connected with the system in the POS counter. Either Wired or Wireless.
- Make the payment through PhonePe MOP.
- Press enter to proceed with the payment.
- An information box appears with the message - Send payment request for PhonePe.
- Click on the Send Payment Request button to proceed further.
- A message appears - Payment request successfully sent to customer.
Please see the following video to understand the function of the above steps.-