Pre-requisites


  • installed and working Atomia platform
  • credentials from Adyen needed to setup their payment gateway



Setup


On GUI machine create transformation file "C:\Program Files (x86)\Atomia\BillingCustomerPanel\App_Data\Transformation Files\appConfig.AdyenPayment.config"

 

<?xml version="1.0" encoding="UTF-8"?>
<appConfig xmlns="Atomia.Web.Base.Configs" xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform" >
	<globalSettingsList>
		<globalSetting name="AdyenHppPaymentEnabled" value="true" xdt:Locator="Match(name)" xdt:Transform="SetAttributes(value)"/>
	</globalSettingsList>
</appConfig>

 


Login to Database server and execute next INSERT statements to configure and activate Adyen payment gateway for specific reseller (100000 in this case)


Replace field values with the ones you got from Adyen.

INSERT INTO AtomiaBilling.dbo.plugin_configuration
	([id], [fk_plugin_id], [fk_reseller_id], [key], [value])
	VALUES (NEWID(),
	(SELECT id FROM AtomiaBilling.dbo.plugin WHERE name = 'AdyenHppPaymentMethodPlugin'),
	CAST(CAST(0 AS BINARY) AS UNIQUEIDENTIFIER),
	'Configuration', '
	{
	"AutoCapture": true,
	"HmacKey": "12345678",
	"MerchantAccount": "AtomiaTEST",
	"ModificationServiceUrl": "https://pal-test.adyen.com/pal/servlet/soap/Payment",
	"PaymentPageUrl": "https://test.adyen.com/hpp/pay.shtml",
	"RecurringServiceUrl": "https://pal-test.adyen.com/pal/servlet/soap/Recurring",
	"SkinCode": "your_skin_code",
	"SoapPassword": "your_password",
"SoapUsername": "your_username"
}');

 


INSERT INTO [AtomiaBilling].[dbo].[reseller_configuration_payment_method]
	VALUES(
	(SELECT [fk_reseller_configuration_id] FROM [AtomiaBilling].[dbo].[account_details] AD inner join [AtomiaAccount].[dbo].[account] A
	on AD.account_id = A.id
	where A.name='100000'),
	'0A6587A8-6D27-417B-8146-C55260FF3385');

   


Activation


Apply all changes and restart webserver where GUI apps are  by executing in PowerShell


 

C:\install\recreate_all_config_files.ps1
iisreset