Billflow
  • Quick Start
  • Setup
    • First Time Setup
      • Connect & Setup Stripe
      • Invite Team Members
      • Create Your First Billing Page
      • Embed The Billing Page
      • Activate Live Payments
  • Billing Pages
    • Plan Picker
    • Checkout Form
    • Customer Portal
    • Pricing Page
    • Invoice Portal
  • How-to's
    • Setup Pricing
      • Flat-rate Subscriptions
      • Free Trial
      • Unit-based
      • Meter-based
      • Setup Fees
      • One-Time Payment
      • Payment Plans (Subscription Schedules)
      • Complex Pricing
      • Add-ons
    • Connect to SaaS
      • Using Stripe Webhooks
    • Change Style
      • Plan Picker Style Templates
      • Customer Portal Style Templates
      • Pricing Page Style Templates
      • Checkout Form Style Templates
    • Update Pricing
    • Use Coupons
    • Enable Quantity Management
    • Enterprise Sales Flow
    • Cancellations/Payment Failures
      • Set up Cancellation Feedback
      • Configure Dunning Emails
    • Automated emails
    • Internationalization
      • Support multiple currencies
      • Support multiple languages
    • Upgrade to new Billing Pages
    • Record Usage
    • VAT & Taxes
    • Indian Recurring Payments
  • No-code Integrations
    • No-code App Builders
      • Bubble
        • How to connect Stripe webhooks to Bubble
      • Webflow
      • WordPress
        • Add Widgets
        • Advanced Usage
        • Useful Plugins
      • Notion
      • Drupal
    • Rewardful
    • ChurnKey
  • Developer Docs
    • Embed Configurations
      • Plan Picker Configs
      • Checkout Form Configs
      • Customer Portal Configs
      • Pricing Page Configs
      • Invoice Portal Configs
    • Handling Events
    • Languages & Frameworks
    • Customize Elements
    • Versions & Beta Testing
  • Help
    • Managing Account & Team
      • Reset Your Password
      • Manage Team Members
    • Frequently Asked Questions
    • Changelog
Powered by GitBook
On this page
  • Options for new subscribers
  • Script for existing subscribers

Was this helpful?

  1. How-to's

Indian Recurring Payments

PreviousVAT & TaxesNextNo-code App Builders

Last updated 3 years ago

Was this helpful?

This is in regard to

It only applies to customers located in India. Two changes need to be made for customers in India. One is to set all new subscriptions created to "Send Invoice" instead of "Charge Automatically" and to set the days until due option. The second change is to update existing subscriptions for Indian customers.

Options for new subscribers

Set the "Days Until Due" option in the Checkout Form settings in the Billflow Dashboard. Billflow will automatically set the subscription payment to be via send invoice instead of charge automatically for customers located in India.

Script for existing subscribers

You will need to update existing subscriptions for Indian customers. You can do this from the dashboard by changing the payment option from automatically charge to send invoice. If you have many customers, you can run the script we have provided below. You can set 'days_until_due' to a value you need.

async function main() {
    const stripe = require("stripe")("your_stripe_secret_key")
    for await (let subscription of stripe.subscriptions.list({ expand: ["data.default_source", "data.default_payment_method", "data.customer.default_source"] })) {
        if ((subscription.default_source && subscription.default_source.country == "IN")
            || (subscription.default_payment_method && subscription.default_payment_method.card && subscription.default_payment_method.card.country == "IN")
            || (subscription.customer.default_source && subscription.customer.default_source.country == "IN")) {
            console.log("FOUND AN INDIAN CUSTOMER, moving to send_invoice instead of charge_automatically", subscription.customer.id);
            stripe.subscriptions.update(subscription.id, {
                collection_method: "send_invoice",
                days_until_due: 20
            })
        }
    }
}
main()
Important updates to RBI regulations on recurring card payments in India
Billflow dashboard option