API Only
Fabrick's gateway offers the maximum possible flexibility in terms of integration, to meet the needs of both small merchants looking for plug-and-play solutions and large online retailers that require a solution integrable with their own backend. Specifically to meet the needs of particularly structured companies, it is possible to integrate individual Fabrick Payment Orchestra services without using the payment pages developed by Fabrick.
Payment Initialization
To initialize a payment, the POST CreatePayment API must be called. Request
POST /api/v1/payment/create
Host (sandbox): sandbox.gestpay.net
Host (production): ecomms2s.sella.it
Authorization: apikey ****************
Content-Type: application/json
{
"shopLogin": "GESPAY12345",
"amount": "10.00",
"currency": "EUR",
"shopTransactionID": "OrderID"
}
Response
{
"error": {
"code": "0",
"description": "request correctly processed"
},
"payload": {
"paymentToken": "7ebd948a-c9ad-44c9-ac43-02b0beb55a7a",
"paymentID": "1234567890",
"userRedirect": null,
"qrCode": null
}
}
Subsequently, unlike other methods where the user is redirected to an external page, it will be necessary to call the POST SubmitPayment API.
In addition to the standard headers, the PaymentToken:{{paymentToken}} header must be added, populated with the value of the paymentToken parameter obtained in the response from the POST CreatePayment service.
Request
POST /api/v1/payment/submit
Host (sandbox): sandbox.gestpay.net
Host (production): ecomms2s.sella.it
PaymentToken: 7ebd948a-c9ad-44c9-ac43-02b0beb55a7a
Content-Type: application/json
{
"shopLogin": "{{shopLogin}}",
"paymentTypeDetails": {
"creditcard": {
"number": "4012000000003010",
"expMonth": "05",
"expYear": "27",
"CVV": "123"
}
}
}