Pay::Charge (1)
# {
:id => 4340,
:customer_id => 5973,
:subscription_id => nil,
:processor_id => "KTdrueVLVL1GiMjfe4IWe",
: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" => 11,
"exp_year" => 2026
},
:stripe_account => nil,
:created_at => 2026-11-28 14:38:58.420657000 UTC +00:00,
:updated_at => 2026-11-28 14:38:58.420657000 UTC +00:00,
:type => "Pay::FakeProcessor::Charge"
}
Pay::Subscription (2)
# {
"id" => 1927,
"customer_id" => 5973,
"name" => "default",
"processor_id" => "d1ekXU2AQMAWINbBGgC73",
"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-11-28 11:37:57.041788000 UTC +00:00,
"updated_at" => 2026-11-28 11:37:57.041788000 UTC +00:00,
"type" => "Pay::FakeProcessor::Subscription",
"prorate" => true
}
# {
"id" => 1928,
"customer_id" => 5973,
"name" => "default",
"processor_id" => "fRTiA1YxfdjgTW2RY4AN1",
"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-11-28 16:18:06.051937000 UTC +00:00,
"updated_at" => 2026-11-28 16:18:06.051937000 UTC +00:00,
"type" => "Pay::FakeProcessor::Subscription",
"prorate" => true
}