Skip to content

[Bug]: CheckoutAPI.PaymentsApi.sessions missing payable attribute #1742

Closed

Description

@AndrewBoklashko

Description

It is not possible to execute 'Update session amount' operation via @adyen/api-library as it requires payable field

Steps to reproduce

With @adyen/api-library 32.0.0, the following code snippet

const response = await this.adyenCheckoutApi.PaymentsApi.sessions({
  payable: false,
  amount: {
    ...
  },
  ...
});

Actual behavior

Fails with TS error: 'S2353: Object literal may only specify known properties, and payable does not exist in type CreateCheckoutSessionRequest'

@ts-ignore doesn't help, it only works in runtime if we add payable field to attributeTypeMap like so:

import { Types } from '@adyen/api-library';

Types.checkout.CreateCheckoutSessionRequest.attributeTypeMap.push({
  name: 'payable',
  baseName: 'payable',
  type: 'boolean',
  format: '',
});

Expected behavior

payable field works with @adyen/api-library since it claims to support Checkout API v72.

Code snippet or screenshots (if applicable)

No response

Adyen Node API Library version

32.0.0

Node.js version

24

NPM version

Operating System

Windows

Additional context

Adyen documentation link which references payable field

Activity

  1. jeandersonbc commented on Aug 13, 2026

    @jeandersonbc
    Contributor

    Hey @AndrewBoklashko, thanks for reporting this. Since you are referring to "Update session amount" It seems that the fix for what you reported should land after this PR gets merged: https://github.com/Adyen/adyen-node-api-library/pull/1735/changes#diff-683720aab7617a53dd13218fe16e2f651707feee7546e6e8693f4adc49a74dfb

    We recently started to update the libraries to use Checkout v72 and it looks like by the time we updated the node library, the spec used for generation didn't have the PATCH-related models included.

    We are currently reviewing changes from other libraries and we will catch-up with pending changes here.
    Apologies for the inconvenience, we will keep the thread posted once we have updates to share

  2. AndrewBoklashko commented on Aug 17, 2026

    @AndrewBoklashko
    Author

    Thanks for the update @jeandersonbc

    Somehow I figured that session PATCH will be added later but thought that payable attribute should be suppported because that's a part of existing endpoint. Not a problem for us, we can wait for the library to be fully updated to conform to Checkout v72 API.

  3. gcatanese commented on Aug 24, 2026

    @gcatanese
    Contributor

    It is fixed by #1735

  4. AndrewBoklashko commented on Aug 24, 2026

    @AndrewBoklashko
    Author

    @gcatanese we sure about it?

    I've checked the PR briefly and it only adds possibility to PATCH session with the payable attribute.
    What I was looking for is having payable attribute on a POST session request(CreateCheckoutSessionRequest) - and I don't see that being implemented in the PR you've referenced.

    Or am I just missing something?

  5. gcatanese commented on Aug 25, 2026

    @gcatanese
    Contributor

    Hey @AndrewBoklashko, I see that payable is not supported in the POST /sessions. What is your use case exactly?

    payable is set to true (in the PATCH) to finalise the payment information before heading to the Checkout, I am not sure it plays a role during the creation of the session. Please let me know what you think. Thank you.

  6. AndrewBoklashko commented on Aug 25, 2026

    @AndrewBoklashko
    Author

    According to Adyen docs - it does play a role. I'm not sure what the default is, assuming it's true since doc explicitly guides to set payable=false to support updating amount.

    See https://docs.adyen.com/online-payments/build-your-integration/sessions-flow?platform=Web&integration=Components&version=6.31.1#create-payment-session

    Image
  7. gcatanese commented on Aug 25, 2026

    @gcatanese
    Contributor

    You are correct, I am asking Checkout team to clarify. It looks like the OpenAPI spec is missing the attribute in case of /sessions POST.

  8. AndrewBoklashko commented on Sep 4, 2026

    @AndrewBoklashko
    Author

    Any updates here?

    I see that v32.1.0 was released supporting PaymentsApi.updateSession API(which is great 👍) but no payable attribute for PaymentsApi.sessions.
    Assuming still waits for OpenAPI spec update from Checkout team.

  9. gcatanese commented on Sep 7, 2026

    @gcatanese
    Contributor

    @AndrewBoklashko Yes, the team hasn't been able to update the OpenAPI contract yet. I have reached out again.

  10. zevada commented on Sep 15, 2026

    @zevada

    Is there any ETA on this? We'd really like to take advantage of this feature but are currently blocked by the lack of the payable option in the POST request.

  11. jeandersonbc commented on Sep 18, 2026

    @jeandersonbc
    Contributor

    @zevada we are getting the specs fixed internally and soon they will be published. Once they are updated, we can prioritize patching the node library. We will keep this thread updated with the latests changes.

  12. poojah-adyen commented on Oct 7, 2026

    @poojah-adyen
    Contributor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions