2. How a payment works
A payment has three parts. The app never creates a session and never decides the final status.
| Step | Who | What happens |
|---|---|---|
| 1 · Session | Your server | Your server creates a cashier session with Praxis, server to server, for the native SDK: with channel: ios_sdk and an app_return_url. It sends the app only the session token. |
| 2 · Cashier | Your app + SDK | The app shows the cashier with that token and the service addresses of the Praxis environment. The customer pays inside the cashier. |
| 3 · Result | SDK | The cashier closes and hands the app one CashierResult: completed, authorized, pending, failed or canceled. |
| 4 · Final status | Praxis → your server | Your server gets the final status from the Praxis notification (webhook). Credit the customer from it, not from the device. |
ImportantA session made for the web cashier does not open in the SDK: it ends at once with the error code
configuration_error. Create the session withchannel: ios_sdk.
Important"completed" on the device does not prove the money moved. Confirm the payment on your server from the Praxis notification before you credit the customer.
What the SDK talks to
| Service | Used for | Address |
|---|---|---|
| Cashier-Service (GraphQL) | The session's activation, its data and every write. The server signs the calls to the Praxis core. | graphqlURL |
| PCI-Secure-Form | The card keys, the saved cards, and the card or the Apple Pay token in one submit | pciURL |
| Event Logs | Operational logs for Praxis support (optional, see section 14) | logsURL |
Praxis gives you the three addresses for the environment your server created the session in. The SDK holds no key and nothing is signed or encrypted with an app key: the card keys come from PCI-Secure-Form.
Session lifetime
- Use one session for one payment. A closed session cannot start again.
- The session ends with
session_expiredat its expiry time. - While a payment processes, the cashier keeps asking Praxis for its status until the session expires, when it ends with the status pending.
Updated about 8 hours ago
Did this page help you?