# Create Card Token - Hosted Page

**URL:** <https://community.rapyd.net/t/create-card-token-hosted-page/1074>\
**Category:** 🌱 Payments 101\
**Created:** [August 16, 2021, 4:37am UTC](https://community.rapyd.net/t/create-card-token-hosted-page/1074 "2021-08-16T04:37:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mathu](https://avatars.discourse-cdn.com/v4/letter/m/f14d63/32.png) [@mathu](https://community.rapyd.net/u/mathu)\
**Post date:** [August 16, 2021, 4:37am UTC](https://community.rapyd.net/t/create-card-token-hosted-page/1074/1 "2021-08-16T04:37:30Z")

</div>

I am trying to add a payment token using hosted payment page using below the API & Params details. I am able to generate the page, while adding the card it keeps failing every time saying “Sorry, Something went Wrong”(refer the image below).  
API - {{base\_uri}}/hosted/collect/card  
Parames –  
{  
“country”: “IS”,  
“currency”: “ISK”,  
“customer”: “cus\_ec353d891fc2260de731f45ebd9e0d7a”,  
“billing\_address\_collect”:false,  
“complete\_url”:[https://www.6storage.com](https://www.6storage.com)  
}  
Error screen shot after entering the card details and 3DS stimulation.

 ![image](https://us1.discourse-cdn.com/flex016/uploads/rapyd/original/2X/9/93ef046f73e152ee5fe3c35f243f65bfb880ef51.png)

---

<div class="post-metadata">

**Author:** ![Legato](https://sea2.discourse-cdn.com/flex016/user_avatar/community.rapyd.net/legato/32/41_2.png) [@Legato](https://community.rapyd.net/u/Legato)\
**Post date:** [August 19, 2021, 8:17am UTC](https://community.rapyd.net/t/create-card-token-hosted-page/1074/2 "2021-08-19T08:17:44Z")

</div>

Hi mathu,  
Welcome to the Rapyd developer community! Thanks for reporting this workflow!  
There may be an issue with simulating this particular use case in the sandbox environment, and it is being inspected.

Thanks

---

<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:** [September 1, 2021, 6:37am UTC](https://community.rapyd.net/t/create-card-token-hosted-page/1074/3 "2021-09-01T06:37:15Z")

</div>

> [@mathu](#):
>
> {  
> “country”: “IS”,  
> “currency”: “ISK”,  
> “customer”: “cus\_ec353d891fc2260de731f45ebd9e0d7a”,  
> “billing\_address\_collect”:false,  
> “complete\_url”:[https://www.6storage.com](https://www.6storage.com)  
> }

Hi @mathu I believe this may have been fixed now. I did test it again and it worked and I found it listed in Client Portal. ![card-token](https://us1.discourse-cdn.com/flex016/uploads/rapyd/original/2X/0/0298bca1259b77a6f77a15f5247d31fa662a81c2.gif)

Request

```auto
{
"country": "IS",
"currency": "ISK",
"customer": "cus_616fd670a867dc933b2e5baf275eee9b",
"billing_address_collect":false
}

```

Response

```auto
{
    "status": {
        "error_code": "",
        "status": "SUCCESS",
        "message": "",
        "response_code": "",
        "operation_id": "bb219d1d-707a-4e76-9370-ea8cdc6756dc"
    },
    "data": {
        "id": "hp_card_50ce19a5aa84b36b2ab875fd044376b4",
        "status": "NEW",
        "cancel_url": "http://rapyd.net",
        "complete_url": "http://rapyd.net",
        "language": "",
        "merchant_color": "323fff",
        "merchant_logo": "https://sboxiconslib.rapyd.net/merchant-logos/ohpc_e032cbde0b29e262e17f2ffb29a22150.png",
        "merchant_website": "http://rapyd.net",
        "merchant_language": "en",
        "merchant_customer_support": {
            "url": "http://support.rapyd.net",
            "email": "support@rapyd.net",
            "phone_number": "555-555-5555"
        },
        "merchant_alias": "Test Business",
        "merchant_terms": "",
        "merchant_privacy_policy": "",
        "page_expiration": 1631686413,
        "redirect_url": "https://sandboxhosted.rapyd.net/collect/card?token=hp_card_50ce19a5aa84b36b2ab875fd044376b4",
        "category": "card",
        "country": "IS",
        "currency": "ISK",
        "customer": "cus_616fd670a867dc933b2e5baf275eee9b",
        "payment_method_type": null,
        "payment_method_types": [],
        "cards": [],
        "payment_params": {
            "complete_payment_url": "",
            "error_payment_url": ""
        },
        "billing_address_collect": false
    }
}

```

---

<div class="post-metadata">

**Author:** ![mathu](https://avatars.discourse-cdn.com/v4/letter/m/f14d63/32.png) [@mathu](https://community.rapyd.net/u/mathu)\
**Post date:** [September 1, 2021, 7:07am UTC](https://community.rapyd.net/t/create-card-token-hosted-page/1074/4 "2021-09-01T07:07:58Z")

</div>

Yes thanks.

Thanks & Regards,
