square / connect-php-sdk

PHP client library for the Square Connect APIs
https://developer.squareup.com/docs
Apache License 2.0
114 stars 55 forks source link

how to validate checkout? #105

Closed cpeker closed 4 years ago

cpeker commented 4 years ago

Hi, After redirect_url is triggered, i only have checkoutid and transactionid.

I didn't find a way to validate any of these. How can i validate checkoutId or transactionId?

sseaman commented 4 years ago

@cpeker - Do you still require some help or were you able to determine how to do things?

StephenJosey commented 4 years ago

Just to clarify for anyone else: transactionId == orderId (since Transactions API is deprecated). You can use this transactionId to pass to the BatchRetrieveOrders endpoint and find information about the transaction, such as if it was paid, or what items were in the order etc.

Closing out but please comment if you have additional questions.