1 viewer
rust 1,860,549 · typescript 235,540 · javascript 132,956 · python 20,426 · 6,408 files · digest f04d4637f52b · built in 1.5 s · crystals off
crates/cre8-app-payment/src/providers/stripe.rs
Items
type HmacSha256 const STRIPE_CHECKOUT_SESSIONS_URL const STRIPE_REFUNDS_URL const STRIPE_WEBHOOK_ENDPOINTS_URL const WEBHOOK_TOLERANCE_SECS const STRIPE_HOSTED_CARD_WALLET_CONTRACT const REQUIRED_WEBHOOK_EVENTS struct StripePaymentProvider struct StripeSessionRefs struct StripeWebhookObjectRefs impl PaymentProvider for StripePaymentProvider const EVENT_STATUSES
Functions
By call-graph weight (PageRank; 1.0 is the average function). 47 functions in all.
| function | kind | lines | cyclomatic | callers | callees | weight | crystal |
|---|---|---|---|---|---|---|---|
| push_stripe_metadatasrc/providers/stripe.rs:507 | fn | 9 | 4 | 3 | 0 | 1.5 | |
| stripe_object_statussrc/providers/stripe.rs:498 | fn | 8 | 1 | 2 | 1 | 1.5 | |
| stripe_refund_statussrc/providers/stripe.rs:220 | fn | 9 | 5 | 3 | 0 | 1.3 | |
| apple_pay_checkout_contractsrc/providers/stripe.rs:315 | fn | 7 | 1 | 4 | 0 | 1.3 | |
| signature_partssrc/providers/stripe.rs:561 | fn | 9 | 1 | 2 | 0 | 1.2 | |
| stripe_session_refssrc/providers/stripe.rs:414 | fn | 8 | 1 | 1 | 1 | 1 | |
| verify_stripe_signaturesrc/providers/stripe.rs:533 | fn | 23 | 3 | 3 | 5 | 0.9 | |
| stripe_checkout_formsrc/providers/stripe.rs:299 | fn | 15 | 2 | 3 | 3 | 0.9 | |
| stripe_webhook_endpoint_formsrc/providers/stripe.rs:168 | fn | 17 | 2 | 3 | 1 | 0.8 | |
| stripe_webhook_idempotency_keysrc/providers/stripe.rs:230 | fn | 12 | 1 | 3 | 2 | 0.8 | |
| require_secretsrc/providers/stripe.rs:276 | fn | 3 | 1 | 4 | 2 | 0.8 | |
| stripe_metadata_valuesrc/providers/stripe.rs:517 | fn | 15 | 5 | 1 | 0 | 0.8 | |
| stripe_refund_formsrc/providers/stripe.rs:186 | fn | 16 | 3 | 2 | 0 | 0.8 | |
| status_for_eventsrc/providers/stripe.rs:463 | fn | 9 | 3 | 2 | 4 | 0.8 | |
| base_stripe_checkout_formsrc/providers/stripe.rs:323 | fn | 15 | 1 | 1 | 0 | 0.7 | |
| push_stripe_checkout_metadatasrc/providers/stripe.rs:339 | fn | 23 | 2 | 1 | 4 | 0.7 | |
| stripe_session_idsrc/providers/stripe.rs:451 | fn | 3 | 1 | 1 | 0 | 0.7 | |
| stripe_payment_intent_idsrc/providers/stripe.rs:455 | fn | 7 | 1 | 1 | 0 | 0.7 | |
| validate_public_webhook_urlsrc/providers/stripe.rs:160 | fn | 7 | 2 | 2 | 0 | 0.7 | |
| stripe_webhook_registrationsrc/providers/stripe.rs:243 | fn | 32 | 1 | 2 | 1 | 0.7 | |
| charge_refund_statussrc/providers/stripe.rs:473 | fn | 11 | 5 | 1 | 0 | 0.7 | |
| explicit_status_for_eventsrc/providers/stripe.rs:485 | fn | 12 | 1 | 1 | 0 | 0.7 | |
| push_optional_stripe_metadatasrc/providers/stripe.rs:363 | fn | 10 | 2 | 1 | 1 | 0.7 | |
| push_request_metadatasrc/providers/stripe.rs:374 | fn | 9 | 4 | 1 | 2 | 0.7 | |
| stripe_webhook_secret_namesrc/providers/stripe.rs:292 | fn | 6 | 1 | 1 | 0 | 0.7 | |
| signature_partsrc/providers/stripe.rs:557 | fn | 3 | 1 | 1 | 1 | 0.6 | |
| constant_time_eqsrc/providers/stripe.rs:571 | fn | 10 | 3 | 1 | 0 | 0.6 | |
| stripe_refund_responsesrc/providers/stripe.rs:203 | fn | 16 | 1 | 1 | 1 | 0.6 | |
| verify_stripe_webhooksrc/providers/stripe.rs:280 | fn | 11 | 1 | 1 | 3 | 0.6 | |
| stripe_webhook_object_refssrc/providers/stripe.rs:423 | fn | 11 | 1 | 1 | 2 | 0.6 | |
| stripe_payload_event_idsrc/providers/stripe.rs:435 | fn | 7 | 1 | 1 | 0 | 0.6 | |
| stripe_payload_event_typesrc/providers/stripe.rs:443 | fn | 3 | 1 | 1 | 0 | 0.6 | |
| stripe_payload_objectsrc/providers/stripe.rs:447 | fn | 3 | 1 | 1 | 0 | 0.6 | |
| stripe_session_paymentsrc/providers/stripe.rs:384 | fn | 29 | 1 | 1 | 1 | 0.5 | |
| StripePaymentProvider::create_sessionsrc/providers/stripe.rs:56 | trait impl | 28 | 1 | 0 | 9 | 0.5 | |
| StripePaymentProvider::verify_webhooksrc/providers/stripe.rs:85 | trait impl | 27 | 1 | 0 | 7 | 0.5 | |
| StripePaymentProvider::refund_paymentsrc/providers/stripe.rs:113 | trait impl | 21 | 1 | 0 | 7 | 0.5 | |
| StripePaymentProvider::register_webhook_endpointsrc/providers/stripe.rs:135 | trait impl | 23 | 1 | 0 | 9 | 0.5 | |
| accepts_valid_signaturesrc/providers/stripe.rs:587 | fn | 12 | 1 | 0 | 4 | 0.5 | |
| rejects_bad_signaturesrc/providers/stripe.rs:601 | fn | 8 | 1 | 0 | 3 | 0.5 | |
| webhook_registration_form_carries_the_complete_shop_event_contractsrc/providers/stripe.rs:611 | fn | 23 | 1 | 0 | 3 | 0.5 | |
| subscriptions_capability_adds_the_recurring_events_to_registrationsrc/providers/stripe.rs:636 | fn | 24 | 3 | 0 | 3 | 0.5 | |
| refund_form_is_full_scoped_and_idempotency_readysrc/providers/stripe.rs:662 | fn | 26 | 2 | 0 | 2 | 0.5 | |
| refund_status_distinguishes_pending_partial_and_completesrc/providers/stripe.rs:690 | fn | 22 | 1 | 0 | 2 | 0.5 | |
| webhook_registration_extracts_the_one_time_secret_without_weakening_httpssrc/providers/stripe.rs:714 | fn | 17 | 1 | 0 | 3 | 0.5 | |
| checkout_form_binds_declared_apple_pay_to_the_hosted_card_wallet_lanesrc/providers/stripe.rs:733 | fn | 35 | 2 | 0 | 2 | 0.5 | |
| checkout_form_does_not_claim_a_wallet_lane_without_the_capabilitysrc/providers/stripe.rs:770 | fn | 23 | 1 | 0 | 3 | 0.5 |
Source not readable from this process.