Customers
अपने app के billable users को manage करें। Admin > Commerce > Customers tab में customers देखें।
एक customer वह entity है जिससे आपके app में charge लिया जाता है — आमतौर पर एक user, organization, या project। जैसे ही आपके खुद के database में संबंधित entity बनती है, आप Proyecta में एक customer बनाते हैं, और फिर लौटाए गए id को store कर लेते हैं ताकि बाद में उसे reference कर सकें।
Customers tab
Section titled “Customers tab”Admin > Commerce खोलें और Customers पर switch करें — यहाँ current app के सभी billable customers दिखेंगे। हर row में ये जानकारी होती है:
- पूरा नाम
- कब बनाया गया
Panel में और बेहतर search और filtering controls जल्द आने वाले हैं।
आमतौर पर आपको खुद customers नहीं बनाने पड़ते — जब कोई checkout करता है तो automatically एक record लिख दिया जाता है। उन्हें ढूंढने, उनकी details edit करने, और access देने के लिए Customers tab का उपयोग करें।
सामान्य patterns
Section titled “सामान्य patterns”ये prompts हैं, code नहीं — बताएँ आप क्या चाहते हैं और AI उसे build कर देगा:
Add an account page where a signed-in customer can see their past ordersand the details we hold on them.On the order confirmation page, show the customer their order number andemail them a copy of the receipt.क्या मुझे हर user के लिए Proyecta customer बनाना चाहिए, या सिर्फ paying users के लिए?
हर user के लिए बनाएँ। यह free है, idempotent है (same email से calls करने पर same customer वापस मिलता है), और इसका मतलब है कि जैसे ही कोई user upgrade करे आप तैयार हैं — बाद में backfill करने की कोई जरूरत नहीं।
क्या एक customer के पास कई subscriptions हो सकते हैं?
हाँ। Subscriptions customers से belong करती हैं, उल्टा नहीं — एक नई subscription बनाने के लिए दोबारा checkout शुरू करें।
मैं कैसे देखूँ कि कोई customer किस चीज़ को subscribe किया हुआ है?
अभी के लिए: embedded Stripe dashboard के ज़रिए, या useEntitlement() से जो भी feature आपको जाँचनी हो उसे check करके। Panel में subscription history view roadmap पर है।