-- Manually seed Automatic Payment Gateways
-- Import this via phpMyAdmin.
-- Uses "ON DUPLICATE KEY UPDATE" to prevent errors if data already exists.

INSERT INTO `paymentgateway` (`id`, `name`, `slug`, `type`, `isEnabled`, `config`, `createdAt`, `updatedAt`) VALUES
('stripe', 'Stripe', 'stripe', 'AUTOMATIC', 1, '{\"publishableKey\":\"pk_test_sample\",\"secretKey\":\"sk_test_sample\"}', NOW(), NOW()),
('paypal', 'PayPal', 'paypal', 'AUTOMATIC', 1, '{\"clientId\":\"sb-client-id\",\"clientSecret\":\"sb-client-secret\",\"mode\":\"sandbox\"}', NOW(), NOW())
ON DUPLICATE KEY UPDATE `isEnabled` = 1, `updatedAt` = NOW();
