Hi, we’re currently using the checkout link API to create a checkout link with an order. We then redirect to the Square checkout link where the user will complete the payment then be redirected back.
We can get the order back and check the state
is COMPLETED
or netAmountDueMoney
is 0
to check if it’s been paid but we are also trying to get the payment card details used during the checkout (cardBrand
and last4
) for our custom receipts.
Is there any way to get the payment(s)/payment id used to complete the order so we can look this up using the payments api? Or any other way to get the card info?
Thanks