> ## Documentation Index
> Fetch the complete documentation index at: https://razorpay-60c89f9a-mintlify-audit-missing-sections-1778528421.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Business Seeks Consent from Some Customers Only

> If you can collect consent from a few of your users (possibly, new app versions) but unable to collect consent for the rest of your users (possibly, on old app versions), follow the steps below.

## 1. On Dashboard

Follow these steps:

<Steps>
  <Step title="Log in to the Dashboard.">
    Log in to the Dashboard.
  </Step>

  <Step title="Navigate to **Settings** → **Configuration**.">
    Navigate to **Settings** → **Configuration**.
  </Step>

  <Step title="Enable the **Collect Consent from Customers** feature. This means t...">
    Enable the **Collect Consent from Customers** feature. This means that Razorpay is responsible for collecting the customer consent.
  </Step>
</Steps>

## 2. In Integration Code

#### Business Collecting Customer Consent

If you are collecting customer consent, ensure that you pass the following parameters in the **Create Payment** request:

```js: Custom Checkout theme={null}

  Pay
  
       var razorpay = new Razorpay({
        key: "",
        image: "https://i.imgur.com/n5tjHFD.jpg",
        name: "Gaurav Kumar",
       });
       var data = {
        amount: 6666,
        currency: "INR",
        email: "gaurav.kumar@example.com",
        order_id: "order_ISsp1ekSCHgoAw",
        contact: +919876543210,
        notes: {
          address: "Ground Floor, SJR Cyber, Laskar Hosur Road, Bengaluru",
        },
        customer_id: "cust_1Aa00000000001",
        save: 1,
        consent_to_save_card: 1,
        method: "card",
        card[number]: '4242424242424242',
        card[expiry_month]: '11',
        card[expiry_year]: '23',
        card[cvv]: '123',
        card[name]: 'Gaurav Kumar'
       };

       document.getElementById("rzp-button1").onclick = function(){
        razorpay.createPayment(data);
        razorpay.on("payment.success", function(resp) {
          alert(resp.razorpay_payment_id)
          });
        razorpay.on("payment.error", function(resp){alert(resp.error.description)});
}

```

<Info>
  **Handy Tips**
</Info>

You can convert a token BIN received in response to an **actual BIN** using [token APIs](/payments/payment-methods/cards/token-hq/razorpay-requestor/apis).

#### Business Not Collecting Customer Consent

If you are not collecting customer consent, ensure that you pass the following parameters in the **Create Payment** request:

```js: Custom Checkout theme={null}

  Pay
  
       var razorpay = new Razorpay({
        key: "",
        image: "https://i.imgur.com/n5tjHFD.jpg",
        name: "Gaurav Kumar",
       });
       var data = {
        amount: 6666,
        currency: "INR",
        email: "gaurav.kumar@example.com",
        order_id: "order_ISsp1ekSCHgoAw",
        contact: ,
        notes: {
          address: "Ground Floor, SJR Cyber, Laskar Hosur Road, Bengaluru",
        },
        customer_id: "cust_1Aa00000000001",
        save: 1,
        method: "card",
        card[number]: '4242424242424242',
        card[expiry_month]: '11',
        card[expiry_year]: '23',
        card[cvv]: '123',
        card[name]: 'Gaurav Kumar'
       };

       document.getElementById("rzp-button1").onclick = function(){
        razorpay.createPayment(data);
        razorpay.on("payment.success", function(resp) {
          alert(resp.razorpay_payment_id)
          });
        razorpay.on("payment.error", function(resp){alert(resp.error.description)});
}

```

<Info>
  **Handy Tips**
</Info>

You can convert a token BIN received in response to an **actual BIN** using [token APIs](/payments/payment-methods/cards/token-hq/razorpay-requestor/apis).
