Responsive web payment: Difference between revisions

From Barion Documentation
Jump to navigation Jump to search
Line 2: Line 2:


= The payment process =
= The payment process =
In this scenario the payment starts with a POST request to the /v2/Payment/Start API endpoint.  
In this scenario the payment starts with the preparation of the payment. This means that the webshop creates a JSON representation of the payment data. This data contains all the necessary information about the items to be purchased, the customer and the desired payment scenario.  This JSON should be sent as a POST request to the /v2/Payment/Start API endpoint. After the system recives the data and it passes the vaalidat


= Preparing the payment =
= Preparing the payment =

Revision as of 16:07, 2 February 2017

This scenario is the most common integration for webshops that don't need any extra steps in the payment process.

The payment process

In this scenario the payment starts with the preparation of the payment. This means that the webshop creates a JSON representation of the payment data. This data contains all the necessary information about the items to be purchased, the customer and the desired payment scenario. This JSON should be sent as a POST request to the /v2/Payment/Start API endpoint. After the system recives the data and it passes the vaalidat

Preparing the payment

Assembling the POST request

TODO

Processing the response

TODO

Redirecting the customer

TODO

Processing the callback

TODO

Requesting information about the payment

TODO

Asssembling the GET request

Processing the response

Processing the returning customer

TODO


Examples

Reference