Resolution1. Change plug-in name.
For Store screens, the Dummy plug-in can be renamed easily and quickly from the Provider Control Center interface; just create a Dummy bank transfer plug-in configuration and assign an appropriate name to it.
2. Change name of payment method.
However, in this case, it is necessary to show a corresponding payment method, i.e., bank accounts of customers in Control Panel. This can be done by a simple strings customization described in detail in HSPcomplete SDK, "Customizing HSPcomplete" > "Customizing Language Packs."
A Dummy bank transfer plug-in code sample is in the SDK directory, samples/plugins/hspc-plugin-pp-bt-dummy.
To assign a custom name to bank accounts, complete the following steps:
1. On the server that runs HSPcomplete (i.e., your Management Node), go to this directory:
# cd /var/opt/hspc-root/
Create a customization directory:
# mkdir custom/i18n/
2. In the customization directory, create a directory named according to the language you want to add custom strings for. A directory must be named in accordance with a two-letter country country code. For example, FR for French, DE for German, EN for English, etc. Let us use the English language as an example. In this case, the final customization directory must be as follows:
# mkdir /var/opt/hspc-root/custom/i18n/EN/
3. You then need to get the strings definitions to put them into your customization directory. Take them from the Dummy bank transfer plug-in code sample. Go to the SDK directory, samples/plugins/hspc-plugin-pp-bt-dummy/i18n/EN/.
4. Copy the file hspc-plugin-pm-bt-dummy.xml into your customization directory (see step 3) and rename it to strings.xml.
5. Open the file strings.xml in your customization directory for editing and find the following strings definitions:
<val>Dummy Bank Account</val>
<c>Payment Method type</c>
6. Edit the strings values in the <val> </val> tag the way you need to for your customization.
7. Remove all the other strings definitions.
8. Save the changes.
9. Restart the HSPcomplete backend for the changes to take effect:
# /etc/init.d/hspcd restart