Skip to content

Instantly share code, notes, and snippets.

@rmpugh
Last active July 11, 2018 12:48
Show Gist options
  • Save rmpugh/0ac50526db625cde1a26c4213b5119b5 to your computer and use it in GitHub Desktop.
Save rmpugh/0ac50526db625cde1a26c4213b5119b5 to your computer and use it in GitHub Desktop.
<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-...."},
"user":{
"id":"123",
"email":"joe@example.com",
"full_name":"Joe Bloggs",
"allowed_products":[{"name": 'MyProduct', "id": 'my_product_external_id'}]
}
};
</script>
@gwing33
Copy link

gwing33 commented Apr 5, 2018

Minor typo?

"allowed_products":[{"name" => 'MyProduct', "id" => 'my_product_external_id'}]

// Maybe this?

"allowed_products":[{"name": "MyProduct", "id": "my_product_external_id"}]

@rmpugh
Copy link
Author

rmpugh commented Jul 11, 2018

Hi Gerald,

Thanks for letting me know! Updated now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment