Use case 1 : Responsive and adaptive checkout experience
In this scenario, you leverage Nexway responsive and adaptive checkout user interface, this checkout experience can be embedded in a store (web or mobile) on inside the application. No development are needed, all the configuration can be done through Nexway Center or through REST API.
Step 1: Get your Customer credential
Once your customer ID has been created by Nexway, we will send you by email an API key if you use our APIs with an Application & a username, password to access our Endpoints
These credentials will allow you to use a JWT Access token which is used for API authentication and authorization.
Then, you can start building and experimenting your checkout experience leveraging our SaaS User Interface (Nexway Center) or our REST API (API Documentation).
Step 2: Define product to be sold
You can use two methods: through API and/or SAAS user interface (Nexway Center).
The product has been designed to allow a maximum of flexibility and avoid structured in 2 parts: the common part and the variants. You fulfill only the information required for your checkout experience and at least one variant. Variants allow you to create different price configuration of the same product (including currency and country management).
Step 3: Define your store (optional)
If needed, the default store can be adapted considering:
- Multi-currency support
- End-user account management activation
- End-user support
- Default product
Step 4: Test your checkout experience
You are ready to test and process your first purchase. connect to checkout URL specifying the parameters to adapt the checkout experience to your needs.
The checkout is ready to run and will process the purchase workflow. (payment, order, fulfillment, invoicing, renewals). Once the purchase is processed, you receive a confirmation page and an email confirmation.
Step 5: Check and Manage your orders
In real time, you can select and view orders created through Nexway Center or REST API. Orders contain all the information related to the sale.
If required, you can cancel an order.
Step 6: Analyze your business
Nexway provides in Nexway Center dashboards & reports to analyze and understand business trends.
Scenario 2 : Direct use of Purchase API (mobile app, homemade checkout)
In this scenario, you are not using Nexway Checkout experience. you implement your own user interface and leverage the purchase API to process the transaction
The only difference with the scenario 1 is step4. others steps are the same.
Step 4: Implement the API Purchase workflow in your application
Only three API calls required to process a purchase.
- Get the payment token to secure the transaction
- Encrypt payment data using the payment token (RSA algorithm with encryption scheme pkcs1)
- Trigger the Purchase workflow providing the following information:
- Store ID
- End-user information
- Product id and quantity
- Encrypted Payment data