{"id":7411,"date":"2021-05-15T16:32:20","date_gmt":"2021-05-15T16:32:20","guid":{"rendered":"https:\/\/docs.campaignsuite.nl\/docs\/developers\/one-click-payment\/"},"modified":"2021-07-08T10:13:16","modified_gmt":"2021-07-08T10:13:16","slug":"one-click-payment","status":"publish","type":"docs","link":"https:\/\/docs.campaignsuite.nl\/en\/docs\/developers\/one-click-payment\/","title":{"rendered":"One-click-payment"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"7411\" class=\"elementor elementor-7411\">\n\t\t\t\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-0ba80cd elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"0ba80cd\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-99397ff\" data-id=\"99397ff\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-2f30e26 elementor-widget elementor-widget-text-editor\" data-id=\"2f30e26\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\tOne-click payment is a way to make a direct donation via a URL where the visitor is redirected to his \/ her bank page in one go. The advantage of this is that the complete flow is identical to filling in a donation form, but without going through the page containing the form.\n\nIn order for One-Click-Payment to work, you must at least meet the following points:\n<ol>\n \t<li>A form must be created which is fully linked to a Salesforce payment<\/li>\n \t<li>The form must be on a page (hidden if necessary) in case the donor terminates his \/ her donation.<\/li>\n \t<li>A thank you message or thank you page must be set up for successful donor capture.<\/li>\n \t<li>The fields of the form you want to fill must be set to be filled dynamically. Read more information about this at <a href=\"https:\/\/docs.gravityforms.com\/allow-field-to-be-populated-dynamically\/\" target=\"_blank\" rel=\"noopener\">this website<\/a> .<\/li>\n<\/ol>\nIf the above points are set, the URL for a One-Click-Payment can look like this:\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-9ec8958 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"9ec8958\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-bbc767f\" data-id=\"bbc767f\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-df7d765 elementor-widget elementor-widget-docly_code_syntax_highlighter\" data-id=\"df7d765\" data-element_type=\"widget\" data-widget_type=\"docly_code_syntax_highlighter.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t                    <div class=\"docly-source-code prism\" data-lng-type=\"markup\">\r\n\t\t\t<pre>\r\n\t\t\t\t<code class=\"language-markup\">\r\n\t\t\t\t\thttps:\/\/www.website.nl\/oneclick?amount=5&amp;form_id=1&amp;email=donateur@website.nl&amp;bank=INGBNL2A&amp;firstname=Voornaam&amp;lastname=achternaam\t\t\t\t<\/code>\r\n\t\t\t<\/pre>\r\n            <\/div>\r\n                \t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-1d4882a elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"1d4882a\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-b3d2ac1\" data-id=\"b3d2ac1\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-4b2081c elementor-widget elementor-widget-text-editor\" data-id=\"4b2081c\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\tThere are a number of mandatory parameters in the URL:\n<ul>\n  <li> <strong> amount <\/strong>\nEnter the amount for the donation here <\/li>\n  <li> <strong> form_id <\/strong>\nEnter the ID of the Gravity Forms form where the payment should be handled here <\/li>\n  <li> <strong> contact (optional) <\/strong>\nEnter an ID of a Salesforce Contact <\/li> here\n<\/ul>\nIf you do not include a Salesforce Contact ID in the URL, a first name, last name, and email address are also required to include in the URL.\n\nAs soon as you click on the link, the form will be pre-filled with the required values and sent via the API. If fields are missing or errors occur, they will be displayed immediately.\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>One-click payment is a way to make a direct donation via a URL where the visitor is redirected to his \/ her bank page in one go. The advantage of this is that the complete flow is identical to filling in a donation form, but without going through the page containing the form. In order [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":7405,"menu_order":5,"comment_status":"open","ping_status":"closed","template":"","doc_tag":[],"class_list":["post-7411","docs","type-docs","status-publish","hentry","no-post-thumbnail"],"acf":[],"_links":{"self":[{"href":"https:\/\/docs.campaignsuite.nl\/en\/wp-json\/wp\/v2\/docs\/7411","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/docs.campaignsuite.nl\/en\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/docs.campaignsuite.nl\/en\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/docs.campaignsuite.nl\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.campaignsuite.nl\/en\/wp-json\/wp\/v2\/comments?post=7411"}],"version-history":[{"count":3,"href":"https:\/\/docs.campaignsuite.nl\/en\/wp-json\/wp\/v2\/docs\/7411\/revisions"}],"predecessor-version":[{"id":7464,"href":"https:\/\/docs.campaignsuite.nl\/en\/wp-json\/wp\/v2\/docs\/7411\/revisions\/7464"}],"up":[{"embeddable":true,"href":"https:\/\/docs.campaignsuite.nl\/en\/wp-json\/wp\/v2\/docs\/7405"}],"wp:attachment":[{"href":"https:\/\/docs.campaignsuite.nl\/en\/wp-json\/wp\/v2\/media?parent=7411"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/docs.campaignsuite.nl\/en\/wp-json\/wp\/v2\/doc_tag?post=7411"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}