Test credit cards for checkout page?

Hello, I cannot find where are the testing credit cards for the checkout page. We are testing a payment in a checkout page using Brazil as the country, everything renders as intended, but when using the cards from Testing for Payment API It responds with an error.

Can somebody point me in the right direction? Thank you!

After further investigation the problem seems to be related with the currency, because by changing it from BRL to EUR the checkout page works with any VISA/MASTER from https://www.getcreditcardnumbers.com/

Is there anything we can do? we need to test with BRL (Brazilian peso)

(Save us @Community_Team ! :smiling_face_with_tear:)

@Community_Team should we raise this ticket to another level?, if so, can you tell us how?, we really need a solution for this. Thank you!

Thanks @dlupo, I did pass this on to our support support.rapyd.net, or support@rapyd.net. I would be good for you to submit your ticket, (you can do this in the client portal). I will pass on what they say when I hear back as well.

I tested this myself, and got the same error as well.

1 Like

Thanks @Community_Team, we did not wanted to create a ticket from the client portal because I thought it was only for production issues, we just created one as per your recommendation.

Just one favor I’ll like to ask, to me it looks like an issue with the simulation environment when the currency is BRL that needs to be fixed Rapyd side, if so, the most important thing for us is to have a estimated fix time window, so we can make a decision with our client in terms of when to go into production. Thank you!

Another update, the issue is also present in the card token hosted page:

Seems like the whole Brazilian sandbox is broken. We opened a ticket a few days back, no answer yet.

1 Like

Thanks @dlupo, have you heard back?

I just followed up again with one of our SEs.

He said it may be due to the Customer Object being a required field. You can find this under Get Required Fields.

Get Payment Method Required Fields

Response

