I created a checkout API via a Curl request in php and it was successful but my issue is that the Checkout Page Url throws error 400 Page not found
Here are my Parameters
'{
"idempotency_key": "86ae1696-b1e3-4328-af6d-f1e04d947ad61",
"redirect_url": "https:/mysite.com",
"order": {
"idempotency_key": "12ae1696-z1e3-4328-af6d-f1e04d947gd41",
"order": {
"location_id": "My Location Id",
"customer_id": "My customer Id",
"line_items": [
{
"name": "Printed T Shirt",
"quantity": "2",
"base_price_money": {
"amount": 1500,
"currency": "USD"
}
},
{
"name": "Slim Jeans",
"quantity": "1",
"base_price_money": {
"amount": 2500,
"currency": "USD"
}
},
{
"name": "Woven Sweater",
"quantity": "3",
"base_price_money": {
"amount": 3500,
"currency": "USD"
}
}
]
}
},
"ask_for_shipping_address": true,
"merchant_support_email": "[email protected]",
"pre_populate_buyer_email": "[email protected]",
"pre_populate_shipping_address": {
"address_line_1": "1455 Market St.",
"address_line_2": "Suite 600",
"locality": "San Francisco",
"administrative_district_level_1": "CA",
"postal_code": "94103",
"country": "US",
"first_name": "Jane",
"last_name": "Doe"
}
}'
}
}'
Here is the Checkout Page Url response which triggers Whoops Error 400 Page not found
https://connect.squareupsandbox.com/v2/checkout?c=CBASEPAJrYwKqXiGQYtX8ZdPkG4\u0026l=L9MWXVMAQBCGG