{"_id":"54f4f09158e9df0d00917b3e","user":"54f10bab32242e0d0078614c","version":{"_id":"542998547a6b690800768071","__v":9,"project":"542998547a6b69080076806e","createdAt":"2014-09-29T17:35:16.249Z","releaseDate":"2014-09-29T17:35:16.249Z","categories":["542998547a6b690800768072","5433027990d63b1c0030c0f1","5433028190d63b1c0030c0f2","5433028d9a2b451a00ad4508","5433055790d63b1c0030c10a","5461417d37e5bc200049e1e4","54624066ddd31b0800a58db4","54625de66d1f1010002f3901","54d309955616470d0013cc55"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"project":"542998547a6b69080076806e","category":{"_id":"542998547a6b690800768072","version":"542998547a6b690800768071","pages":["542a3de5e677b0080050898f","544e8298de6bac1000236fe9","542998547a6b690800768074","542ab90154d88d140075fbd4","5433300867f20a080097a04b","5433302067f20a080097a04d","544e7ae6de6bac1000236fb5","54330b4990d63b1c0030c129","543da24b31ca981a00a6ffe7","54333238a807e208003e72d2","544e8305bd51b9080037f9cb","54332b234aeeef0800410a73","5433306067f20a080097a051","543db19f31ca981a00a70053","543d31d6a10ab32000b3aa70","54a1f0af50465f1f00bfa3e8","54cfc5925ff7e617002bbda5","54f4f09158e9df0d00917b3e"],"project":"542998547a6b69080076806e","__v":22,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2014-09-29T17:35:16.267Z","from_sync":false,"order":0,"slug":"getting-started","title":"Getting Started"},"parentDoc":null,"__v":25,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-03-02T23:21:53.576Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"auth":"required","params":[],"url":""},"isReference":false,"order":14,"body":"The Payment Widget is designed for User specified payments, such as donations.\n\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/Iu8UQyf3SaKyYoJRgpxb_ss4.png\",\n        \"ss4.png\",\n        \"536\",\n        \"162\",\n        \"\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]\n\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Integration\"\n}\n[/block]\nIdentical to the process of integrating the main Offer Wall, with some additional parameters for customizability.\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"<iframe src=\\\"https://wall.superrewards.com/super/pay?h=opokjysljir.983793074660&uid=123456\\\" frameborder=\\\"0\\\" width=\\\"540\\\" height=\\\"400\\\" scrolling=\\\"no\\\"></iframe>\",\n      \"language\": \"text\"\n    }\n  ]\n}\n[/block]\n\n[block:parameters]\n{\n  \"data\": {\n    \"h-0\": \"Parameter\",\n    \"h-1\": \"Description\",\n    \"h-2\": \"Required?\",\n    \"0-0\": \"&h=\",\n    \"0-1\": \"App Hash.\",\n    \"1-0\": \"&uid=\",\n    \"1-1\": \"User ID.\",\n    \"2-0\": \"&title=\",\n    \"3-0\": \"&description=\",\n    \"4-0\": \"&amount=\",\n    \"5-0\": \"&color=\",\n    \"5-1\": \"Theme color. Default is Super Rewards green.\\n\\nSpecify in hex format.\",\n    \"4-1\": \"Pre-set amount.\",\n    \"3-1\": \"A longer description.\",\n    \"2-1\": \"Short purchase description.\",\n    \"0-2\": \"Yes.\",\n    \"1-2\": \"Yes.\",\n    \"2-2\": \"Optional.\",\n    \"3-2\": \"Optional.\",\n    \"4-2\": \"Optional.\",\n    \"5-2\": \"Optional.\",\n    \"h-3\": \"Example Values\",\n    \"0-3\": \"opokjysljir.983793074660\",\n    \"1-3\": \"123456\\n\\nbob:::at:::superrewards.com\",\n    \"2-3\": \"Premium Server Access\",\n    \"3-3\": \"Pay what you want.\",\n    \"4-3\": \"5.00\",\n    \"5-3\": \"00AA00\"\n  },\n  \"cols\": 4,\n  \"rows\": 6\n}\n[/block]\n\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Advanced Integration\"\n}\n[/block]\nIf you would prefer to build your own user interface, while still leveraging the Super Rewards back-end, you may do so by interfacing directly with our **/pay_create_url** endpoint.\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"https://wall.superrewards.com/super/pay_create_url?h=opokjysljir.983793074660&uid=123456&amount=5.00&vendor=paypal\",\n      \"language\": \"text\"\n    }\n  ]\n}\n[/block]\n##Parameters\n[block:parameters]\n{\n  \"data\": {\n    \"h-0\": \"Parameter\",\n    \"0-0\": \"&h=\",\n    \"0-1\": \"App Hash.\",\n    \"0-2\": \"Yes.\",\n    \"h-1\": \"Description\",\n    \"h-2\": \"Required?\",\n    \"1-0\": \"&uid=\",\n    \"1-1\": \"User ID.\",\n    \"1-2\": \"Yes.\",\n    \"2-0\": \"&amount=\",\n    \"2-1\": \"Amount to be paid.\",\n    \"2-2\": \"Yes.\",\n    \"3-0\": \"&title=\",\n    \"3-1\": \"Short purchase description.\",\n    \"3-2\": \"Optional.\",\n    \"4-2\": \"Optional.\",\n    \"5-2\": \"Optional.\",\n    \"4-0\": \"&vendor=\",\n    \"4-1\": \"May be set to a vendor of your choice. Default is **credit_card**.\",\n    \"5-0\": \"&url=\",\n    \"5-1\": \"If set, print URL instead of re-directing.\",\n    \"h-3\": \"Example Values\",\n    \"0-3\": \"opokjysljir.983793074660\",\n    \"1-3\": \"123456\\n\\nbob@superrewards.com\",\n    \"2-3\": \"10.00\",\n    \"3-3\": \"Premium Server Access\",\n    \"4-3\": \"paypal\\n\\ncredit_card\\n\\nbank\\n\\ngift_card\\n\\nbitcoin\\n\\nother\",\n    \"5-3\": \"1\"\n  },\n  \"cols\": 4,\n  \"rows\": 6\n}\n[/block]\n\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Payment Notification\"\n}\n[/block]\nA [Notification Postback](http://docs.superrewards.com/v1.0/docs/notification-postbacks) will be sent to your Postback URL. It is identical to the ones sent by the main Offer Wall.\n\nThe **new** parameter will represent the amount paid in cents (USD) if you set your Currency Worth to 100. Illustrated below.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/kaAy3vqIQjW8Zhj0iXpY_3.png\",\n        \"3.png\",\n        \"584\",\n        \"137\",\n        \"#4a5a83\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]","excerpt":"","slug":"payment-widget","type":"basic","title":"Payment Widget"}
The Payment Widget is designed for User specified payments, such as donations. [block:image] { "images": [ { "image": [ "https://files.readme.io/Iu8UQyf3SaKyYoJRgpxb_ss4.png", "ss4.png", "536", "162", "", "" ] } ] } [/block] [block:api-header] { "type": "basic", "title": "Integration" } [/block] Identical to the process of integrating the main Offer Wall, with some additional parameters for customizability. [block:code] { "codes": [ { "code": "<iframe src=\"https://wall.superrewards.com/super/pay?h=opokjysljir.983793074660&uid=123456\" frameborder=\"0\" width=\"540\" height=\"400\" scrolling=\"no\"></iframe>", "language": "text" } ] } [/block] [block:parameters] { "data": { "h-0": "Parameter", "h-1": "Description", "h-2": "Required?", "0-0": "&h=", "0-1": "App Hash.", "1-0": "&uid=", "1-1": "User ID.", "2-0": "&title=", "3-0": "&description=", "4-0": "&amount=", "5-0": "&color=", "5-1": "Theme color. Default is Super Rewards green.\n\nSpecify in hex format.", "4-1": "Pre-set amount.", "3-1": "A longer description.", "2-1": "Short purchase description.", "0-2": "Yes.", "1-2": "Yes.", "2-2": "Optional.", "3-2": "Optional.", "4-2": "Optional.", "5-2": "Optional.", "h-3": "Example Values", "0-3": "opokjysljir.983793074660", "1-3": "123456\n\nbob@superrewards.com", "2-3": "Premium Server Access", "3-3": "Pay what you want.", "4-3": "5.00", "5-3": "00AA00" }, "cols": 4, "rows": 6 } [/block] [block:api-header] { "type": "basic", "title": "Advanced Integration" } [/block] If you would prefer to build your own user interface, while still leveraging the Super Rewards back-end, you may do so by interfacing directly with our **/pay_create_url** endpoint. [block:code] { "codes": [ { "code": "https://wall.superrewards.com/super/pay_create_url?h=opokjysljir.983793074660&uid=123456&amount=5.00&vendor=paypal", "language": "text" } ] } [/block] ##Parameters [block:parameters] { "data": { "h-0": "Parameter", "0-0": "&h=", "0-1": "App Hash.", "0-2": "Yes.", "h-1": "Description", "h-2": "Required?", "1-0": "&uid=", "1-1": "User ID.", "1-2": "Yes.", "2-0": "&amount=", "2-1": "Amount to be paid.", "2-2": "Yes.", "3-0": "&title=", "3-1": "Short purchase description.", "3-2": "Optional.", "4-2": "Optional.", "5-2": "Optional.", "4-0": "&vendor=", "4-1": "May be set to a vendor of your choice. Default is **credit_card**.", "5-0": "&url=", "5-1": "If set, print URL instead of re-directing.", "h-3": "Example Values", "0-3": "opokjysljir.983793074660", "1-3": "123456\n\nbob@superrewards.com", "2-3": "10.00", "3-3": "Premium Server Access", "4-3": "paypal\n\ncredit_card\n\nbank\n\ngift_card\n\nbitcoin\n\nother", "5-3": "1" }, "cols": 4, "rows": 6 } [/block] [block:api-header] { "type": "basic", "title": "Payment Notification" } [/block] A [Notification Postback](http://docs.superrewards.com/v1.0/docs/notification-postbacks) will be sent to your Postback URL. It is identical to the ones sent by the main Offer Wall. The **new** parameter will represent the amount paid in cents (USD) if you set your Currency Worth to 100. Illustrated below. [block:image] { "images": [ { "image": [ "https://files.readme.io/kaAy3vqIQjW8Zhj0iXpY_3.png", "3.png", "584", "137", "#4a5a83", "" ] } ] } [/block]