-
Notifications
You must be signed in to change notification settings - Fork 55
Description
Description
Checkout recurring endpoint was created with a different path than what the API documentation states.
Steps to reproduce
To reproduce the issue, follow the steps below:
1 - install the version 11.1.0
2 - then create an instance of Adyen::Client
3 - and call client.checkout.recurring_api.stored_payment_methods(...)
Actual behavior
It is making a request to https://pal-test.adyen.com/pal/servlet/Recurring/v71/storedPaymentMethods
Expected behavior
It should be hitting https://checkout-test.adyen.com/v71/storedPaymentMethods
Code snippet or screenshots (if applicable)
It seems that there is a new class added (or renamed) https://github.com/Adyen/adyen-ruby-api-library/blob/main/lib/adyen/services/recurring/recurring_api.rb#L12 which is instantiated and it sets service instance var to Recurring which later on triggers the creation of the "wrong" service url here
| when 'Recurring', 'Payment', 'Payout', 'BinLookup', 'StoredValue', 'BalanceControl' |
From my perspective, since it is within checkout context, the instance should be instantiated via this instead https://github.com/Adyen/adyen-ruby-api-library/blob/main/lib/adyen/services/checkout/recurring_api.rb#L12
> client.checkout.recurring_api.service
=> "Recurring"Adyen Ruby API Library version
11.1.0
Ruby language version
ruby 3.4.4
Operating System
Linux
Additional context
No response