[Answered ]-My Django project use Stripe payment gateway. how to remove billing address

1👍

In stripe, you can get rid of frequently asked billing address, by

  1. use customer field while creating sessions. This custom field expects a stripe customer_id like cus_xxxxxxxxxxxxx which is created as per this doc creation of customer object.
  2. You should add the address against the customer object created.
  3. Once this customer_id is used in the session object, you won’t find the form asking for the billing address.
  4. If you follow the above steps, make sure you don’t use both customer and customer_email while creating a session. Either of them should be passed. But passing customer_email will again provoke you to fill the address, so go with customer

Leave a comment