Skip to content

Instantly share code, notes, and snippets.

@tobiasstrebitzer
Last active May 9, 2021 04:27
Show Gist options
  • Save tobiasstrebitzer/97ca530ad822b438d0c12caf27f7d510 to your computer and use it in GitHub Desktop.
Save tobiasstrebitzer/97ca530ad822b438d0c12caf27f7d510 to your computer and use it in GitHub Desktop.
[{
// Configure Stripe Target
"type": "stripe",
"options": {
// Your Stripe Publishable Key
"publishableKey": "pk_test_...",
// URL Called to prepare the Stripe Customer
"setupUrl": "https://api.magloft.dev/reader/universal-form/setup"
}
}, {
// Send data to your REST API via a JSON POST request
"type": "restApi",
"options": {
// URL to send the form data to
"url": "https://api.magloft.dev/reader/universal-form/trial",
// Fields that should be sent to your REST API
"requestFields": ["email"]
}
}, {
// Register user with Intercom
"type": "intercom",
"options": {
// Intercom App ID
"appId": "l9oci9nb",
// Event Name to trigger
"event": "trial",
// Optionally, set Intercom Properties when submitting the form
"properties": {"product": "pwa" }
}
}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment