Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing class \Square\Models\CompletePaymentRequest #37

Closed
simplimation opened this issue Feb 23, 2021 · 3 comments
Closed

Missing class \Square\Models\CompletePaymentRequest #37

simplimation opened this issue Feb 23, 2021 · 3 comments

Comments

@simplimation
Copy link

The model referenced in API docs for capturing an payment is missing. https://developer.squareup.com/explorer/square/payments-api/complete-payment

@StephenJosey
Copy link

Thanks, I will make sure the API Explorer is updated. This model is not actually required, it only needs to pass the payment_id to the CompletePayment request.

@simplimation
Copy link
Author

I may be missing something, but there's no CompletePayment request model object in the SDK.

@StephenJosey
Copy link

Right, sorry I should've been more explicit: the model does not exist, and it is not needed so it will not be created. You can simply call the CompletePayment endpoint like so:

$apiResponse = $paymentsApi->completePayment($paymentId);

https://github.com/square/square-php-sdk/blob/master/doc/apis/payments.md#complete-payment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants