# Localhost websites cannot be used as complete\_checkout\_url

**URL:** <https://community.rapyd.net/t/localhost-websites-cannot-be-used-as-complete-checkout-url/545>\
**Category:** ⚙️ API\
**Created:** [June 26, 2021, 12:43am UTC](https://community.rapyd.net/t/localhost-websites-cannot-be-used-as-complete-checkout-url/545 "2021-06-26T00:43:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ptasdevz](https://sea2.discourse-cdn.com/flex016/user_avatar/community.rapyd.net/ptasdevz/32/987_2.png) [@ptasdevz](https://community.rapyd.net/u/ptasdevz)\
**Post date:** [June 26, 2021, 12:43am UTC](https://community.rapyd.net/t/localhost-websites-cannot-be-used-as-complete-checkout-url/545/1 "2021-06-26T00:43:54Z")

</div>

I am trying use a localhost website as a complete checkout url in my sanbox testing, however, I am getting a 403 error. See below

i’m still getting the error  
{“amount”:100,“country”:“CO”,“currency”:“COP”,“complete\_checkout\_url”:“[http://localhost:5000/api/rapyd/checkout",“error\_payment\_url”:"http://localhost:5000/api/rapyd/checkout](http://localhost:5000/api/rapyd/checkout%22,%22error_payment_url%22:%22http://localhost:5000/api/rapyd/checkout)”}  
error: null  
statusCode: 403  
body:

403 Forbidden
# 403 Forbidden

---

<div class="post-metadata">

**Author:** ![CharlesDorsett](https://sea2.discourse-cdn.com/flex016/user_avatar/community.rapyd.net/charlesdorsett/32/47_2.png) [@CharlesDorsett](https://community.rapyd.net/u/CharlesDorsett)\
**Post date:** [June 27, 2021, 8:52am UTC](https://community.rapyd.net/t/localhost-websites-cannot-be-used-as-complete-checkout-url/545/2 "2021-06-27T08:52:22Z")

</div>

For testing in the sandbox, you can use any live URL that you can find on the Internet. If localhost isn’t working for you, don’t waste any time on it. Use the URL for the last thing you bought online! 😉

---

<div class="post-metadata">

**Author:** ![Anirudh](https://sea2.discourse-cdn.com/flex016/user_avatar/community.rapyd.net/anirudh/32/4261_2.png) [@Anirudh](https://community.rapyd.net/u/Anirudh)\
**Post date:** [December 8, 2022, 6:20pm UTC](https://community.rapyd.net/t/localhost-websites-cannot-be-used-as-complete-checkout-url/545/3 "2022-12-08T18:20:00Z")

</div>

Thanks a lot.

But read your comment lately(time wasted)

This is not getting shown in the recommendations.  
In my case, I get the error as jsonDecoderError  
After wasting 2hrs on it, I finally found that I have commented the response status due to which I am not getting the response status code

---

<div class="post-metadata">

**Author:** ![Community\_Team](https://avatars.discourse-cdn.com/v4/letter/c/46a35a/32.png) [@Community\_Team](https://community.rapyd.net/u/Community_Team)\
**Post date:** [December 8, 2022, 11:11pm UTC](https://community.rapyd.net/t/localhost-websites-cannot-be-used-as-complete-checkout-url/545/4 "2022-12-08T23:11:37Z")

</div>

Thanks @Anirudh, do you mean the search here in discourse?

I created a post just for this so hopefully it will show up as a top level post. Right now it is at #2 [Local Host is Not Working for a URL Redirect](https://community.rapyd.net/t/local-host-is-not-working-for-a-url-redirect/58224)

 ![Screenshot 2022-12-08 at 3.10.47 PM](https://us1.discourse-cdn.com/flex016/uploads/rapyd/original/3X/8/9/8987e0b75c627f0701045015b9559406cff4dd73.png)
