Adyen
FinDock supports several payment methods through Adyen, a Dutch payment service provider that is today a global payments company.
Multi-merchant | Multi-currency |
---|---|
Payment Method | One-time | Recurring | Refunds |
---|---|---|---|
Bancontact | |||
Card | |||
iDEAL | |||
Sofort |
Prerequisites
- FinDock is installed and configured.
- WebhHub is connected.
ย ย ย If you plan on using the Sofort payment method in certain countries, you need to contact the Adyen Support Team. For further information, please see the Adyen documentation.
Install and activate Adyen for FinDock
Follow the standard procedure for installing payment processors to add the Adyen payment extension and activate payment methods.
Check and assign the required permissions. If you are using custom permission set groups, ensure the package-specific permission sets are assigned.
Set up an Adyen account
Configuring the Adyen for FinDock payment extension requires an Adyen account. You need to configure the account and use setting values from the account for the FinDock settings in Salesforce.
The following steps guide you through a FinDock integration with an Adyen test account. Once you have completed testing, the same integration steps can be used with your live Adyen account.
To set up an Adyen test account:
- Sign up for a text account at Adyen.
- After successful registration, log in to your account.
- Go to Developer > API credentials and click the Web Service user.
- Click Generate API key.
- Copy and save the generated API key for later. This key is needed to communicate with Adyen over the FinDock Payment API.
- Scroll down to Permissions and expand Accounts.
- Select the option to assign a specific account to these credentials and add your desired account. (Keep this account name handy as you'll need it for the FinDock extension settings).
- For Live (Production) accounts: Go to Developer > API URLs and copy the URL for the Live Checkout API up until
/checkout
as described here. Do not include the/[version]/[method]
part! - Add the copied URL from the previous step to your org Remote Site Settings.
Configure Adyen for FinDock
To configure the Adyen payment extension:
- Launch the FinDock app and click the FinDock Setup tab.
- Go to Payment Processors & Methods.
- Under Installed Processors, click the Adyen processor entry.
- Click Add account and add a name for the account (distinguishable from other targets).
- Enter the generated API key and name of the assigned account from the procedure above.
- Enable Test Account if you are in a test phase and donโt want to process real payments.
- For Live (Production) accounts, enter the Checkout API URL in the Production Checkout Endpoint field.
- Click Save.
- Repeat the above steps for each and enable Is Default for the account that should be used for payment intent messages that do not include a target.
Configure notifications in Adyen
To configure notifications in Adyen:
- In the Adyen for FinDock settings, copy the Notification URL.
- Go back to your Adyen portal and select the account you are integrating with FinDock.
- Navigate to Develop > Webhooks and click the + Webhook button.
- Click Add next to Standard Webhook.
- Under Server configuration, fill in the following and click Apply.
- URL: paste the FinDock notification URL you copied above.
- Method: select HTTP Post
- Encryption protocol: select TLSv1.2 or TLSv1.3
- Open Additional Settings and select the following and click Apply for each area.
- Bank:
- Include Bank Account Details
- Card:
- Include Card Holder
- Include card info for recurring contract notifications
- Include Card Bin
- Include Shopper Details
- Payment:
- Include Shopper Interaction
- Bank:
- Click Save Changes when you are done and then enable the webhook with the toggle at the top of the settings page.
Enable offer closed webhook
Adyen can send an OFFER_CLOSE
webhook event if a payer abandons a payment journey (after being redirected to the online banking method). When FinDock receives this event, the related installment is set to Failed.
This event is not available by default. You need to contact Adyen Support to get this event enabled for your account.
Optional API parameters for Adyen
When initiating payments through the API, additional processor-specific parameters can and/or need to be included for a particular payment method. You can check these parameters by calling the /PaymentMethods
or /PaymentProcessors
endpoints. For more information, see our API Reference Guide.
Pay by Link expiration time
A particularly important optional parameter for Adyen is the Pay by Link expiration time. These links expire in 24 hours unless you set a specific expiration time using the expiresAt
parameter. For further information, please see the Adyen Docs.
If you use the expiration time override, you need to specify a time in minutes instead of a ISO 8601 timestamp. FinDock takes care of calculating the correct ISO 8601 timestamp on the fly. So, in the PaymentIntent
you would add the following, for example, to tell Adyen that the link should expire in 60 minutes from the time of the API call.
{
"expiresAt":"60"
}
iDEAL issuer
If you would like to eliminate the step in the Adyen payment journey where customers make their own online banking selection from the list of official iDEAL issuers, you can use the optional issuer
parameter to set a specific issuer. When this is use, the customer is taken directly to the online banking service of the issuer.
Note, too, that Adyen has its own set of iDEAL issuers for testing purposes and only uses the official issuers in production. When an Adyen configuration is in test mode, FinDock bypasses its normal set of iDEAL issuers and overrides any issuer in the API message to Adyen with a test issuer value.
Testing iDEAL issuers
If you need to test iDEAL payments with a custom Adyen integration to the FinDock API (or using FinDock Giving Pages or PayLinks), you need to use specific issuer values to confirm the integration is working as expected. The following table provides the values you can use for testing purpose. Any other issuer not included in the table results in a successful payment.
FinDock API issuer | Adyen Test Issuer | Outcome |
---|---|---|
ing | 1151 | Success |
abn | 1162 | Cancelled |
rabo | 1161 | Pending |
bunq | 1160 | Refused |
Payment API messages
The following are example messages for single and recurring payments using the Payment API.
One-time payment
{
"SuccessURL": "https://www.example.com/success",
"FailureURL": "https://www.example.com/error",
"Payer": {
"Contact": {
"SalesforceFields": {
"FirstName": "Test",
"LastName": "Payment",
"Email": "testpayment@findock.com"
}
}
},
"OneTime": {
"Amount": "30"
},
"PaymentMethod": {
"Name": "CreditCard",
"Processor": "PaymentHub-Adyen"
},
"Settings": {
"SourceConnector": "PaymentHub"
}
}
Recurring payment
{
"SuccessURL": "https://www.example.com/success",
"FailureURL": "https://www.example.com/error",
"Payer": {
"Contact": {
"SalesforceFields": {
"FirstName": "Test",
"LastName": "Payment",
"Email": "testpayment@findock.com"
}
}
},
"OneTime": {
"Amount": "25"
},
"Recurring": {
"Amount": "25",
"Frequency": "Monthly",
"StartDate": "2020-11-01"
},
"PaymentMethod": {
"Name": "CreditCard",
"Processor": "PaymentHub-Adyen"
},
"Settings": {
"SourceConnector": "PaymentHub"
}
}