DELETE FROM `#__rsform_component_types` WHERE `ComponentTypeId` IN (512);

INSERT IGNORE INTO `#__rsform_component_types` (`ComponentTypeId`, `ComponentTypeName`, `CanBeDuplicated`) VALUES
(512, 'payfast', 0);

DELETE FROM `#__rsform_component_type_fields` WHERE ComponentTypeId = 512;

INSERT IGNORE INTO `#__rsform_component_type_fields` (`ComponentTypeId`, `FieldName`, `FieldType`, `FieldValues`, `Ordering`) VALUES
(512, 'NAME', 'textbox', '', 0),
(512, 'LABEL', 'textbox', '', 1),
(512, 'COMPONENTTYPE', 'hidden', '512', 2),
(512, 'LAYOUTHIDDEN', 'hiddenparam', 'YES', 3);

INSERT IGNORE INTO `#__rsform_config` (`SettingName`, `SettingValue`) VALUES
('payfast.merchantid', ''),
('payfast.merchantkey', ''),
('payfast.passphrase', ''),
('payfast.test', '0'),
('payfast.taxtype', '1'),
('payfast.taxvalue', '');