Recharging credit via CASHNet
The CASHNet payment gate enables customers to directly pay for their credit via a payment card or via a digital wallet.
To be able to integrate the CASHNet payment gate into MyQ, you need to have a Checkout store created by the provider of the service. For the correct setup and MyQ integration, you need to save the following data:
Operator ID, Password, Station, and Client Code are necessary for logging in to the CASHNet Web User Interface.
Merchant name, Station, Store URL, and Item code of the Checkout store are necessary for the integration into MyQ.
Setting up the CASHNet payment option
Set up the eMarket store on the CASHNet Web User Interface
Log in to the CASHNet Web User Interface.
Open the Store Setup tab.
On the tab, click the dark blue button with the text Click here to use new eMarket store setup for Storefronts&Checkouts. The eMarket store setup page opens.
On the page, double-click the Checkout store button to open its setup page.
On the Checkout setup page, under End of transaction behavior, configure the following options:
Show receipt page: disable
Use redirect URL(s): enable
Redirect URL for successful transactions & successful online post responses: leave empty
Redirect URL for unsuccessful transactions or non-responsive online post attempts: leave empty
Append data to the redirect URL: set to Yes, and redirect using HTTP post
![End of transaction behavior settings](../../../__attachments/1039106229/image-20201215-152405.png?inst-v=f576f6b0-eb9f-4035-8724-3dad44b7106e)
You can now leave the CASHNet Web User Interface.
Set up the CASHNet payment option on the MyQ Web Interface
Open the Credit settings tab (MyQ, Settings, Credit).
On the tab, under Payment providers, double-click the CASHNet payment provider (or right-click the CASHNet payment provider, and then click Edit on the shortcut menu). The CASHNet properties panel opens on the right side of the tab.
The value of the Currency setting corresponds to the currency set on the General settings tab of the MyQ Web Interface.
Type the Minimal amount that users will have to pay when they buy credit.
Enter the Merchant name, Station, Store URL, and Item Code of the Checkout store, and then click Save.
Recharging credit via CASHNet on the user's account on the MyQ Web Interface
First of all, the user needs to log in to their account on the MyQ Web Interface. To recharge the credit there, the user has to click Recharge credit under Credit. The Recharge credit dialog appears.
![Recharging credit via CASHNet on the MyQ web UI](../../../__attachments/1039106229/UserUICredit.png?inst-v=f576f6b0-eb9f-4035-8724-3dad44b7106e)
In the dialog box, the user has to select the CASHNet payment provider, enter the amount of credit that they want to buy, and then click Recharge Credit.
![Recharge credit options](../../../__attachments/1039106229/CashnetRecharge.png?inst-v=f576f6b0-eb9f-4035-8724-3dad44b7106e)
A window with the CASHNet payment options opens in the web browser; the rest of the steps correspond to the standard CASHNet payment process.
After the payment is successfully sent to MyQ, the Payment successful dialog box appears.
CASHNet tries to connect to the MyQ server via the hostname or IP address that is set on the Network settings tab of the MyQ Web Interface. In case a hostname is set on the tab and paying users receive the "This site can’t be reached / XYZ’s server DNS address could not be found. / DNS_ PROBE_FINISHED_NXDOMAIN" message. Try to replace the hostname with the IP address of your server.