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

Payments की Testing

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

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

Section titled “आज के लिए Recommended Testing Flow”
  1. $1 (या सबसे छोटी currency unit) का test product बनाएंAdmin > Commerce में
  2. अपना app publish करें अपने *.proyecta.live subdomain पर
  3. Published URL खोलें किसी अलग browser tab में और अपने card से पूरा checkout flow run करें
  4. Side effects verify करें — webhook handlers चले, customer बना, entitlements मिले
  5. Transaction refund करें Admin > Commerce > Payments tab से

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

Stripe Test Mode का उपयोग क्यों नहीं?

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

आज, Proyecta का Stripe से connection केवल live mode में चलता है। एक test mode toggle — जो Commerce को Stripe के test environment से connect करे और 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 में gated route को exercise करें
  • Test mode toggleAdmin > Commerce में — अपने Payment Account को Stripe test mode पर switch करें और dummy cards इस्तेमाल करें
  • Preview-mode checkout — publish किए बिना builder के अंदर checkout flow को exercise करें
  • Webhook event simulator — आपके runtime पर fake Stripe events fire करने के लिए