Skip to content

Instantly share code, notes, and snippets.

@slicksammy
slicksammy / spec.rb
Created April 4, 2025 15:22
same event twice
require 'rails_helper'
RSpec.describe ExternalEvents::FinixPlatformController, type: :controller do
let!(:business) { create(:business) }
let!(:business_customer) { create(:business_customer, business: business) }
let!(:checkout) { create(:checkout, business: business, business_customer: business_customer) }
let!(:payment_intent) { create(:payment_intent, :with_charge, checkout: checkout, business: business, business_customer: business_customer) }
let!(:charge) { payment_intent.charges.first }
let(:succeeded_event_type) { "SUCCEEDED" }
import React, { useEffect, useRef, useState } from 'react';
import { PaymentMethod, CheckoutData } from '../../types';
import { API_ENDPOINTS, BACKEND_URL } from '../../config';
import { captureException, addBreadcrumb } from '../../utils/sentry';
import { usePostHogTracking } from '../../hooks/usePostHogTracking';
import { useBasisTheory, CardNumberElement, CardExpirationDateElement, CardVerificationCodeElement } from '@basis-theory/react-elements';
interface BasisTheoryCardFormProps {
checkoutData: CheckoutData;
onNewPaymentMethodCreated: (newMethod?: PaymentMethod) => void;
@slicksammy
slicksammy / form
Created October 23, 2025 12:21
Forms
We are working with fintechs who have high touch / risky applications. The goal of our software is streamline this process for them while also making it a much better experience for the customer.
For now the focus is on forms. Forms can include a static/predefined section, an ai-generated section or both.
Forms
- static_form_part (json)
- ai_generated_form_part (json)
- ai_generated_sections (json)
- final_form (json)
- intake_q_id (uuid)
@slicksammy
slicksammy / ss.js
Created November 21, 2025 15:56
screenshot
// screenshots must be an array of objects like:
// {
// filename: "...",
// url: "...",
// timestamp: "...",
// uploadedAt: ...
// }
const screenshots = $input.first().json.screenshots || [];