Create Card Token - Hosted Page

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
}
Error screen shot after entering the card details and 3DS stimulation.

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

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

Request

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

Response

{
    "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
    }
}
2 Likes

Yes thanks.

Thanks & Regards,

1 Like