القسائم والخصومات والرموز الترويجية
عزّز التحويل والاحتفاظ بالعملاء باستخدام قسائم Stripe والرموز الترويجية الموجهة للعملاء والخصومات المطبقة على الاشتراكات والفواتير.
القسائم والخصومات والرموز الترويجية درس مجاني في Stripe Payments & SaaS Billing Systems على CoddyKit. هذا هو الدرس 4 من أصل 4. يمكنك قراءة الدرس كاملاً أدناه مجاناً — ثم تمرن عليه مباشرة في المتصفح باستخدام محرر أكواد مدمج ومدرس ذكاء اصطناعي متاح 24/7. هذا الدرس جزء من مسار التعلم في Stripe Payments & SaaS Billing Systems، وتقدمك يتزامن عبر الويب وتطبيق CoddyKit. تتضمن دورة Stripe Payments & SaaS Billing Systems 4 دروس في المجموع.
بعض أجزاء هذا الدرس لم تُترجم بعد وتظهر باللغة الإنجليزية.
Why Discounts Matter
Discounts drive sign-ups, win-back, and loyalty. Stripe has first-class support for coupons and promotion codes on subscriptions.
Coupons vs Promotion Codes
A coupon defines the discount logic. A promotion code is a customer-facing string that points to a coupon.
- Coupon: 20% off
- Promo code: SAVE20
Percentage vs Amount Off
A coupon discounts either a percentage or a fixed amount in a currency.
const coupon = { percent_off: 20 };
const price = 5000;
const discounted = price * (1 - coupon.percent_off / 100);
console.log(discounted);Duration of a Coupon
Coupons have a duration: once (one invoice), repeating (a set number of months), or forever.
Creating a Coupon
You create coupons in the dashboard or via API.
const coupon = await stripe.coupons.create({
percent_off: 25,
duration: 'repeating',
duration_in_months: 3
});Adding a Promotion Code
Wrap a coupon in a promo code so customers can type it at checkout.
const promo = await stripe.promotionCodes.create({
coupon: coupon.id,
code: 'SAVE25'
});Restrictions on Promo Codes
Promotion codes can be limited: first-time customers only, a minimum order amount, a max redemption count, or an expiry date.
Applying at Checkout
Enable the promo code field in Checkout so customers can self-apply codes without code changes.
const session = await stripe.checkout.sessions.create({
mode: 'subscription',
allow_promotion_codes: true,
line_items: [{ price: 'price_123', quantity: 1 }]
});Applying to an Existing Subscription
You can attach a discount to a running subscription, useful for retention offers when someone tries to cancel.
await stripe.subscriptions.update('sub_123', {
discounts: [{ coupon: 'coupon_abc' }]
});Discounts and Proration
Discounts interact with proration when plans change mid-cycle. Always test the resulting invoice preview to confirm the final charge.
Tracking Redemptions
Monitor how often each promo code is used and its impact on conversion, so you can retire underperforming offers.
Quick Check
What is the difference between a coupon and a promotion code?
Recap
You learned to offer discounts in Stripe:
- Coupons define the discount; promo codes expose it to customers
- Percentage or amount off, with once/repeating/forever duration
- Restrictions like first-time-only and expiry
- Apply at checkout or to existing subscriptions for retention
الأسئلة الشائعة
هل درس «القسائم والخصومات والرموز الترويجية» مجاني؟
نعم — نص درس «القسائم والخصومات والرموز الترويجية» كامل متاح مجاناً هنا على الويب. لتمرينه بشكل تفاعلي (محرر أكواد مدمج ومدرس ذكاء اصطناعي متاح 24/7) وفتح باقي دورة Stripe Payments & SaaS Billing Systems، انتقل إلى CoddyKit PRO. تتضمن دورة Stripe Payments & SaaS Billing Systems 4 دروس في المجموع.
ماذا ستتعلم في «القسائم والخصومات والرموز الترويجية»؟
عزّز التحويل والاحتفاظ بالعملاء باستخدام قسائم Stripe والرموز الترويجية الموجهة للعملاء والخصومات المطبقة على الاشتراكات والفواتير. تتمرن على Stripe Payments & SaaS Billing Systems مع أكواد عملية تشغلها مباشرة في المتصفح، ومدرس ذكاء اصطناعي متاح 24/7 يجيب على أسئلتك أثناء عملك.
هل أحتاج إلى خبرة سابقة لأبدأ Stripe Payments & SaaS Billing Systems؟
لا تُشترط خبرة سابقة. Stripe Payments & SaaS Billing Systems على CoddyKit منظم للمبتدئين حتى المتقدمين، لذا يمكنك البدء من هنا أو من البداية والتقدم بسرعتك الخاصة. هذا هو الدرس 4 من أصل 4.
كم من الوقت يستغرق درس «القسائم والخصومات والرموز الترويجية»؟
معظم دروس CoddyKit تستغرق حوالي 5–10 دقائق. كل منها موجز وتفاعلي، لذا تحرز تقدماً مستمراً وتستأنف من حيث توقفت عبر الويب والتطبيق.
هل يمكنني كتابة وتشغيل أكواد في درس Stripe Payments & SaaS Billing Systems هذا؟
نعم. كل درس في Stripe Payments & SaaS Billing Systems يتضمن محرر أكواد مدمج، لذا تكتب وتشغل أكواداً حقيقية مباشرة في متصفحك وتحصل على تعليقات فورية من الذكاء الاصطناعي — بدون إعداد محلي.
جميع الدروس في هذه الدورة
- التعامل مع الفترات التجريبية وترقية الخطط
- تنفيذ التوزيعات النسبية والفوترة حسب الاستخدام
- إدارة دورة حياة الاشتراكات وأحداثها
- القسائم والخصومات والرموز الترويجية