# Automated flow with Intergiro 3DS

The Automated flow is the easiest way to start acquiring.
A simple HTML snippet runs the entire authorization process - including 3D Secure.

GET flow

# Create an authorization

To create an authorization, prepare an authorization creatable and POST it.
See example:


POST /authorization/redirect

    "number": "abcdef",
    "amount": 7.5,
    "currency": "EUR",
    "card": {
		"pan": "4111111111111111",
		"expires": [2, 22],
		"csc": "987"
    "target": "http://your-url.com/",

The response will be a HTML snippet that when rendered performs the whole authorization flow, including a 3D Secure challenge if required.

# Receiving a response

You will receive a HTTPS POST request to the url you specified in the target field on the authorization creatable.

The payload is sent as form data with key being authorization and value being either a signed JWT containing an authorization or an error.




The target url must be a valid url and localhost may not be used.

# Authorization result

If authorization was successfully created (issuer has approved it), you will receive a JWT.
If authorization has failed for any reason, you will receive a failure result as a JSON object.

# Verifying the success JWT

After an authorization has been successfully created you may optionally choose to verify it.
Verifying the authorization returns the full authorization details and ensures that it is originating from Intergiro.

To verify, POST to the authorization/verify endpoint with the signed JWT as the body. This will unpack the JWT. The response will be an Authorization or an error.


POST /authorization/verify
Content-Type: application/jwt

// Make sure the body contains the string only, not a JSON object

# Example

A full example can be accessed from the github repository.