-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PW-421: Adding Checkout and Checkout Utility support, modified CurlCl… #62
Conversation
…ient to make it testable
src/Adyen/Service/Checkout.php
Outdated
$this->_paymentMethods = new \Adyen\Service\ResourceModel\Checkout\PaymentMethods($this); | ||
$this->_payments = new \Adyen\Service\ResourceModel\Checkout\Payments($this); | ||
$this->_paymentsDetails = new \Adyen\Service\ResourceModel\Checkout\PaymentsDetails($this); | ||
$this->_supportsXAPIKey = true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
now that the pal is accepting apiKey, we should better change it to "requiresApiKey".
Preferably bring another \Adyen\Service subclass (eg. ApiKeyAuthenticatedService) that has it set by default and let Checkout extending the new service class
src/Adyen/Client.php
Outdated
const ENDPOINT_CHECKOUT_TEST = "https://checkout-test.adyen.com"; | ||
const ENDPOINT_CHECKOUT_LIVE = "https://checkout-live.adyen.com"; | ||
const ENDPOINT_CHECKOUT_UTILITY_TEST = "https://checkout-test.adyen.com/checkoutUtility"; | ||
const ENDPOINT_CHECKOUT_UTILITY_LIVE = "https://checkout-live.adyen.com/checkoutUtility"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove those two lines.
tests/MockTest/CheckoutTest.php
Outdated
} catch (\Exception $e) { | ||
} | ||
|
||
$this->assertEquals('Adyen\AdyenException', get_class($e)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
better put these exception assertions within catch and add a fail() call after line 58
…ot provided, added fail() call to the failureTests
…ient to make it testable
Description
added the following endpoints:
SDK Integration:
/setup
/verify
API Integration:
/paymentMethods
/payments
/payments/details
Checkout Utility:
/originKeys