title: We’re sorry. This seller doesn’t accept payments in your currency
body: <p>I am trying to integrate paypal, but stuck with this error.</p>
  
  <blockquote>
    <p>We’re sorry. This seller doesn’t accept payments in your currency.
    Please return to the seller and choose another way to pay.</p>
  </blockquote>
  
  <p>The currency I am setting is USD. I have not blocked it and I have added it into my account.</p>
  
  <p><a href="https://i.stack.imgur.com/k7tSI.png" rel="noreferrer"><img src="https://i.stack.imgur.com/k7tSI.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/8ddY9.png" rel="noreferrer"><img src="https://i.stack.imgur.com/8ddY9.png" alt="enter image description here"></a></p>
  
  <p>Here is the code, I am using PHP.</p>
  
  <pre><code> $transaction_value = $this-&gt;payment_detail['amount'];
      // $this-&gt;response($transaction_value);
      $apiContext = new \PayPal\Rest\ApiContext(new \PayPal\Auth\OAuthTokenCredential(PAYPAL_CLIENTID,PAYPAL_SECRET));
      $payer = new \PayPal\Api\Payer();
      $payer-&gt;setPaymentMethod('paypal');
  
      $amount = new \PayPal\Api\Amount();
      $amount-&gt;setTotal($transaction_value);
      $amount-&gt;setCurrency($this-&gt;payment_detail['currency']);
      // $amount-&gt;setCurrency('INR');
  
      $transaction = new \PayPal\Api\Transaction();
      $transaction-&gt;setAmount($amount);
  
      $redirectUrls = new \PayPal\Api\RedirectUrls();
      $redirectUrls-&gt;setReturnUrl(PROTOCOL.base_url().'pay/api/process')
          -&gt;setCancelUrl(PROTOCOL.base_url().'home');
  
      $payment = new \PayPal\Api\Payment();
      $payment-&gt;setIntent('sale')
          -&gt;setPayer($payer)
          -&gt;setTransactions(array($transaction))
          -&gt;setRedirectUrls($redirectUrls);
      try {
          $payment-&gt;create($apiContext);
          // $this-&gt;response(array("paymentId" =&gt; $payment-&gt;id));
          header('Location: '.$payment-&gt;getApprovalLink());
          exit(0);
          // echo $payment;
  
          // echo "\n\nRedirect user to approval_url: " . $payment-&gt;getApprovalLink() . "\n";
      }
      catch (\PayPal\Exception\PayPalConnectionException $ex) {
          // This will print the detailed information on the exception.
          //REALLY HELPFUL FOR DEBUGGING
          echo $ex-&gt;getData();
      }
  </code></pre>