Overview

The Payment Provider microservice is a facade for different payment providers which means that it provides a unified REST API for a communication with PayPal, DataCash, etc.

HTTP verbs

Verb Usage

GET

retrieve a resource

POST

create a new resource

PUT

update an existing resource

PATCH

partially update an existing resource

DELETE

delete an existing resource

HTTP status codes

Status code Usage

200 OK

The request completed successfully

201 Created

A new resource has been created successfully. The resource’s URI is available from the response’s Location header

204 No Content

An update to an existing resource has been applied successfully

400 Bad Request

The request was malformed

404 Not Found

The requested resource did not exist

422 Unprocessable Entity

The request didn’t pass validation

Headers

Header

Usage

Authorization

Oauth2 Bearer token

PaymentGateway providers documentation

Unresolved directive in index.adoc - include::/var/jenkins/workspace/_and_Risk_Payment_Gateway_master/target/generated-snippets/getProvidersTest/section.adoc[]

PaymentGateway operation documentation

Unresolved directive in index.adoc - include::/var/jenkins/workspace/_and_Risk_Payment_Gateway_master/target/generated-snippets/testPayment/section.adoc[] Unresolved directive in index.adoc - include::/var/jenkins/workspace/_and_Risk_Payment_Gateway_master/target/generated-snippets/testDirectPayment/section.adoc[] Unresolved directive in index.adoc - include::/var/jenkins/workspace/_and_Risk_Payment_Gateway_master/target/generated-snippets/testRefund/section.adoc[] Unresolved directive in index.adoc - include::/var/jenkins/workspace/_and_Risk_Payment_Gateway_master/target/generated-snippets/testPreauth/section.adoc[] Unresolved directive in index.adoc - include::/var/jenkins/workspace/_and_Risk_Payment_Gateway_master/target/generated-snippets/testPreauthAndCapture/section.adoc[] Unresolved directive in index.adoc - include::/var/jenkins/workspace/_and_Risk_Payment_Gateway_master/target/generated-snippets/testPreauthAndRelease/section.adoc[]

PaymentGateway transaction documentation

Unresolved directive in index.adoc - include::/var/jenkins/workspace/_and_Risk_Payment_Gateway_master/target/generated-snippets/testCloseTransaction/section.adoc[] Unresolved directive in index.adoc - include::/var/jenkins/workspace/_and_Risk_Payment_Gateway_master/target/generated-snippets/testInitiateTransaction/section.adoc[] Unresolved directive in index.adoc - include::/var/jenkins/workspace/_and_Risk_Payment_Gateway_master/target/generated-snippets/testGetFinancialTransaction/section.adoc[]

PaymentGateway tokenisation documentation

Unresolved directive in index.adoc - include::/var/jenkins/workspace/_and_Risk_Payment_Gateway_master/target/generated-snippets/testGetPaymentProviderURL/section.adoc[] Unresolved directive in index.adoc - include::/var/jenkins/workspace/_and_Risk_Payment_Gateway_master/target/generated-snippets/testTokeniseReference/section.adoc[] Unresolved directive in index.adoc - include::/var/jenkins/workspace/_and_Risk_Payment_Gateway_master/target/generated-snippets/testTokenisePaymentDetails/section.adoc[] Unresolved directive in index.adoc - include::/var/jenkins/workspace/_and_Risk_Payment_Gateway_master/target/generated-snippets/testAddTokens/section.adoc[] Unresolved directive in index.adoc - include::/var/jenkins/workspace/_and_Risk_Payment_Gateway_master/target/generated-snippets/testGetTokensForCustomer/section.adoc[] Unresolved directive in index.adoc - include::/var/jenkins/workspace/_and_Risk_Payment_Gateway_master/target/generated-snippets/testGetTokensForProvider/section.adoc[]