Skip to content

Latest commit

 

History

History
27 lines (22 loc) · 2.28 KB

README.md

File metadata and controls

27 lines (22 loc) · 2.28 KB

Example app

The example-app module is used for development and testing purposes. It should not be used as a template for your own integration. Check out the docs for best practices on integration.

Running the app

Steps to run the example app:

  1. Build a server that acts as a proxy between the app and the Adyen Checkout API.
  2. Duplicate example.local.gradle and name it local.gradle. Make sure the file is placed in the example-app directory.
  3. Replace the predefined values:
    • MERCHANT_SERVER_URL: the URL to your server.
    • CLIENT_KEY: your client key. Find out how to obtain it here.
    • MERCHANT_ACCOUNT: your merchant account identifier.
    • AUTHORIZATION_HEADER_NAME: the name of the authorization header as expected by your server. You can use an empty string if this is not applicable for you.
    • AUTHORIZATION_HEADER_VALUE: the value for the authorization header. You can use an empty string if this is not applicable for you.
  4. Sync the project.
  5. Run on any device or emulator.

Warning

In case you don't have your own server you can connect to the Adyen Checkout API directly for testing purposes only. Be aware this could potentially leak your credentials, the market-ready application must never connect to Adyen API directly.

To connect to the Adyen Checkout API directly you can use the following values:

  • MERCHANT_SERVER_URL: https://checkout-test.adyen.com/{VERSION}/ (check here for the latest version).
  • AUTHORIZATION_HEADER_NAME: x-api-key.
  • AUTHORIZATION_HEADER_VALUE: your API key.