{"metadata":{"image":[],"title":"","description":""},"api":{"url":"/alt-transactions","auth":"optional","settings":"57ee593a21ceb20e0061959e","results":{"codes":[]},"params":[],"examples":{"codes":[]},"method":"post"},"next":{"description":"","pages":[]},"title":"Create iDEAL Transaction","type":"endpoint","slug":"create-ideal-transaction","excerpt":"","body":"The Create iDEAL Transaction request performs a transaction using the iDEAL payment method. For implementation details, see the [iDEAL guide](/docs/ideal).\n\n<br>\n\n<a class=\"btn btn-success\" href=\"#section-api-explorer\" role=\"button\">Try it in the API Explorer</a>\n\n###Request Content\nSend an **[altTransaction](doc:alt-transaction)** object, with the following:\n\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`amount` &nbsp;&nbsp;&nbsp; *decimal* &nbsp;&nbsp;&nbsp;<span style=\"color:#F37500\">**required**</span>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`currency` &nbsp;&nbsp;&nbsp; *string* &nbsp;&nbsp;&nbsp;<span style=\"color:#F37500\">**required**</span>&nbsp;&nbsp;&nbsp;value must be **EUR**\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`idealTransaction` &nbsp;&nbsp;&nbsp; *object* &nbsp;&nbsp;&nbsp;<span style=\"color:#F37500\">**required**</span> (see [idealTransaction](doc:idealtransaction))\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`payerInfo` &nbsp;&nbsp;&nbsp; *object* &nbsp;&nbsp;&nbsp;optional include for a new shopper (see [payerInfo](doc:payer-info))\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`vaultedShopperId`&#42; &nbsp;&nbsp;&nbsp; *integer* &nbsp;&nbsp;&nbsp;optional include for a vaulted shopper\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`vendorsInfo` *object* &nbsp;&nbsp;&nbsp;optional (see [vendorsInfo](doc:vendorsinfo))\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`merchantTransactionId` &nbsp;&nbsp;&nbsp; *string* &nbsp;&nbsp;&nbsp;optional\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`transactionMetaData` &nbsp;&nbsp;&nbsp; *object* &nbsp;&nbsp;&nbsp;optional (see [transactionMetaData](doc:transaction-meta-data))\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`transactionFraudInfo` &nbsp;&nbsp;&nbsp; *object* &nbsp;&nbsp;&nbsp;optional (see [transactionFraudInfo](doc:transaction-fraud-info))\n\n&#42;The vaulted shopper's saved country must be **nl**.\n\n###Response Details\nIf successful, the response HTTP status code is 200 OK.\nThe response contains the request properties plus these additions:\n\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`vaultedShopperId`\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`processingInfo`&nbsp;&nbsp;&nbsp;(see [processingInfo](doc:processing-info))\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`fraudResultInfo`&nbsp;&nbsp;&nbsp;(see [fraudResultInfo](doc:fraud-result-info))\n\n<hr>\n\n##Examples\n\n###Request Examples\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"curl -v -X POST https://sandbox.bluesnap.com/services/2/alt-transactions/ \\\\\\n-H 'Content-Type: application/json' \\\\\\n-H 'Accept: application/json' \\\\ \\n-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \\\\\\n-d '\\n{\\n  \\\"amount\\\": 42,\\n  \\\"currency\\\": \\\"EUR\\\",\\n  \\\"payerInfo\\\": {\\n    \\\"firstName\\\": \\\"John\\\",\\n    \\\"lastName\\\": \\\"Doe\\\",\\n    \\\"country\\\": \\\"nl\\\"\\n  },\\n  \\\"idealTransaction\\\": {\\n    \\\"returnUrl\\\": \\\"http://www.returnURL.com\\\"\\n  }\\n}'\",\n      \"language\": \"curl\",\n      \"name\": \"Create iDEAL Transaction: Basic with new shopper\"\n    },\n    {\n      \"code\": \"curl -v -X POST https://sandbox.bluesnap.com/services/2/alt-transactions/ \\\\\\n-H 'Content-Type: application/json' \\\\\\n-H 'Accept: application/json' \\\\ \\n-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \\\\\\n-d '\\n{\\n  \\\"amount\\\": 57,\\n  \\\"currency\\\": \\\"EUR\\\",\\n  \\\"vaultedShopperId\\\": 20769005,\\n  \\\"idealTransaction\\\": {\\n    \\\"language\\\": \\\"ja\\\",\\n    \\\"issuerId\\\": \\\"INGBNL2A\\\",\\n    \\\"returnUrl\\\": \\\"http://www.returnURL.com\\\"\\n  }\\n}'\",\n      \"language\": \"curl\",\n      \"name\": \"with returning shopper, language, & issuer ID\"\n    },\n    {\n      \"code\": \"curl -v -X POST https://sandbox.bluesnap.com/services/2/alt-transactions/ \\\\\\n-H 'Content-Type: application/json' \\\\\\n-H 'Accept: application/json' \\\\ \\n-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \\\\\\n-d '\\n{\\n  \\\"amount\\\": 50,\\n  \\\"currency\\\": \\\"EUR\\\",\\n  \\\"payerInfo\\\": {\\n    \\\"firstName\\\": \\\"John\\\",\\n    \\\"lastName\\\": \\\"Doe\\\",\\n    \\\"country\\\": \\\"nl\\\"\\n  },\\n  \\\"idealTransaction\\\": {\\n    \\\"returnUrl\\\": \\\"http://www.returnURL.com\\\"\\n  },\\n  \\\"vendorsInfo\\\": {\\n    \\\"vendorInfo\\\": [\\n      {\\n        \\\"vendorId\\\": 837389\\n      }\\n    ]\\n  }\\n}'\",\n      \"language\": \"curl\",\n      \"name\": \"with marketplace vendor\"\n    }\n  ]\n}\n[/block]\n###Response Examples\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n  \\\"amount\\\": 42,\\n  \\\"currency\\\": \\\"EUR\\\",\\n  \\\"payerInfo\\\": {\\n    \\\"firstName\\\": \\\"John\\\",\\n    \\\"lastName\\\": \\\"Doe\\\",\\n    \\\"country\\\": \\\"nl\\\"\\n  },\\n  \\\"vaultedShopperId\\\": 28538973,\\n  \\\"idealTransaction\\\": {\\n    \\\"idealUrl\\\": \\\"https://eu.gcsip.nl/orb/orb?ACTION=DO_START&REF=000000410000189819470000100001&MAC=1mIB9PXVj7r6tDRnFuIcOm31geLvBVGXXPYDubOunDM%3D\\\",\\n    \\\"orderId\\\": 18981947\\n  },\\n  \\\"processingInfo\\\": {\\n    \\\"processingStatus\\\": \\\"PENDING\\\"\\n  }\\n}\",\n      \"language\": \"json\",\n      \"name\": \"Basic with new shopper\"\n    },\n    {\n      \"code\": \"{\\n  \\\"amount\\\": 57,\\n  \\\"currency\\\": \\\"EUR\\\",\\n  \\\"vaultedShopperId\\\": 20769005,\\n  \\\"idealTransaction\\\": {\\n    \\\"issuerId\\\": \\\"INGBNL2A\\\",\\n    \\\"language\\\": \\\"ja\\\",\\n    \\\"idealUrl\\\": \\\"https://eu.gcsip.nl/orb/orb?ACTION=DO_START&REF=000000410000189819490000100001&MAC=X0DltkJtDMVsl1thPA%2BsQ3Zx3fXoZ5nrkgP53iRHW2E%3D\\\",\\n    \\\"orderId\\\": 18981949\\n  },\\n  \\\"processingInfo\\\": {\\n    \\\"processingStatus\\\": \\\"PENDING\\\"\\n  }\\n}\",\n      \"language\": \"json\",\n      \"name\": \"Returning shopper, language, & issuer ID\"\n    },\n    {\n      \"code\": \"{\\n  \\\"vendorsInfo\\\": {\\n    \\\"vendorInfo\\\": [\\n      {\\n        \\\"vendorId\\\": 837389,\\n        \\\"commissionPercent\\\": 30\\n      }\\n    ]\\n  },\\n  \\\"amount\\\": 50,\\n  \\\"currency\\\": \\\"EUR\\\",\\n  \\\"payerInfo\\\": {\\n    \\\"firstName\\\": \\\"John\\\",\\n    \\\"lastName\\\": \\\"Doe\\\",\\n    \\\"country\\\": \\\"nl\\\"\\n  },\\n  \\\"vaultedShopperId\\\": 28538979,\\n  \\\"idealTransaction\\\": {\\n    \\\"idealUrl\\\": \\\"https://eu.gcsip.nl/orb/orb?ACTION=DO_START&REF=000000410000189823150000100001&MAC=EjyS8ltyAnMY37AwFA7OjxqDJtjXv6GFZXSzjMEFlM4%3D\\\",\\n    \\\"orderId\\\": 18982315\\n  },\\n  \\\"processingInfo\\\": {\\n    \\\"processingStatus\\\": \\\"PENDING\\\"\\n  }\\n}\",\n      \"language\": \"json\",\n      \"name\": \"Marketplace vendor\"\n    }\n  ]\n}\n[/block]\n<a class=\"btn btn-primary\" href=\"#\" role=\"button\">Back to Top</a>\n\n<hr>\n\n##Example Descriptions\nFor details about the above examples, see:\n* [Create a basic iDEAL transaction with a new shopper](#section-create-a-basic-ideal-transaction-with-a-new-shopper)\n* [Create an iDEAL transaction with a returning shopper](#section-create-an-ideal-transaction-with-a-returning-shopper)\n* [Create an iDEAL transaction with a Marketplace vendor](#section-create-an-ideal-transaction-with-a-marketplace-vendor)\n\n### Create a basic iDEAL transaction with a new shopper\nThis example shows a basic request with a new shopper whose details are included within `payerInfo`. The `returnUrl` property specifies where the shopper should be redirected after they complete the payment. A successful response will include `idealUrl`, which is the URL you will need to direct the shopper to so they can complete their purchase. \n\n### Create an iDEAL transaction with a returning shopper\nThis example shows a request with a returning shopper whose ID is specified by the `vaultedShopperId` property. Note that the vaulted shopper must have a saved country of **nl**. The request includes `issuerId`, which specifies the shopper's selected bank. This tells BlueSnap that the bank selection step can be skipped later in checkout - the shopper will be directed straight to their bank portal. Additionally, the request includes `language`, which specifies how the pages should be translated.  \n\n### Create an iDEAL transaction with a Marketplace vendor\nThis example shows a request with a [Marketplace](/docs/marketplace-overview) vendor whose ID is specified by `vendorId`. Additional vendors can be added to the transaction by including another vendor object within `vendorInfo`. \n\n<br>\n\n<a class=\"btn btn-primary\" href=\"#\" role=\"button\">Back to Top</a>\n\n<hr>\n\n##API Explorer\nTo test out a call, enter the request content below and then click **Try it!**\n\n**Tip**: Use the JSON code below as a starting point. You can enter different parameters to see how your test scenario would work. *The request headers, including authorization, are already built in for you in this test area, so you should not include them here.*\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n  \\\"amount\\\": 42,\\n  \\\"currency\\\": \\\"EUR\\\",\\n  \\\"payerInfo\\\": {\\n    \\\"firstName\\\": \\\"John\\\",\\n    \\\"lastName\\\": \\\"Doe\\\"\\n  },\\n  \\\"idealTransaction\\\": {\\n    \\\"returnUrl\\\": \\\"http://www.returnURL.com\\\"\\n  }\\n}\",\n      \"language\": \"json\"\n    }\n  ]\n}\n[/block]","updates":[],"order":0,"isReference":false,"hidden":false,"sync_unique":"","link_url":"","link_external":false,"_id":"5f4552a6f866760018ab8d71","createdAt":"2020-08-25T18:04:22.184Z","user":"5ea72d649148ff00653f6bbc","category":{"sync":{"isSync":false,"url":""},"pages":[],"title":"iDEAL Transactions","slug":"ideal-transactions","order":5,"from_sync":false,"reference":false,"_id":"5f45521ec5bfe9005a858533","createdAt":"2020-08-25T18:02:06.263Z","version":"5f43d7db37d54d01d8ef0876","project":"57336fd5a6a9c40e00e13a0b","__v":0},"version":{"version":"8976-JSON","version_clean":"8976.0.0-JSON","codename":"3.35 Release","is_stable":false,"is_beta":false,"is_hidden":false,"is_deprecated":false,"categories":["5f43d7db37d54d01d8ef07cb","5f43d7db37d54d01d8ef07cc","5f43d7db37d54d01d8ef07cd","5f43d7db37d54d01d8ef07ce","5f43d7db37d54d01d8ef07cf","5f43d7db37d54d01d8ef07d0","5f43d7db37d54d01d8ef07d1","5f43d7db37d54d01d8ef07d2","5f43d7db37d54d01d8ef07d3","5f43d7db37d54d01d8ef07d4","5f43d7db37d54d01d8ef07d5","5f43d7db37d54d01d8ef07d6","5f43d7db37d54d01d8ef07d7","5f43d7db37d54d01d8ef07d8","5f43d7db37d54d01d8ef07d9","5f43d7db37d54d01d8ef07da","5f43d7db37d54d01d8ef07db","5f45521ec5bfe9005a858533"],"_id":"5f43d7db37d54d01d8ef0876","project":"57336fd5a6a9c40e00e13a0b","__v":1,"forked_from":"5ed0377101fdb400214dedaa","createdAt":"2018-04-24T15:22:41.561Z","releaseDate":"2018-04-24T15:22:41.561Z"},"project":"57336fd5a6a9c40e00e13a0b","__v":0,"parentDoc":null}

postCreate iDEAL Transaction


Definition

{{ api_url }}{{ page_api_url }}

Documentation

The Create iDEAL Transaction request performs a transaction using the iDEAL payment method. For implementation details, see the iDEAL guide.


Try it in the API Explorer

Request Content

Send an altTransaction object, with the following:

      amount     decimal    required
      currency     string    required   value must be EUR
      idealTransaction     object    required (see idealTransaction)
      payerInfo     object    optional include for a new shopper (see payerInfo)
      vaultedShopperId*     integer    optional include for a vaulted shopper
      vendorsInfo object    optional (see vendorsInfo)
      merchantTransactionId     string    optional
      transactionMetaData     object    optional (see transactionMetaData)
      transactionFraudInfo     object    optional (see transactionFraudInfo)

*The vaulted shopper's saved country must be nl.

Response Details

If successful, the response HTTP status code is 200 OK.
The response contains the request properties plus these additions:

      vaultedShopperId
      processingInfo   (see processingInfo)
      fraudResultInfo   (see fraudResultInfo)


Examples

Request Examples

curl -v -X POST https://sandbox.bluesnap.com/services/2/alt-transactions/ \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \ 
-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \
-d '
{
  "amount": 42,
  "currency": "EUR",
  "payerInfo": {
    "firstName": "John",
    "lastName": "Doe",
    "country": "nl"
  },
  "idealTransaction": {
    "returnUrl": "http://www.returnURL.com"
  }
}'
curl -v -X POST https://sandbox.bluesnap.com/services/2/alt-transactions/ \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \ 
-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \
-d '
{
  "amount": 57,
  "currency": "EUR",
  "vaultedShopperId": 20769005,
  "idealTransaction": {
    "language": "ja",
    "issuerId": "INGBNL2A",
    "returnUrl": "http://www.returnURL.com"
  }
}'
curl -v -X POST https://sandbox.bluesnap.com/services/2/alt-transactions/ \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \ 
-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \
-d '
{
  "amount": 50,
  "currency": "EUR",
  "payerInfo": {
    "firstName": "John",
    "lastName": "Doe",
    "country": "nl"
  },
  "idealTransaction": {
    "returnUrl": "http://www.returnURL.com"
  },
  "vendorsInfo": {
    "vendorInfo": [
      {
        "vendorId": 837389
      }
    ]
  }
}'

Response Examples

{
  "amount": 42,
  "currency": "EUR",
  "payerInfo": {
    "firstName": "John",
    "lastName": "Doe",
    "country": "nl"
  },
  "vaultedShopperId": 28538973,
  "idealTransaction": {
    "idealUrl": "https://eu.gcsip.nl/orb/orb?ACTION=DO_START&REF=000000410000189819470000100001&MAC=1mIB9PXVj7r6tDRnFuIcOm31geLvBVGXXPYDubOunDM%3D",
    "orderId": 18981947
  },
  "processingInfo": {
    "processingStatus": "PENDING"
  }
}
{
  "amount": 57,
  "currency": "EUR",
  "vaultedShopperId": 20769005,
  "idealTransaction": {
    "issuerId": "INGBNL2A",
    "language": "ja",
    "idealUrl": "https://eu.gcsip.nl/orb/orb?ACTION=DO_START&REF=000000410000189819490000100001&MAC=X0DltkJtDMVsl1thPA%2BsQ3Zx3fXoZ5nrkgP53iRHW2E%3D",
    "orderId": 18981949
  },
  "processingInfo": {
    "processingStatus": "PENDING"
  }
}
{
  "vendorsInfo": {
    "vendorInfo": [
      {
        "vendorId": 837389,
        "commissionPercent": 30
      }
    ]
  },
  "amount": 50,
  "currency": "EUR",
  "payerInfo": {
    "firstName": "John",
    "lastName": "Doe",
    "country": "nl"
  },
  "vaultedShopperId": 28538979,
  "idealTransaction": {
    "idealUrl": "https://eu.gcsip.nl/orb/orb?ACTION=DO_START&REF=000000410000189823150000100001&MAC=EjyS8ltyAnMY37AwFA7OjxqDJtjXv6GFZXSzjMEFlM4%3D",
    "orderId": 18982315
  },
  "processingInfo": {
    "processingStatus": "PENDING"
  }
}

Back to Top


Example Descriptions

For details about the above examples, see:

Create a basic iDEAL transaction with a new shopper

This example shows a basic request with a new shopper whose details are included within payerInfo. The returnUrl property specifies where the shopper should be redirected after they complete the payment. A successful response will include idealUrl, which is the URL you will need to direct the shopper to so they can complete their purchase.

Create an iDEAL transaction with a returning shopper

This example shows a request with a returning shopper whose ID is specified by the vaultedShopperId property. Note that the vaulted shopper must have a saved country of nl. The request includes issuerId, which specifies the shopper's selected bank. This tells BlueSnap that the bank selection step can be skipped later in checkout - the shopper will be directed straight to their bank portal. Additionally, the request includes language, which specifies how the pages should be translated.

Create an iDEAL transaction with a Marketplace vendor

This example shows a request with a Marketplace vendor whose ID is specified by vendorId. Additional vendors can be added to the transaction by including another vendor object within vendorInfo.


Back to Top


API Explorer

To test out a call, enter the request content below and then click Try it!

Tip: Use the JSON code below as a starting point. You can enter different parameters to see how your test scenario would work. The request headers, including authorization, are already built in for you in this test area, so you should not include them here.

{
  "amount": 42,
  "currency": "EUR",
  "payerInfo": {
    "firstName": "John",
    "lastName": "Doe"
  },
  "idealTransaction": {
    "returnUrl": "http://www.returnURL.com"
  }
}

User Information

Try It Out


post
{{ tryResults.results }}
Method{{ tryResults.method }}
Request Headers
{{ tryResults.requestHeaders }}
URL{{ tryResults.url }}
Request Data
{{ tryResults.data }}
Status
Response Headers
{{ tryResults.responseHeaders }}