Closed talha2k closed 4 months ago
Hello Talha,
I haven't provided the example code related to the form itself because people can use different libraries and/or languages to grab the form token. This gives you, the developer, more flexibility and freedom to implement that part as you see fit
On Thu, Feb 22, 2024 at 8:52 PM Talha Khan @.***> wrote:
I am unable to find code example for payment form. where user has to enter card details and then post to the method which performs the charge?
Pleas epoint me in the right direction.
The code available on the official documentation related to the web payments is in Nodejs.
— Reply to this email directly, view it on GitHub https://github.com/NikolaGavric94/laravel-square/issues/86, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADAEYI4FKJO5ED27NG6TBSDYU6OZHAVCNFSM6AAAAABDVR7XYWVHI2DSMVQWIX3LMV43ASLTON2WKOZSGE2DSOBTGEZTINI . You are receiving this because you are subscribed to this thread.Message ID: @.***>
Thanks for reply Nikola. How can tis be done using laravel?
This might be a good guide to follow on how to get the form token you need to send to the backend to formalize the Payment: https://developer.squareup.com/reference/sdks/web/payments/card-payments
On Fri, Feb 23, 2024 at 6:36 AM Talha Khan @.***> wrote:
Thanks for reply Nikola. How can tis be done using laravel?
— Reply to this email directly, view it on GitHub https://github.com/NikolaGavric94/laravel-square/issues/86#issuecomment-1960757517, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADAEYI2L73R74KUZZQP6JELYVATHNAVCNFSM6AAAAABDVR7XYWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNRQG42TONJRG4 . You are receiving this because you commented.Message ID: @.***>
Thank you! Been through that.
I eventually ended up using payment link api! It redirects to square checkout page accepts card input and then redirect back to the redirect url with orderid which can be used to retrieve payment status through an api call.
Thanks anyways! :)
Much appreciated.
I am unable to find code example for payment form. where user has to enter card details and then post to the method which performs the charge?
Pleas epoint me in the right direction.
The code available on the official documentation related to the web payments is in Nodejs.