Create Pay by Bank Transaction

🚧

Beta Feature

Pay by Bank is currently in beta and not suitable for production environments.

The Create Pay by Bank Transaction request performs a transaction using the Pay by Bank payment method. For implementation details, see Pay by Bank (Open Banking).

Request Content

📘

Send a test request

Go to API Explorer to send a test request to our sandbox environment and receive a response in real time.

Send an altTransaction object. The type of shopper determines the content required in the request body:

The following table describes required and optional body parameters:

PropertyTypeRequired
amountdecimalrequired
currencystringrequired
merchantTransactionIdstringoptional
payByBankTransactionobjectrequired. See payByBankTranscation.
payerInfoobjectrequired for a new shopper. See payerInfo.
productDescriptionstringoptional
softDescriptorstringoptional
transactionMetaDataobjectoptional (see transactionMetaData)
vaultedShopperIdintegerrequired for a returning shopper. See vaultedShopper.
vendorsInfoobjectrequired if using marketplace vendors (see vendorsInfo)

Response

Successful requests return the HTTP response status code 200 OK and a response body that contains the following properties:

PropertyNotes
amountValue of the transaction in the provided currency.
currencyCurrency used to process the transaction.
merchantTransactionIdMerchant-provided unique identifier for the transaction.
payByBankTransactionSee payByBankTranscation.
payerInfoReturned when vaultedShopperId is not sent in the request. See payerInfo.
processingInfoStatus of the transaction. See processingInfo.
productDescriptionDetails about the product purchased in the transaction.
transactionIdUnique identifier for the transaction.
vaultedShopperIdUnique identifier for the vaulted shopper.

Examples

Request Examples

curl --request POST \
     --url https://sandbox.bluesnap.com/services/2/alt-transactions \
     --header 'Authorization: Basic QVBJXzE2MTk2MjgyMzU0ODkyMDM5MTMzODc0OkFsdG9pZHMxIQ==' \
     --header 'accept: application/json' \
     --header 'bluesnap-version: 3.0' \
     --header 'content-type: application/json' \
     --data '
     {
          "payByBankTransaction": {
               "returnUrl": "https://path/to/success-page?success=true",
               "cancelUrl": "https://path/to/failure-page?failure=true",
               "iban": "DE12345678901234567890"
          },
          "amount": 100,
          "payerInfo": {
               "zip": "12345",
               "firstName": "Jane",
               "lastName": "Doe",
               "country": "de"
          },
               "currency": "EUR"
     }'
curl --request POST \
     --url https://sandbox.bluesnap.com/services/2/alt-transactions \
     --header 'Authorization: Basic QVBJXzE2MTk2MjgyMzU0ODkyMDM5MTMzODc0OkFsdG9pZHMxIQ==' \
     --header 'accept: application/json' \
     --header 'bluesnap-version: 3.0' \
     --header 'content-type: application/json' \
     --data '
     {
          "payByBankTransaction": {
               "returnUrl": "https://returnURL?success=true",
               "cancelUrl": "https://cancelURL?failure=true"
          },
          "vaultedShopperId": 87654321,
          "amount": 100,
          "currency": "EUR"
      }'

Response Examples

{
     "transactionId": "12345678",
     "amount": 100,
     "currency": "EUR",
     "payerInfo": {
         "firstName": "Jane",
         "lastName": "Doe",
         "country": "de",
         "zip": "12345"
     },
     "vaultedShopperId": 87654321,
     "payByBankTransaction": {
         "payByBankUrl": "https://<hostname>:8444/services/fel/pbb/hostedpage?hpid=<hosted-page-id>==&invid=<invid-id>",
         "ibanFirstFour": "DE12",
         "ibanLastFour": "7890"
     },
     "productDescription": "N/A",
     "processingInfo": {
         "processingStatus": "PENDING"
     }
}
{
     "transactionId": "12345678",
     "amount": 100,
     "currency": "EUR",
     "vaultedShopperId": 87654321,
     "payByBankTransaction": {
          "payByBankUrl": "https://<hostname>:8444/services/fel/pbb/hostedpage?hpid=<hosted-page-id>==&invid=<invid-id>",
          "ibanFirstFour": "DE12",
          "ibanLastFour": "7890"
     },
     "productDescription": "N/A",
     "processingInfo": {
          "processingStatus": "PENDING"
     }
}

API Explorer

BlueSnap provides a sandbox environment so you can test basic requests with this endpoint. You can view the request in the API Explorer console and its response directly below the console.

The console includes a sample request with predefined parameter values. To send a request with custom values, edit the parameter fields below. As you edit the fields, your custom values display in the request in the console.

Click the Try it! button below the request example when you are ready to send your request.

Language
Credentials
Header
Click Try It! to start a request and see the response here!