Marketing Solutions Reference

Legacy


When you integrate the Marketing Solutions button, use these parameters:

element The element ID that houses the button.

options Pass one or more of these optional parameters to the button:

ParameterDefaultDescription
onContainerCreateNoneThe callback function.
host_nameNoneThe URL or hostname of the merchant site.
partner_nameNoneYour organization's name.
bn_codeNoneThe partner code PayPal gives you. It is typically from six to eight digits in length.
cidNoneThe settings the container ID passes back to the partner upon activation.
envproductionThe environment where the Marketing Solutions button operates: sandbox or production.
stylesPayPal button defaultThe styles option supports custom styles for the button. You can control the appearance of the button by entering a string of CSS values in camel case. Example:
style: [{"key1": "value1"}, {"button": "CSSvalueInCamelCase"}]
.