Skip to content
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

Merged
merged 11 commits into from
May 14, 2018

Conversation

Aleffio
Copy link
Member

@Aleffio Aleffio commented May 4, 2018

…ient to make it testable

Description
added the following endpoints:
SDK Integration:
/setup
/verify

API Integration:
/paymentMethods
/payments
/payments/details

Checkout Utility:
/originKeys

$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;
Copy link
Contributor

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

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";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove those two lines.

@Aleffio Aleffio changed the title PW-241: Adding Checkout and Checkout Utility support, modified CurlCl… PW-421: Adding Checkout and Checkout Utility support, modified CurlCl… May 8, 2018
} catch (\Exception $e) {
}

$this->assertEquals('Adyen\AdyenException', get_class($e));
Copy link
Contributor

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

@Aleffio Aleffio merged commit 444e645 into develop May 14, 2018
@cyattilakiss cyattilakiss deleted the PW-241 branch January 9, 2019 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants