Skip to content

Instantly share code, notes, and snippets.

export const ChargebackCodes: ChargebackReason[] = [
{
code: '10.1',
reason: 'EMV Liability Shift Counterfeit Fraud',
description:
'The cardholder claims a counterfeit chip card was used at a POS system where the transaction was not processed as a chip transaction.',
fraud: true,
},
{
code: '10.2',
import { SolanaNet, User } from "@phantasia/model-interfaces";
import {
getAccessToken,
isConnected,
isNotCreated,
User as PrivyUser,
useEmbeddedSolanaWallet,
useEmbeddedWalletStateChange,
usePrivy,
} from "@privy-io/expo";
@jmont96
jmont96 / account.ts
Last active May 19, 2025 19:01
Oscilar Schema
// Type definitions
type CountryCode = string; // Two character ISO 3166 country code, e.g., "US", "GB"
// Account-related Enums
enum AccountType {
Checking = "checking",
Saving = "saving",
CreditCard = "credit_card",
DebitCard = "debit_card",
Wallet = "wallet",
function onSuccess(args: [args: string | {
paymentId: string;
hash?: string | undefined;
}]){
window.location.href =
`intent://callback?status=success&payment_id=${args.paymentId}#Intent;scheme=coinflow_demo;package=com.example.coinflow_demo;end;`}
}
// IFRAME on your website checkout page
[
{
"email": "[email protected]",
"dbaName": "J&K Studios",
"url": "http://www.jkdigitals.com",
"typeOfBusiness": "Corporation",
"dateOfIncorporation": "12/22/2023",
"province": "Delaware",
"countryOfRegistration": "US",
"provinceOfRegistration": "Delaware",
@jmont96
jmont96 / .json
Created March 13, 2025 13:25
Data for Scott
[
{
"email": "[email protected]",
"dbaName": "J&K Studios",
"url": "http://www.jkdigitals.com",
"typeOfBusiness": "Corporation",
"dateOfIncorporation": "12/22/2023",
"province": "Delaware",
"countryOfRegistration": "US",
"provinceOfRegistration": "Delaware",
@jmont96
jmont96 / sandbox.ts
Created January 19, 2025 17:03
A sandbox file
async function sandbox() {
await connect(process.env.MONGO_URI!);
const alerts: {alertId: string; paymentId: string}[] = [];
const paymentIds = alerts.map(alert => alert.paymentId);
const payments: CardPaymentDoc[] = await PaymentModel.find({
_id: {$in: paymentIds},
cardInfo: {$exists: true},
@jmont96
jmont96 / .diff
Created December 27, 2024 16:29
iOS Chargeback Protection
commit 66b7881cc69bec222c3077cb6231863eeca9c92a
Author: Jake Montgomery <[email protected]>
Date: Tue Jun 25 16:56:04 2024 -0500
nsure
diff --git a/apps/sweep-dfs/hooks/useNsure.js b/apps/sweep-dfs/hooks/useNsure.js
index 0ba51d9..5c6c546 100644
--- a/apps/sweep-dfs/hooks/useNsure.js
+++ b/apps/sweep-dfs/hooks/useNsure.js
@jmont96
jmont96 / .diff
Created December 27, 2024 16:27
Android Chargeback Protection
commit d45e6310e0838c8d3a7e05b89f43e92114e78e18
Author: Jake Montgomery <[email protected]>
Date: Mon Aug 19 20:50:45 2024 -0500
android nsure
diff --git a/apps/sweep-dfs/android/app/build.gradle b/apps/sweep-dfs/android/app/build.gradle
index 18b1185..a6143aa 100644
--- a/apps/sweep-dfs/android/app/build.gradle
+++ b/apps/sweep-dfs/android/app/build.gradle