Skip to content

Instantly share code, notes, and snippets.

<script>
var receptiveAppSettings = {
"return_url":"http://example.com/user/123",
"settings": {
"user": {
"find_by": "email"
},
"account": {
"find_by": "name"
}
<script>
var receptiveAppSettings = {
"return_url":"http://example.com/user/123",
"account":{
"id":"321",
"name":"Company Ltd",
"monthly_value":"99.99",
"is_paying":"true"},
"vendor":{
"id":"01234567-89ab-...."},
vendor-id: "vendor-12345"
secret-key: "secret-12345"
input: {"account":{"id":"a123456","is_paying":"true","monthly_value":"99.99"},
"vendor":{"id":"vendor-12345"},
"user":{"full_name":"Dan Test","email":"dan@example.com","id":"u123459"},
"return_url":"http://example.com"}
snippet expected:
snippet = {
"account" => {
"id" => "a123456",
"is_paying" => "true",
"monthly_value" => "99.99"
},
"vendor" => {
"id" => "vendor-12345"
},
"user" => {