Shows the Customer field below ( "name": "customer", "type": "customer",) includes "is_required": true,

        {
            "type": "br_debit_visa_card",
            "name": "Brazil Debit Visa",
            "category": "card",
            "image": "https://iconslib.rapyd.net/checkout/br_debit_visa_card.png",
            "country": "br",
            "payment_flow_type": "card",
            "currencies": [
                "BRL"
            ],
            "status": 1,
            "is_cancelable": false,
            "payment_options": [
                {
                    "name": "customer",
                    "type": "customer",
                    "regex": "",
                    "description": "ID of a customer object, a string starting with 'cus_'. The customer object must contain the fields listed as required, and can contain additional fields listed here. If the customer object does not exist yet, use 'Create Customer'.",
                    "is_required": true,
                    "is_updatable": false,
                    "required_fields": [
                        {
                            "name": "name",
                            "type": "string",
                            "regex": "^[a-zA-Z]{1,200}$",
                            "description": "Customer's full name",
                            "is_required": true,
                            "is_updatable": false
                        },
                        {
                            "name": "phone_number",
                            "type": "string",
                            "regex": "^[+][0-9]{1,40}$",
                            "description": "Customer's Phone Number",
                            "is_required": true,
                            "is_updatable": false
                        },
                        {
                            "name": "email",
                            "type": "string",
                            "regex": "^(?=.{1,100}$)([0-9a-zA-Z_.-]+@[a-zA-Z_.-]+?[.]{1}[a-zA-Z]{2,3})$",
                            "description": "Customer's Email",
                            "is_required": true,
                            "is_updatable": false
                        },
                        {
                            "name": "business_vat_id",
                            "type": "string",
                            "regex": "^[0-9]{11}$|^[0-9]{14}$",
                            "description": "Customer's Tax ID (CPF - 11 digits for individual or CNPJ - 14 digits for company)",
                            "is_required": true,
                            "is_updatable": false
                        },
                        {
                            "name": "addresses",
                            "type": "address",
                            "regex": "",
                            "description": "customer address",
                            "is_required": true,
                            "is_updatable": false,
                            "required_fields": [
                                {
                                    "name": "name",
                                    "type": "string",
                                    "regex": "^[a-zA-Z]{1,200}$",
                                    "description": "Customer's full name",
                                    "is_required": true,
                                    "is_updatable": false
                                },
                                {
                                    "name": "line_1",
                                    "type": "string",
                                    "regex": "^.{1,200}",
                                    "description": "Customer's address",
                                    "is_required": true,
                                    "is_updatable": false
                                },
                                {
                                    "name": "city",
                                    "type": "string",
                                    "regex": "^.{1,40}",
                                    "description": "Customer's city",
                                    "is_required": true,
                                    "is_updatable": false
                                },
                                {
                                    "name": "country",
                                    "type": "string",
                                    "regex": "^([A-Z]){2}$",
                                    "description": "Customer's country",
                                    "is_required": false,
                                    "is_updatable": false
                                },
                                {
                                    "name": "zip",
                                    "type": "number",
                                    "regex": "^([0-9]){1,8}$",
                                    "description": "Customer's postal code (should be between 1 to 8 digits long)",
                                    "is_required": true,
                                    "is_updatable": false
                                },
                                {
                                    "name": "state",
                                    "type": "string",
                                    "regex": "AC|AL|AP|AM|BA|CE|DF|ES|GO|MA|MT|MS|MG|PA|PB|PR|PE|PI|RJ|RN|RS|RO|RR|SC|SP|SE|TO",
                                    "description": "Customer's state (Acre|Alagoas|Amapá|Amazonas|Bahia|Ceará|Distrito Federal|Espírito Santo|Goiás|Maranhão|Mato|Grosso|Mato Grosso do Sul|Minas Gerais|Pará|Paraíba|Paraná|Pernambuco|Piauí|Rio de Janeiro|Rio Grande do Norte|Rio Grande do Sul|Rondônia|Roraima|Santa Catarina|São Paulo|Tocantins)",
                                    "is_required": true,
                                    "is_updatable": false
                                }
                            ]
                        }
                    ]
                },
                {
                    "name": "complete_payment_url",
                    "type": "string",
                    "regex": "",
                    "description": "URL where the customer is redirected for final steps in completing the operation.",
                    "is_required": true,
                    "is_updatable": false
                },
                {
                    "name": "error_payment_url",
                    "type": "string",
                    "regex": "",
                    "description": "URL where the customer is redirected in case of an error in the operation.",
                    "is_required": true,
                    "is_updatable": false
                },
                {
                    "name": "statement_descriptor",
                    "type": "string",
                    "regex": "^.{1,13}$",
                    "description": "A text description suitable for a customer's payment statement.",
                    "is_required": false
                },
                {
                    "name": "capture",
                    "type": "boolean",
                    "regex": "",
                    "description": "Determines when the payment is processed for capture",
                    "is_required": false,
                    "is_updatable": false
                },
                {
                    "name": "description",
                    "type": "string",
                    "regex": "^([a-zA-Z]){1,254}$",
                    "description": "Description of the product or service",
                    "is_required": true,
                    "is_updatable": false
                }
            ],
            "is_expirable": true,
            "is_online": false,
            "is_refundable": true,
            "minimum_expiration_seconds": 600,
            "maximum_expiration_seconds": 604800,
            "virtual_payment_method_type": null,
            "is_virtual": false,
            "multiple_overage_allowed": false,
            "amount_range_per_currency": [
                {
                    "currency": "BRL",
                    "maximum_amount": null,
                    "minimum_amount": null
                }
            ],
            "is_tokenizable": false,
            "supported_digital_wallet_providers": [],
            "submid_required": false,
            "is_restricted": false
        },

Yep, thanks!, We are still fixing it on our end, looks like in Brazil paying with credit cards requires the tax id of the payer which was a field we were not sending when creating the customer object, we missed it when reading the required fields. It would be nice if the checkout warn us more clearly :smiling_face_with_tear:

Thank you!

2 Likes