Pay::Charge (1)
# {
:id => 2957,
:customer_id => 4226,
:subscription_id => nil,
:processor_id => "qhI76FxkFVLvfrJ1tziPu",
:amount => 19900,
:currency => nil,
:application_fee_amount => nil,
:amount_refunded => nil,
:metadata => {
"purchase_type" => "credit_pack",
"pack_name" => "pro",
"credits" => 5000,
"bonus_credits" => 100,
"price_cents" => 19900,
"price_currency" => "USD"
},
:data => {
"payment_method_type" => "card",
"brand" => "Fake",
"last4" => 1234,
"exp_month" => 7,
"exp_year" => 2026
},
:stripe_account => nil,
:created_at => 2026-07-12 10:41:33.675131000 UTC +00:00,
:updated_at => 2026-07-12 10:41:33.675131000 UTC +00:00,
:type => "Pay::FakeProcessor::Charge"
}
Pay::Subscription (2)
# {
"id" => 1472,
"customer_id" => 4226,
"name" => "default",
"processor_id" => "Eaif-0HDG_IQlB7A8yvBu",
"processor_plan" => "abcdef123456",
"quantity" => 1,
"status" => "active",
"current_period_start" => nil,
"current_period_end" => nil,
"trial_ends_at" => nil,
"ends_at" => nil,
"metered" => nil,
"pause_behavior" => nil,
"pause_starts_at" => nil,
"pause_resumes_at" => nil,
"application_fee_percent" => nil,
"metadata" => {
"purchase_type" => "credit_subscription",
"subscription_name" => "test_plan",
"fulfillment_period" => "1 month",
"credits_per_period" => 10,
"signup_bonus_credits" => 0,
"trial_credits" => 0,
"rollover_enabled" => false,
"expire_credits_on_cancel" => false,
"credit_expiration_period" => nil,
"metadata" => {}
},
"data" => nil,
"stripe_account" => nil,
"payment_method_id" => nil,
"created_at" => 2026-07-12 13:10:57.490302000 UTC +00:00,
"updated_at" => 2026-07-12 13:10:57.490302000 UTC +00:00,
"type" => "Pay::FakeProcessor::Subscription",
"prorate" => true
}
# {
"id" => 1470,
"customer_id" => 4226,
"name" => "default",
"processor_id" => "XhkwDHPWNz_j1lSP65DJE",
"processor_plan" => "abcdef123456",
"quantity" => 1,
"status" => "active",
"current_period_start" => nil,
"current_period_end" => nil,
"trial_ends_at" => nil,
"ends_at" => nil,
"metered" => nil,
"pause_behavior" => nil,
"pause_starts_at" => nil,
"pause_resumes_at" => nil,
"application_fee_percent" => nil,
"metadata" => {
"purchase_type" => "credit_subscription",
"subscription_name" => "test_plan",
"fulfillment_period" => "1 month",
"credits_per_period" => 10,
"signup_bonus_credits" => 0,
"trial_credits" => 0,
"rollover_enabled" => false,
"expire_credits_on_cancel" => false,
"credit_expiration_period" => nil,
"metadata" => {}
},
"data" => nil,
"stripe_account" => nil,
"payment_method_id" => nil,
"created_at" => 2026-07-11 15:20:49.308781000 UTC +00:00,
"updated_at" => 2026-07-11 15:20:49.308781000 UTC +00:00,
"type" => "Pay::FakeProcessor::Subscription",
"prorate" => true
}