This article explains how to create a Double the Donation account to test an integration.
Create a Double the Donation Account for Testing
Access and Configure Your Test Account
Account with your email address already exists
Create a 360MatchPro Account for Testing
- Partner TEST API Key - you'll use this to create test accounts (see below).
- Partner Identifier - you'll use this in your integration builds where partner_identifier appears.
Include your test partner's API key.
Configure the POST request as follows:
- {
- "username": "Partner Test 1", // Replace "Partner" with your platform name. If you provision more than one test account, label them with ascending integers.
- "partner_api_key": "partner-XXXXXXXXXXXXXXXX", // Replace with your test partner API key.
- "organization_name": "Partner Test 1", // Same as your username.
- "email": "youremail+dtdtest1@yourdomain.com", // Must be unique. We recommend using this syntax with ascending integers the match your username/organization name for your test account(s).
- "employer_identification_number": "string", // Optional field. Leave blank.
- "from_email": "string", // Optional field. Leave blank.
- "plugin_url": "string", // Optional field. Leave blank.
- "from_name": "string" // Optional field. Leave blank.
- }
Reference the Double the Donation Provision Account Data Schema for guidance.
After calling the create-360-account endpoint with these parameters, you will receive a JSON response containing the following:
-
360matchpro_public_key: The public key for the account, which will be used for account verification and data transfer between your platform and 360MatchPro.
-
360matchpro_private_key: The private key for the account, which will be used only for account verification.
-
email_cname: A JSON array representing the 3 CNAME records that have to be created so that emails 360MatchPro sends will be whitelisted by email providers.
A sample response follows:
- {
- "360matchpro_public_key": "XXXXXXXXXXXXXXXX",
- "360matchpro_private_key": "XXXXXXXXXXXXXXXX",
- "email_cname": {
- "mail_cname": {
- "valid": true,
- "type": "cname",
- "host": "XXX.com",
- "data": "XXXXX"
- },
- "dkim1": {
- "valid": true,
- "type": "cname",
- "host": "XXX.com",
- "data": "XXXXX"
- },
- "dkim2": {
- "valid": true,
- "type": "cname",
- "host": "XXX.com",
- "data": "XXXXX"
- }
- }
- }
Access and Configure Your Test Account
Visit https://doublethedonation.com/members/login/ and select "Forgot Password?" to trigger a password reset email to your inbox. Then, sign in using your email and password.
Navigate to "Automated Outreach" --> "Match Eligible" and enable/toggle on the Initial Email in the stream. Repeat this for the "Unknown Company" stream.
Navigate to "Settings" --> "Exclusion Rules" and uncheck the "Duplicate Donations" rule. This will allow you to test recurring transactions and use repeat email address and donation amounts without issue.
Troubleshooting
Account with your email address already exists
When provisioning an account, the username and email fields must be unique. If the username and/or email address is associated with a different account, the create-360-account endpoint will return the following response:
- {
- "errors": {
- "email": "Already registered with an existing account.",
- "username": "Already registered with an existing account."
- }
- }
If you receive this response, try a different email address. Refer to the recommended syntax for the email field in the POST request to the create-360-account endpoint above to avoid this error.