{"id":8977,"date":"2024-06-08T15:52:07","date_gmt":"2024-06-08T15:52:07","guid":{"rendered":"https:\/\/ccbill.com\/doc\/?page_id=8977"},"modified":"2024-10-04T10:18:39","modified_gmt":"2024-10-04T10:18:39","slug":"tjspw-guide","status":"publish","type":"page","link":"https:\/\/ccbill.com\/doc\/tjspw-guide","title":{"rendered":"TJSPW"},"content":{"rendered":"\n<p class=\"has-medium-font-size\"><strong>1. Integration Steps<\/strong><\/p>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-1 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:50%\">\n<p>Aimed at programmers and technical professionals, the examples explain how to:<\/p>\n\n\n\n<ol style=\"list-style-type:lower-alpha\" class=\"alpha-list wp-block-list\">\n<li>Embed the CCBill API Payment Widget into your application's interface.<\/li>\n\n\n\n<li>Autogenerate a payment form to collect customer payment information securely.<\/li>\n\n\n\n<li>Pass the customer's payment information to CCBill's API to generate a payment token.<\/li>\n\n\n\n<li>Implement an event listener to forward the token and customer payment data to your backend application.<\/li>\n\n\n\n<li>Create a request for the CCBill API to charge the payment token.<\/li>\n<\/ol>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:50%\">\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/dev2.cwie.net\/doc\/wp-content\/uploads\/2024\/01\/tjsw-flow-diagram-test.png\" alt=\"\" class=\"wp-image-10417\"\/><\/figure>\n<\/div>\n<\/div>\n\n\n\n<hr class=\"wp-block-separator has-text-color has-alpha-channel-opacity has-background\" style=\"background-color:#f5f5f5;color:#f5f5f5\"\/>\n\n\n\n<p class=\"h3 has-medium-font-size\">2. <strong>OAuth Bearer Token<\/strong><\/p>\n\n\n\n<p>The CCBill API Payment Widget uses <a href=\"https:\/\/ccbill.com\/kb\/authorization-bearer\" target=\"_blank\" rel=\"noreferrer noopener\">bearer tokens<\/a> to authenticate and authorize merchant requests. Before starting the integration process, you need to register your application.<\/p>\n\n\n\n<p>To register your app, contact <a href=\"https:\/\/ccbill.com\/contact\" target=\"_blank\" rel=\"noreferrer noopener\">CCBill Merchant Support<\/a> and inform them you need a RESTful API setup on your CCBill merchant account.<\/p>\n\n\n\n<p>Once the setup and registration are complete, the Merchant Support team provides the necessary credentials, including the <strong>merchant application ID<\/strong> and<strong> secret key<\/strong>.<\/p>\n\n\n\n<p>These two parameters are required to call the <strong><code class=\"tjspw-snippet\">getOAuthToken<\/code><\/strong> function from your backend and generate the bearer token. Use the token as the value for the <strong><code class=\"tjspw-snippet\">apiKey<\/code><\/strong> parameter in your frontend code to ensure secure communication with the CCBill payment system.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. Integration Steps Aimed at programmers and technical professionals, the examples explain how to: 2....<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"kk_blocks_editor_width":"","_kiokenblocks_attr":"","_kiokenblocks_dimensions":"","footnotes":""},"class_list":["post-8977","page","type-page","status-publish","hentry"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>TJSPW - CCBill Doc<\/title>\n<meta name=\"robots\" content=\"noindex, nofollow\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"TJSPW - CCBill Doc\" \/>\n<meta property=\"og:description\" content=\"1. Integration Steps Aimed at programmers and technical professionals, the examples explain how to: 2....\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ccbill.com\/doc\/tjspw-guide\" \/>\n<meta property=\"og:site_name\" content=\"CCBill Doc\" \/>\n<meta property=\"article:modified_time\" content=\"2024-10-04T10:18:39+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/dev2.cwie.net\/doc\/wp-content\/uploads\/2024\/01\/tjsw-flow-diagram-test.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ccbill.com\/doc\/tjspw-guide\",\"url\":\"https:\/\/ccbill.com\/doc\/tjspw-guide\",\"name\":\"TJSPW - CCBill Doc\",\"isPartOf\":{\"@id\":\"https:\/\/ccbill.com\/doc\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/ccbill.com\/doc\/tjspw-guide#primaryimage\"},\"image\":{\"@id\":\"https:\/\/ccbill.com\/doc\/tjspw-guide#primaryimage\"},\"thumbnailUrl\":\"https:\/\/dev2.cwie.net\/doc\/wp-content\/uploads\/2024\/01\/tjsw-flow-diagram-test.png\",\"datePublished\":\"2024-06-08T15:52:07+00:00\",\"dateModified\":\"2024-10-04T10:18:39+00:00\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/ccbill.com\/doc\/tjspw-guide\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/ccbill.com\/doc\/tjspw-guide#primaryimage\",\"url\":\"https:\/\/dev2.cwie.net\/doc\/wp-content\/uploads\/2024\/01\/tjsw-flow-diagram-test.png\",\"contentUrl\":\"https:\/\/dev2.cwie.net\/doc\/wp-content\/uploads\/2024\/01\/tjsw-flow-diagram-test.png\"},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/ccbill.com\/doc\/#website\",\"url\":\"https:\/\/ccbill.com\/doc\/\",\"name\":\"CCBill Doc\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/ccbill.com\/doc\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"TJSPW - CCBill Doc","robots":{"index":"noindex","follow":"nofollow"},"og_locale":"en_US","og_type":"article","og_title":"TJSPW - CCBill Doc","og_description":"1. Integration Steps Aimed at programmers and technical professionals, the examples explain how to: 2....","og_url":"https:\/\/ccbill.com\/doc\/tjspw-guide","og_site_name":"CCBill Doc","article_modified_time":"2024-10-04T10:18:39+00:00","og_image":[{"url":"https:\/\/dev2.cwie.net\/doc\/wp-content\/uploads\/2024\/01\/tjsw-flow-diagram-test.png","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/ccbill.com\/doc\/tjspw-guide","url":"https:\/\/ccbill.com\/doc\/tjspw-guide","name":"TJSPW - CCBill Doc","isPartOf":{"@id":"https:\/\/ccbill.com\/doc\/#website"},"primaryImageOfPage":{"@id":"https:\/\/ccbill.com\/doc\/tjspw-guide#primaryimage"},"image":{"@id":"https:\/\/ccbill.com\/doc\/tjspw-guide#primaryimage"},"thumbnailUrl":"https:\/\/dev2.cwie.net\/doc\/wp-content\/uploads\/2024\/01\/tjsw-flow-diagram-test.png","datePublished":"2024-06-08T15:52:07+00:00","dateModified":"2024-10-04T10:18:39+00:00","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/ccbill.com\/doc\/tjspw-guide"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/ccbill.com\/doc\/tjspw-guide#primaryimage","url":"https:\/\/dev2.cwie.net\/doc\/wp-content\/uploads\/2024\/01\/tjsw-flow-diagram-test.png","contentUrl":"https:\/\/dev2.cwie.net\/doc\/wp-content\/uploads\/2024\/01\/tjsw-flow-diagram-test.png"},{"@type":"WebSite","@id":"https:\/\/ccbill.com\/doc\/#website","url":"https:\/\/ccbill.com\/doc\/","name":"CCBill Doc","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/ccbill.com\/doc\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/ccbill.com\/doc\/wp-json\/wp\/v2\/pages\/8977"}],"collection":[{"href":"https:\/\/ccbill.com\/doc\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/ccbill.com\/doc\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/ccbill.com\/doc\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ccbill.com\/doc\/wp-json\/wp\/v2\/comments?post=8977"}],"version-history":[{"count":8,"href":"https:\/\/ccbill.com\/doc\/wp-json\/wp\/v2\/pages\/8977\/revisions"}],"predecessor-version":[{"id":9097,"href":"https:\/\/ccbill.com\/doc\/wp-json\/wp\/v2\/pages\/8977\/revisions\/9097"}],"wp:attachment":[{"href":"https:\/\/ccbill.com\/doc\/wp-json\/wp\/v2\/media?parent=8977"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}