इसे छोड़कर कंटेंट पर जाएं

भुगतान की जांच करना

लाइव जाने से पहले पूरे purchase flow को test करें। एक built-in test mode toggle जल्द आने वाला है; अभी के लिए, published preview पर कम मूल्य के product के साथ एक real card का उपयोग करें।

Proyecta Commerce अभी केवल production में काम करता है — builder में कोई ऐसा toggle नहीं है जो test और live mode के बीच switch करे। आज के लिए सुझाया गया तरीका यह है कि अपना app publish करो, कम मूल्य के product के साथ एक real payment करो, और तुरंत खुद को refund कर दो।

आज के लिए अनुशंसित testing flow

Section titled “आज के लिए अनुशंसित testing flow”
  1. Dashboard > Commerce में एक $1 (या सबसे छोटी currency unit) का test product बनाओ
  2. अपने *.proyecta.live subdomain पर अपना app publish करो
  3. एक अलग browser tab में published URL खोलो और अपने card से पूरा checkout flow चलाओ
  4. Side effects की पुष्टि करो — webhook handlers चले, customer बना, entitlements मिलीं
  5. Dashboard > Commerce > Payments tab से transaction refund करो

इससे तुम्हें real money path की पूरी end-to-end coverage मिलती है, जो यह 100% सुनिश्चित करने का एकमात्र तरीका है कि तुम्हारा integration सही काम कर रहा है।

Stripe test mode का उपयोग क्यों नहीं?

Section titled “Stripe test mode का उपयोग क्यों नहीं?”

आज, Proyecta का Stripe से connection केवल live mode में चलता है। एक test mode toggle — जो Commerce को Stripe के test environment की ओर point करे और 4242 4242 4242 4242 जैसे dummy cards इस्तेमाल करने दे — roadmap पर है।

  • Unhappy paths test करो — declined cards, abandoned checkouts, network errors
  • Webhooks को end-to-end test करो — सुनिश्चित करो कि जब Stripe events fire हों तो तुम्हारा subscription state सही तरह से update हो
  • Cancellation test करोat_billing_period_end flow को नज़रअंदाज़ करना आसान है
  • Feature gates test करो — यह मान लेने से पहले कि यह काम करता है, किसी UI flow से commerce.check() call करो

जल्द आने वाला है

Section titled “जल्द आने वाला है”
  • Dashboard > Commerce में Test mode toggle — अपना Payment Account Stripe test mode पर switch करो और dummy cards उपयोग करो
  • Preview-mode checkout — publish किए बिना builder के अंदर checkout flow को test करो
  • Webhook event simulator — अपने runtime पर fake Stripe events fire करने के लिए