Giter VIP home page Giter VIP logo

Comments (7)

crrood avatar crrood commented on September 20, 2024 1

Hi Hafizion,

Thanks for bringing this to our attention! We've added a new variable Client.checkout_url_prefix which should be set to [random]-[company name].

For instance, if your full URL is https://9924a0f19cb1d71c-TestMerchant-checkout-live.adyenpayments.com/checkout/v32/paymentSession, Client.checkout_url_prefix will be 9924a0f19cb1d71c-TestMerchant.

It will be part of the pending 1.0.2 release.

Cheers,
Colin

from adyen-ruby-api-library.

crrood avatar crrood commented on September 20, 2024 1

Hi Hafizio,

Yes indeed, there was a bug in the fix for the checkout_url_prefix that broke it for the test environment. It should be working on develop now.

For the URL in the API response, please just pass the encoded paymentSession object to the SDK as is. It's not meant to be decoded or edited in any way.

from adyen-ruby-api-library.

hafizio avatar hafizio commented on September 20, 2024

This is what I was able to capture from out Sentry log:

Faraday::ConnectionFailed
Please confirm that Client.env is set to the right value (:live or :test)
SocketError
Failed to open TCP connection to checkout-live.adyen.com:443 (getaddrinfo: Name or service not known)

from adyen-ruby-api-library.

hafizio avatar hafizio commented on September 20, 2024

I can also see that the endpoint should be different for the live endpoint:

[random]-[company name]-checkout-live.adyenpayments.com

Reference:
https://docs.adyen.com/developers/development-resources/live-endpoints#checkoutendpoints

from adyen-ruby-api-library.

hafizio avatar hafizio commented on September 20, 2024

@crrood creating a payment session works now, but we still notice the wrong URL is being encoded in the checkout token:

{
    "checkoutshopperBaseUrl": "https:\/\/checkoutshopper-live.adyen.com\/checkoutshopper\/",
    "disableRecurringDetailUrl": "https:\/\/checkoutshopper-live.adyen.com\/checkoutshopper\/services\/PaymentInitiation\/v1\/disableRecurringDetail",
    "generationtime": "2018-10-01T07:42:06Z",
    "initiationUrl": "https:\/\/checkoutshopper-live.adyen.com\/checkoutshopper\/services\/PaymentInitiation\/v1\/initiate",
     ...
}

from adyen-ruby-api-library.

crrood avatar crrood commented on September 20, 2024

Hi Hafizio,

Can you give me a bit more information about where this object came from? It is the response from the API?

from adyen-ruby-api-library.

hafizio avatar hafizio commented on September 20, 2024

@crrood that's what we got from the paymentSession API result (the encoded result). That particular issue has been fixed, we're able to checkout using the :live option now, but it's now affecting our :test mode 😓

Faraday::ConnectionFailed: Please confirm that Client.env is set to the right value (:live or :test)

Sentry log:

Failed to open TCP connection to -checkout-live.adyenpayments.com:443 (getaddrinfo: Name or service not known)

We're getting this error when testing on our :test mode while the :live option works.

This is the commit that we're using:

gem 'adyen-ruby-api-client', github: 'Adyen/adyen-ruby-api-library', branch: 'develop', ref: '6f49038'

Thanks!

from adyen-ruby-api-library.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.