I am testing the online-checkout/payment-links API using Sandbox. I am running from my test system using localhost (VS 2022).
When I execute the API (listed below) the system generates a payment link. When I click “test” the link responds with positive messages indicating that an order, payment,
and customer has been created. However I am unable to see the customer that was created. I am also not able to find the subscription that should have been generated.
The subsciption has a 7 day trial period. Is there a way to verify that everything is working correctly using Sandbox?
My company is new to Square so any help will be appreciated.
Thanks,
Jim
{
“checkout_options”: {
“redirect_url”: “https://localhost:44339/PaymentAccepted.aspx?d=35c16a18-16df-428f-b8c7-85cc28a12d6b”,
“subscription_plan_id”: “3GRAGBLUEEOU6DA2QI46GNZQ”
},
“idempotency_key”: “35c16a18-16df-428f-b8c7-85cc28a12d6b”,
“order”: {
“location_id”: “L29788JV2N2M9”,
“pricing_options”: {
“auto_apply_taxes”: false
},
“taxes”: [
{
“uid”: “S001”,
“name”: “Sales Tax”,
“percentage”: “7”,
“scope”: “ORDER”,
“applied_money”: {
“amount”: 1999,
“currency”: “USD”
}
}
],
“line_items”: [
{
“quantity”: “1”,
“base_price_money”: {
“amount”: 1999,
“currency”: “USD”
},
“name”: “Subscription 7 Day Trial Period”
}
]
},
“pre_populated_data”: {
“buyer_email”: “[email protected]”
}
}