이 페이지는
@whop/elements@1.10.0 및 @whop/elements-react@1.10.0을 다룹니다.v1.0.0부터 지원.
Wallet에서 모달로 엽니다: wallet.createOverlay('activityDetail'). props와 콜백은 생성 옵션으로 전달합니다.
이 엘리먼트는 모달 전용입니다.
createOverlay로 여세요. 인라인 마운트는 지원하지 않습니다.import { WhopElements, Wallet, ActivityDetailElement } from "@whop/elements-react";
import { loadWhop } from "@whop/elements";
function Example() {
return (
<WhopElements elements={loadWhop()}>
<Wallet /* options */>
<ActivityDetailElement onCardSelected={(e) => console.log(e)} onCardholderSelected={(e) => console.log(e)} onCardTransactionIssueRequested={(e) => console.log(e)} />
</Wallet>
</WhopElements>
);
}
<script src="https://cdn.whop.com/elements/amber/elements.js" data-whop-elements></script>
<script type="module">
const wallet = window.WhopElements().wallet.create({ /* options */ });
wallet.createOverlay('activityDetail', {
onCardSelected: (e) => console.log(e),
onCardholderSelected: (e) => console.log(e),
onCardTransactionIssueRequested: (e) => console.log(e)
}).open();
</script>
예시 데이터입니다. Playground 열기.
Props
미리 가져온 원장 활동 행입니다(선택 사항). 제공하면 엘리먼트가 추가 요청 없이 이를 렌더링합니다. 기본값은
null입니다.표시 속성
표시 속성
이 활동이 기록된 원장 항목 카테고리입니다.
표시 값
표시 값
"withdrawal", "accelerated_settlement_fee", "account_settlement", "ad_affiliate_payout", "ad_affiliate_payout_received", "ad_balance_funding_receipt", "ad_budget_release", "ad_campaign_budget", "ad_funding_disbursement", "ad_income_expense", "ad_income_receipt", "ad_network_cost", "ad_network_settlement", "ad_publisher_payout", "ad_publisher_payout_received", "ad_spend_charge", "ad_spend_margin", "ad_spend_purchase", "ads_card_spread", "affiliate_fee", "aggregated_fee", "airdrop", "airdrop_expense", "airdrop_expense_reversal", "airdrop_link_canceled", "airdrop_link_claimed", "airdrop_link_created", "airdrop_link_funded", "airdrop_link_redeemed", "airdrop_link_returned", "airdrop_reversal", "application_fee", "application_fee_payable", "application_fee_payout", "bad_debt_expense", "bad_debt_offset", "balance_reservation", "balance_reservation_hold", "balance_reservation_release", "balance_reservation_reversal", "billing_percentage_fee", "buyer_fee", "card_interchange", "card_interchange_receivable", "card_load_deposit", "card_load_transfer", "card_spend_authorization", "card_spend_authorization_hold", "card_spend_authorization_void", "card_spend_authorization_void_release", "card_spend_capture", "card_spend_capture_offset", "card_spend_refund", "card_spend_refund_offset", "card_unload_deposit", "card_unload_transfer", "cashback", "cashback_expense", "cashback_funding", "clawback_fee", "clawback_receivable", "clawback_receivable_reversal", "clawback_receivable_settlement", "clawback_receivable_settlement_reversal", "company_referral", "connected_account_clawback", "connected_account_negative_balance", "cross_border_percentage_fee", "currency_conversion_incoming", "currency_conversion_outgoing", "dispute_alert_fee", "dispute_hold_adjustment", "dispute_hold_blocked", "dispute_management_fee", "dispute_payable_clearing", "dispute_payable_reversal", "dispute_representment_fee", "dispute_settlement", "dispute_settlement_reversal", "dispute_unreconciled_clearing", "dispute_unreconciled_reversal", "economic_intelligence_percentage_fee", "external_account_connection_fee", "external_card_load_deposit", "external_card_load_offset", "fraud_prevention_fee", "fx_gain_loss", "fx_markup", "fx_percentage_fee", "fx_settlement_gain_loss", "high_risk_merchant_fee", "identity_verification_fee", "installment_default", "internal_balance_transfer_incoming", "internal_balance_transfer_outgoing", "internal_withdrawal", "internal_withdrawal_complete", "internal_withdrawal_fee", "internal_withdrawal_fee_reversal", "internal_withdrawal_in_transit", "internal_withdrawal_in_transit_reversal", "internal_withdrawal_markup_fee", "internal_withdrawal_markup_fee_payout", "internal_withdrawal_markup_fee_payout_reversal", "internal_withdrawal_markup_fee_reversal", "internal_withdrawal_payable", "internal_withdrawal_payable_reversal", "internal_withdrawal_reversal", "legacy_crypto_payment", "legacy_payment", "legacy_payment_refund", "levels_points_ads", "levels_points_burned", "levels_points_card", "levels_points_issued", "levels_points_partner", "levels_points_trading", "levels_rebate", "license_sale", "license_sale_commission", "license_sale_revenue", "marketing_expense", "marketplace_affiliate_fee", "misc_purchase", "misc_refund", "misc_reversal", "onboarding_reward", "onchain_deposit", "onchain_deposit_offset", "onchain_internal_transfer_incoming", "onchain_internal_transfer_outgoing", "onchain_platform_transfer_incoming", "onchain_platform_transfer_outgoing", "onchain_swap_offset", "onchain_swap_source", "onchain_swap_target", "onchain_wallet_transfer_incoming", "onchain_wallet_transfer_outgoing", "onchain_withdrawal", "onchain_withdrawal_offset", "orchestration_percentage_fee", "partner_grant_reward", "passthrough_gmv", "passthrough_gmv_offset", "payment_dispute", "payment_dispute_adjustment", "payment_dispute_fee", "payment_dispute_reversal", "payment_gross", "payment_gross_reversal", "payment_processing_fixed_fee", "payment_processing_percentage_fee", "payment_receivable_clearing", "payment_receivable_reversal", "payment_receivable_settlement", "payment_referral", "payment_referral_payable", "payment_referral_refund", "payment_referral_reversal", "payment_refund", "payment_refund_fee", "payment_refund_reversal", "payment_return_fee", "payment_revshare", "payment_revshare_payout", "payment_revshare_refund", "payment_revshare_reversal", "payment_unreconciled_clearing", "payment_unreconciled_reversal", "payout_fee", "payout_receivable", "payout_subsidy", "payout_unreconciled_clearing", "platform_affiliate_payment", "platform_affiliate_payment_reversal", "platform_balance_payment", "platform_balance_payment_refund", "platform_balance_transfer_fee", "platform_balance_transfer_incoming", "platform_balance_transfer_outgoing", "platform_covered_dispute", "platform_credits_granted", "platform_credits_payment", "platform_credits_payment_refund", "platform_earning", "platform_earning_settlement", "platform_earning_unreconciled_clearing", "platform_markup_fee", "platform_markup_fee_payout", "promo_reversal", "psp_accelerated_settlement_fee", "psp_account_debit", "psp_account_updater_fee", "psp_adjusted_processing_fee", "psp_authentication_fee", "psp_bank_pull_clearing", "psp_bank_pull_settlement", "psp_billing_fee", "psp_clawback_fee", "psp_clawback_settlement", "psp_clawback_settlement_reversal", "psp_collection_settlement", "psp_commission_fee", "psp_connect_fee", "psp_correction", "psp_currency_conversion_incoming", "psp_currency_conversion_outgoing", "psp_currency_conversion_receivable", "psp_currency_conversion_receivable_clearing", "psp_dispute_alert_fee", "psp_dispute_fee", "psp_dispute_management_fee", "psp_dispute_payable", "psp_external_account_connection_fee", "psp_fixed_fee", "psp_fx_adjustment", "psp_gateway_fee", "psp_identity_verification_fee", "psp_interchange_fee", "psp_invoice_tax_fee", "psp_invoicing_fee", "psp_markup_fee", "psp_network_token_fee", "psp_optimization_fee", "psp_payin_clearing", "psp_payin_settlement", "psp_payment_method_fee", "psp_payment_receivable", "psp_payout_consolidation", "psp_payout_deposit", "psp_payout_fee", "psp_payout_receivable", "psp_payout_receivable_clearing", "psp_payout_settlement", "psp_payout_settlement_reversal", "psp_pool_clearing", "psp_pool_dispute_settlement", "psp_pool_refund_clearing", "psp_pool_refund_settlement", "psp_pool_settlement", "psp_processing_fee", "psp_receivable_pooled", "psp_recipient_wallet_load", "psp_refund_fee", "psp_refund_payable", "psp_reserve_hold", "psp_reserve_release", "psp_risk_fee", "psp_scheme_fee", "psp_service_fee", "psp_tax_filing_fee", "psp_tax_service_fee", "psp_terminal_fee", "psp_transfer_settlement", "psp_transfer_settlement_reversal", "psp_treasury_fee", "psp_variable_fee", "psp_withholding_tax", "recipient_wallet_load", "referral_bonus", "refund_payable_clearing", "refund_payable_reversal", "refund_settlement", "refund_settlement_reversal", "refund_unreconciled_clearing", "refund_unreconciled_reversal", "resolution_center_refund", "revshare_percentage_fee", "sales_tax_collected", "sales_tax_collected_reversal", "sales_tax_fee", "sales_tax_remittance", "sales_tax_remittance_reversal", "sales_tax_remitted", "settlement_rounding_variance", "settlement_shortfall_loss", "software_rental_revshare", "software_rental_transaction", "stripe_domestic_processing_fee", "stripe_international_processing_fee", "swap_fee", "tax_filing_fee", "three_ds_fixed_fee", "topup", "topup_fee", "topup_reversal", "trading_account_deposit", "trading_account_deposit_offset", "trading_account_withdrawal", "trading_account_withdrawal_offset", "treasury_fee", "treasury_payin", "treasury_payin_receivable", "whop_processing_fee", "whop_swap_fee_received", "withdrawal_clawback", "withdrawal_clawback_reversal", "withdrawal_fee", "withdrawal_fee_reversal", "withdrawal_markup_fee", "withdrawal_markup_fee_payout", "withdrawal_markup_fee_payout_reversal", "withdrawal_markup_fee_reversal", "withdrawal_payable", "withdrawal_payable_clearing", "withdrawal_payable_clearing_reversal", "withdrawal_payable_reversal", "withdrawal_reclassification", "withdrawal_reversal", "withdrawal_topup_adjustment", "deposit", "wallet_transfer_incoming", "wallet_transfer_outgoing", "swap_source", "swap_target" 중 하나입니다.이 거래의 달러 가치를 10진수 문자열로 나타내며,
amount와 같은 부호를 가집니다. 항목이 기록된 시점의 환율로 기록 금액에서 환산되며(지갑 잔액 차트 및 재무 보고서와 같은 가격 기준), 따라서 암호화폐 행에도 달러 가치가 포함됩니다. Whop이 환율을 보유하지 않은 통화의 경우 null입니다.이 활동이 사용 가능한 자금에 영향을 주는 시점의 ISO 8601 타임스탬프입니다. 대기 중인 확정 자금 해제 버킷의 입금 및 출금은 예정된 해제일의 00:00:00 UTC이고, 환불, 분쟁, 지급을 포함하여 정산된 사용 가능 자금에 대한 입금 및 출금은 기록 시각입니다. 온체인 행을 포함하여 이러한 경로 밖의 활동은 Null입니다. available_after/before 필터는 이 값의 UTC 날짜를 사용합니다. 기본 활동에서는 옵트인 적립금을 포함한 일부 거래가 제외됩니다.
이 원장 활동과 연결된 리소스입니다.
표시 형태 4
표시 형태 4
표시 형태 5
표시 형태 5
표시 형태 6
표시 형태 6
이 원장 활동의 출처입니다. 플랫폼 마크업 수수료는 object platform_fee와 원장 활동 ID를 사용합니다.
표시 속성
표시 속성
표시 속성
표시 속성
표시 속성
표시 속성
표시 속성
표시 속성
이 원장 활동과 관련된 결제입니다. 리치 리소스 하이드레이션이 활성화되어 있고 거래가 결제와 연결된 경우에 포함됩니다.
표시 속성
표시 속성
표시 속성
표시 속성
조회하여 카드 영수증으로 표시할 카드 거래 ID(
citx_)입니다(선택 사항). 카드 테이블에서 행을 누르면 반환되는 값입니다. activityId보다 우선하며, 미리 가져온 행이 전달되면 무시됩니다. 기본값은 null입니다.카드 영수증에 카드 소지자 행을 표시합니다. 회사 계정 전용입니다. 개인 지갑은 카드 소지자가 한 명이므로 이 행이 표시되지 않습니다. 이름을 읽으려면
company:authorized_user:read가 필요하며, 없으면 행에 Unavailable이 표시됩니다. 기본값은 true입니다.이벤트
생성 옵션 또는 React props로 콜백을 전달합니다.onCardSelected
카드 행이 클릭되었습니다.
onCardholderSelected
카드 소지자 행이 클릭되었습니다. 해당 사용자에 대한 자체 프로필 화면을 여세요.
onCardTransactionIssueRequested
Report an issue가 클릭되었습니다. 호스트가 소유한 카드 분쟁 흐름을 여세요.
onLoaderStart
로딩 스켈레톤이 처음 그려진 후, onReady 전에 실행됩니다.
onReady
엘리먼트가 처음으로 완전히 그려진 후 실행됩니다.
onError
엘리먼트가 로드에 실패하거나 충돌할 때 실행됩니다. 대체 화면은 계속 표시됩니다. 프로그래밍 방식으로 처리하려면 code를 사용하세요. sourceKey는 실패한 호스트 상태 소스를 식별합니다.
메서드
create가 반환한 핸들에서, 또는 React ref를 통해 호출합니다.
mount
target에 엘리먼트를 마운트하고 로딩을 시작합니다. React 컴포넌트는 자동으로 마운트됩니다.
매개변수
destroy
엘리먼트를 제거하고 프레임과 구독을 해제합니다. 여러 번 호출해도 됩니다. React는 엘리먼트를 자동으로 제거합니다.
update
마운트된 엘리먼트에 새 props를 병합합니다. React에서는 대신 컴포넌트 props를 변경하세요.
매개변수
스타일링
이 엘리먼트는 스타일링용 클래스 이름을 노출하지 않습니다. 스타일을 변경하려면appearance(테마, 강조 색상, 변수)를 사용하세요.
