Integracja z płatnościami "Square"

0

Cześć, czy spotkał się ktoś z płatnościami Square https://squareup.com/us/en ?
Próbuję to zintegrować, zainstalowałem oficjalną paczkę do PHP jednak nie mogę zrozumieć dokumentacji. Potrzebuję zwykłej płatności kartą a w dokumentacji jest tylko przykład z gotowym kodem. Ja natomiast chciałbym to trochę zmodyfikować.
Zrobiłem po stronie frontend wszystkie pola na wpisanie danych karty itd i teraz te dane chcę wysłać do backend a tam za pomocą API zrobić resztę jednak dokumentacja nie pokazuje jasno przykładu do takiego użycia

0

https://developer.squareup.com/docs/payments-api/take-payments/card-payments#card-on-file-as-a-payment-source
W drugim kroku trzeba dodać kartę albo
https://developer.squareup.com/docs/payments-api/take-payments/card-payments#payment-token-as-a-payment-source

Payment token. Square provides client-side libraries that developers can use to process payments in web and mobile applications. These libraries take the card information (credit/debit card and Square gift card) buyers provide in the application UI and generate a secure, one-time-use payment token. For more information, see Online Payment Options and In-App Payments SDK Overview.

Application client. The mobile client integrates the Square In-App Payments SDK to generate a payment token from the buyer-provided credit card.

The Square In-App Payments SDK is supported on devices running Android 5.0 and later (API 24) and iOS 10 and later. The Quickstart provides sample code for both. You choose one and follow the instructions.

No i jeszcze jest to:
https://developer.squareup.com/reference/sdks/web/payments/card-payments :)

0

Dzięki.
Nie chce zaczynać nowego wątku ale tego też nie mogę znaleźć w dokumentacji, mianowicie jak dodać podpowiedź wcześniej użytej karty która jest zapisana w systemie?

1 użytkowników online, w tym zalogowanych: 0, gości: 1