This type of integration allows to interact with Payop API and control almost each step of the payment.
It is suitable for those who have enough resources for development
and at the same time want have more controls of the payment.
Notes:
- You can see example of Server-To-Server integration in the Checkout Demo App repository.
- Server-To-Server integration can only be used for card methods with ID 381, 480, 481. You can view the list of available methods for the project using the request getPaymentMethod.
-
Make decision on the next step
When invoice was created, you can decide what to do next.
Here are two cases possible, depending on the payment method, specified when creating invoice:
- if
paymentMethod.formType
iscards
- you need to create card token firstly. - if
paymentMethod.formType
is notcards
- you can create checkout transaction.
- if
-
Check invoice status and decide what to do next.