Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IRON-38981] Add support for confirmation email subject prop #93

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ For accounts at `app.demo.pactsafe.com`, set the `psScriptUrl` prop as `//vault.
| `accessId` | Ironclad Clickwrap Site Access ID | string | Yes, if `injectSnippetOnly` is not passed | undefined |
| `clickWrapStyle` | Override the clickwrap style specified in the Ironclad Clickwrap Group Interface | string.oneOf[`'full'`, `'scroll'`, `'checkbox'`, `'combined'`, `'embedded'`] | No | Value specified in Ironclad Clickwrap Group's UI |
| `confirmationEmail` | Override whether to send a confirmation email to the signer upon contract acceptance | bool | No | Value specified in Ironclad Clickwrap Group's UI |
| `confirmationEmailSubject` | Set the subject line of the confirmation email | string | No | "You've accepted an agreement" |
| `containerId` | The div ID that will contain your clickwrap. You should override this if you plan on displaying more than one contract on a page. | string | No | ps-clickwrap |
| `customData` | Object containing custom keys and values you specify that is added to the metadata on your acceptance. | object | No | undefined |
| `disableSending` | Turn this on if you want to manually send the agreed event instead of it automatically being sent on contract acceptance. [See documentation on manually sending the agreed event here.](https://developer.pactsafe.com/docs/get-to-know-our-javascript-library#section-3-sending-agreed-in-javascript) | bool | No | false |
Expand Down
3 changes: 3 additions & 0 deletions src/PSClickWrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ class PSClickWrap extends React.Component {
clickWrapStyle,
customData,
confirmationEmail,
confirmationEmailSubject,
containerId,
displayAll,
displayImmediately,
Expand All @@ -228,6 +229,7 @@ class PSClickWrap extends React.Component {
...(acceptanceLanguage !== undefined && { acceptance_language: acceptanceLanguage }),
auto_run: displayImmediately,
...(confirmationEmail !== undefined && { confirmation_email: confirmationEmail }),
...(confirmationEmailSubject !== undefined && { confirmation_email_subject: confirmationEmailSubject }),
container_selector: containerId,
display_all: displayAll,
...(filter !== undefined && { filter }),
Expand Down Expand Up @@ -294,6 +296,7 @@ PSClickWrap.propTypes = {
'embedded',
]),
confirmationEmail: PropTypes.bool,
confirmationEmailSubject: PropTypes.string,
customData: PropTypes.object,
disableSending: PropTypes.bool,
displayAll: PropTypes.bool,
Expand Down
Loading