How to get first name and last name at payment URL using payment api?

I am using checkout-api for get payment url … where I have applied mobile, email, f name, l name. Email and mobile successfully filled automatically at payment url but F name & L name are not filled …`

{
    "description": "15 min Podcast",
    "payment_note": "Test Notes",
    "idempotency_key": "ce1b5374-fb65-41a6-8ec0-247d41dd4549",
    "quick_pay": {
        "price_money": {
            "amount": 1,
            "currency": "AUD"
        },
        "location_id": "LG1W290W8KQ9Q",
        "name": "15 min Podcast"
    },
    "checkout_options": {
        "allow_tipping": false,
        "redirect_url": "https://poddiy.com.au/"
    },
    "pre_populated_data": {
        "buyer_address": {
            "address_line_1": "",
            "first_name": "jaimin",
            "last_name": "patel"
        },
        "buyer_email": "[email protected]",
        "buyer_phone_number": "61870780313"
    }
}

`
image

The team is aware of this and is working on a fix. :slightly_smiling_face:

@jaiminCygnet It looks like you’re trying to use the Checkout API to create a payment URL and pre-populate the buyer’s information, including their first and last name. However, you mentioned that while the email and mobile fields are filled automatically, the first and last name fields are not.

It’s possible that there could be an issue with how you’re formatting the pre-populated data for the buyer’s address. Double-check that the first_name and last_name fields are properly nested under buyer_address, like so:

perlCopy code

"pre_populated_data": {
    "buyer_address": {
        "address_line_1": "",
        "first_name": "jaimin",
        "last_name": "patel"
    },
    "buyer_email": "[email protected]",
    "buyer_phone_number": "61870780313"
}

If the issue persists, you may want to consult the Checkout API documentation or reach out to the API’s support team for further assistance.

1 Like

It is resolved and getting details as required.