Create Pay by Bank Transaction

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

Request Content

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

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