This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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" } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // screenshots must be an array of objects like: | |
| // { | |
| // filename: "...", | |
| // url: "...", | |
| // timestamp: "...", | |
| // uploadedAt: ... | |
| // } | |
| const screenshots = $input.first().json.screenshots || []; |
OlderNewer