Pass Variable To A Custom Payment Form

MJ313
Campaign Contributor
0 Votes

Hello,

 

We would like to send out emails  to our Contacts with a link to a Custom PayPal Payment form. We would like to send to the Payment form the Contact Name and Contact ID from Constant Contact. Can you please help on how to do that. We already have a Constant Contact API Key.

 

Thanks.

3 REPLIES 3
Mark-C
Marketing Legend
0 Votes

Hello,

 

Are you creating your emails via the API, or within a Constant Contact account?  If you are creating your emails through the website using our graphical web-based editor, we have an FAQ that describes how to add dynamic links to emails.

 

Essentially, you already have the contact name, so you would need to add Contact ID in a custom field in each contact's details, and then you can merge the details you want to use into your email along with other portions of the HTML code that will create the hyperlink.  

 

This can also be done when creating custom-coded emails (XHTML only), through our Advanced Editor in the User Interface, or through the Campaigns API.

 

If you have questions regarding use of the API to create your emails, I'll be happy to help, but you can get direct assistance from our Customer Support staff on how to create dynamic links (for custom emails, our second-level technical support team can call you and provide a demonstration of this in your account).

 

Cheers,

Mark Coleman
Support Engineer
Kipu55
Rookie
0 Votes

yes, but I want to add the contact's unique id from contact contact

 

I want to pass that I as a query string url and then on the back-end do a call to get contacts info

 

https://api.constantcontact.com/v2/contacts/$ccId?api_key=$apiKey

 

 

Courtney_E
Moderator
0 Votes

Hello,

 

In order to insert the Constant Contact contactId into the body of an email, you would need to retrieve the contactId and then add it as a Custom Field within the contact in order to use it as part of a Dynamic Link. We don't currently offer a way to insert the contactId directly into an email campaign.

 

Bulk Activities - Export Contacts Endpoint
https://v2.developer.constantcontact.com/docs/bulk_activities_api/bulk-activities-export-contacts.ht...

 


Regards,

Courtney E.
Tier II API Support Engineer

Did I answer your question?
If so, please mark my post as an "Accepted Solution" by clicking the Accept as Solution button in the bottom right hand corner of this post.
Resources
Developer Portal

View API documentation, code samples, get your API key.

Visit Page

Announcements

API Updates

Join our list to be notified of new features and updates to our V3 API.

Sign Up

Polls
How confident are you about the effectiveness of your current marketing strategy?

Top Choice: Not confident at all (62%)