less than a minute read • Updated 2 days ago
Adyen
Connect Foxy to Adyen for secure payments.
- Countries
Australia, Brazil, Canada, China, France, Germany, Hong Kong, India, Indonesia...Show more
Adyen provide access to a large variety of payment options for customers, which are embedded directly onto the checkout. Some methods, like credit cards, can be completed directly on the checkout, while others redirect to a hosted payment page to complete.
Supported payment methods
Adyen support a whole host of different payment methods that can be enabled for your account. All are supported on the Foxy checkout except for Klarna and RatePay. Klarna can be supported for your store with our native integration.
The options actually displayed to customers are determined by Adyen based on what you have enabled on your account and where the customer is based.
Only a subset of their supported payment methods are compatible with subscriptions. You can review their supported payment methods on their website.
Setting up Adyen
You'll gather four values from Adyen: an API key, a client key, your merchant account code, and a webhook HMAC key.
Get your API key and client key
Get your merchant account code
Create a webhook and generate your HMAC key
Add a pending webhook for redirect payment methods
If you offer redirect payment methods like iDEAL or bank transfer, add a second webhook as well. The Standard webhook does not send the PENDING event, so without this Foxy has no way to mark those transactions as pending while they await approval.
Enter your credentials in Foxy
Testing
Obtaining a test account
You can obtain a test account from Adyen on their website at adyen.com/signup. After completing the application you'll receive an email with details on accessing your test account.
Once you've configured your account, we recommend running through some test transactions, especially with the countries and payment methods you anticipate selling through.
Test card numbers
Review the test card numbers available from Adyen's documentation.
Taking your Adyen account live
When you've finished testing, you can take your Adyen account live by working through Adyen's go-live checklist.
Your test setup is not copied over to your live Adyen account, so you'll need to generate a new API key, a new client key and a new HMAC key against your live account, and create the webhooks again there.
Before that, if you haven't already, log in to your Foxy administration and start your store's subscription from the dashboard.
Enter those live values under Live setup on the Adyen entry in your payment method set, then turn on Use live credentials for that set.
Troubleshooting & interpreting response codes
Contact Adyen for info.
Important notes and caveats
Possible action: datafeed handling
This section only applies if you've added the Generic pending webhook described above.
For delayed payment methods that Adyen offer, like bank transfers, we don't necessarily know at the time the customer completes the transaction whether it was completed. We rely on a notification from the gateway afterwards to confirm whether it was approved. Transactions are initially marked as pending, and we update them when the gateway confirms the result.
Each time the status changes, a datafeed is sent to your endpoint if configured, with the transaction details and a status node. The status node contains one of three values: pending, approved or rejected. Depending on what your endpoint does, make sure you check for the appropriate status value first.