Developer documentation
HomeLogin
Enterprise API
Enterprise API
  • Authentication
    • Generate a private and a public certificate
    • Create a JWT token using your private key
  • Webhooks
  • Payment methods
    • Openbanking recurring payments
    • Openbanking payments
    • Card not present card payments
  • API reference
    • Payments
    • Payment methods
    • Customers
    • Settlements
    • Profiles
    • Specification
Powered by GitBook
On this page

Was this helpful?

  1. Payment methods

Openbanking payments

PreviousOpenbanking recurring paymentsNextCard not present card payments

Last updated 6 months ago

Was this helpful?

Openbanking payments are payments where an consumer or business authorises a SEPA Sct or SEPA SCT Inst payment using the banks web portal. In the end, it is up to the

Steps to creating an openbanking single payment:

  1. Create a payment request with the endpoint.

  2. Redirect the user to the link specific in the next.redirect field.

    1. When the user authorised the payment, the payment method state will change from created to succeeded.

    2. When the user rejected the authorisation, the payment method state will change from created to failed.

    3. You can skip our bank selection menu by suppling the following fields:

      1. openbanking.country

      2. openbanking.bic

      3. user.user_agent

      4. user.accept

      5. user.accept_encoding

      6. user.accept_language

      7. user.ip_address

      8. user.language

    4. Note that in order for the deep links to work on mobile, the redirect link must be opened by an sync user interaction (i.e. button click).

  3. If no execution date has been requested, the payment will be executed by the issuing bank as soon as possible, usually within 1-20 seconds.

  4. When the execution has been started, but is not guaranteed, we change the state from created to processing (and call your webhook).

  5. When the execution has been been guaranteed, we change the state from created, or processing, to succeeded.

Example payment creation

POST /v1/profiles/profile_c4f5e275fed234c98b38f90231/payments
Content-Type: application/json
Accept: application/json
Authorization: Bearer <your_access_token>

{
  "description": "Test description",
  "reference": "c75279b8-60f9-4a7d-a79a-3a231e967e24",
  "method": "openbanking",
  "currency": "EUR",
  "amount": 2283,
  "session": {
    "redirect_url": "https://www.bankingservice.ai/payment-result"
  }
    
}

Example response:

{
    "id": "payment_e04fd81843b943c58ef2fb8db9e66b2eec3",
    "method": "openbanking",
    "currency": "EUR",
    "amount": 2283,
    "openbanking": {
        "method": "sepa"
    },
    "description": "Test description",
    "state": "created",
    "next": {
        "redirect": "https://dashboard.bankingservice.ai/payment/payment_e04fd81843b943c58ef2fb8db9e66b2eec3/openbanking?reference=46c6255091e7a13cx7a6af81d0c4f7fe"
    },
    "metadata": null,
    "created": "2023-19-12T08:30:35.758Z",
    "_links": {
        "self": {
            "href": "/v1/profiles/profile_c4f5e275fe28fc98b38f90231/payments/payment_e04fd81843b943c58ef2fb8db9e66b2eec3",
            "type": "application/json"
        },
        "profile": {
            "href": "/v1/profiles/profile_c4f5e275fe28fc98b38f90231",
            "type": "application/json"
        },
        "customer": {
            "href": "/v1/profiles/profile_c4f5e275fe28fc98b38f90231/customers/customer_65382f2a7d804ccdb2021a7ede90680",
            "type": "application/json"
        },
        "payment-method": {
            "href": "/v1/profiles/profile_c4f5e275fe28fc98b38f90231/customers/payment-methods/payment_method_4c52e9aee8874f6ab7ed0420f649b5e2da3",
            "type": "application/json"
        }
    }
}

Example response after authorisation:

{
    "id": "payment_e04fd81843b943c58ef2fb8db9e66b2eec3",
    "method": "openbanking",
    "currency": "EUR",
    "amount": 2283,
    "sepa": {
        "last4": "8606",
        "bic": "ABNANL2A",
        "country": "NL",
        "holder_name": "JH DOE"
    },
    "openbanking": {
        "method": "sepa",
        "bic": "ABNANL2AXXX",
        "country": "NL"
    },
    "description": "Test description",
    "state": "succeeded",
    "metadata": null,
    "created": "2023-19-12T08:30:35.758Z",
    "_links": {
        "self": {
            "href": "/v1/profiles/profile_c4f5e275fe28fc98b38f90231/payments/payment_e04fd81843b943c58ef2fb8db9e66b2eec3",
            "type": "application/json"
        },
        "profile": {
            "href": "/v1/profiles/profile_c4f5e275fe28fc98b38f90231",
            "type": "application/json"
        },
        "customer": {
            "href": "/v1/profiles/profile_c4f5e275fe28fc98b38f90231/customers/customer_65382f2a7d804ccdb2021a7ede90680",
            "type": "application/json"
        },
        "payment-method": {
            "href": "/v1/profiles/profile_c4f5e275fe28fc98b38f90231/customers/payment-methods/payment_method_4c52e9aee8874f6ab7ed0420f649b5e2da3",
            "type": "application/json"
        }
    }
}
#v1-profiles-profileid-payments-1